ContributionsMost RecentMost LikesSolutionsRe: Massively long download time when I have large arrays in DDR Oh, man. We dumped Altera a way back due to lack of support. But thanks for the timely reply. Re: Type undefined reference to `alt_ic_isr_register' and general include paths Thanks. You, as usual, have been most helpful. Massively long download time when I have large arrays in DDR @BoonBengT_Altera @EricMunYew_C_Intel Folks, If I create a large array in my C code that sites in external memory (DDR) that is, as far as I know, set up as data memory, when I debug, Eclipse spends forever and a day writing something to that external memory in why my array is created. So, I have the following: static uint8_t message_in_array[NUMBER_OF_MESSAGE_BUFFERS][MESSAGE_IN_MAX_SIZE] __attribute__((section(".DDR3_Data_RAM"))); If MESSAGE_IN_MAX_SIZE is set to the size it needs to be (100MB), then when I debug, rather than the system just downloading the small program (less than 32k) to internal memory, you can see it writing to DDR: Here is a snippet of the console output: Downloading 404B0000 ( 2%) Downloading 404C0000 ( 2%) Downloading 404D0000 ( 2%) Downloading 404E0000 ( 2%) Downloading 404F0000 ( 2%) Downloading 40500000 ( 2%) Downloading 40510000 ( 2%) Downloading 40520000 ( 2%) Downloading 40530000 ( 2%) Downloading 40540000 ( 2%) Downloading 40550000 ( 2%) Downloading 40560000 ( 2%) Downloading 40570000 ( 2%) These addresses are all in section DDR3_Data_RAM, so it is clear that the debugger is loading something (although quite what I cannot fathom) into my array. How do I stop this please? Re: When workign with BSP on NIOS 2, Eclipse's tool hangs indefinately Try looking at this: https://stackoverflow.com/questions/65240134/nios-ii-ide-unsuably-slow/65713986#65713986 Carefully follow the instructions that the reply indicates, including running Eclipse from the command line with --clean option. This helped a lot on Linux. Welcome to a world of pain you never thought possible with Altera and Eclipse. Type undefined reference to `alt_ic_isr_register' and general include paths I am having an absolute nightmare with paths in Eclipse. I have taken over someone's dog's dinner of a project, trying to tidy it up and make it proper code. I could not get paths to work properly at all. Everything needed #include "../bar/foo.h" rather than just #include "foo.h" Despite bar being in the include directory lists. It got to silly stage at one point with needing ../../../ kind of thing in some of the paths, and some of them would simply only work with an absolute full OS path in the source code, so I posted on stack overflow and the only vague kind of response was asking whether I was using the automake file function. Eventually found where that was, turned on the option and that completely broke everything. So, I thought well, I reasonably understand what's going on in this project now, maybe the best bet is just to create a new blank project from scratch, using auto make, and using the old bsp settings file. So, I did that and started to piece together the project, everything was going fine. I didn't need anything other than the header file name (no relative paths when I included the appropriate paths in C++/Paths and Symbols/Includes GNU C). However, I then came to add this line: alt_ic_isr_register(USB3_CONTROLLERSUBSYS_FT600_SYS_NIOS_TO_PC_TXEN_GPIO_IRQ_INTERRUPT_CONTROLLER_ID, USB3_CONTROLLERSUBSYS_FT600_SYS_NIOS_TO_PC_TXEN_GPIO_IRQ, ft600_tx_irq_routine, TXEnedge_capture_ptr, 0x0); I get this: Description Resource Path Location Type undefined reference to `alt_ic_isr_register' ft600.c /application/drivers line 149 C/C++ Problem Now, if I CTL-CLICK on the alt_ic_isr_register line in the source code, it clearly shows two header files with that entry and in the BSP C files that function is there. Is someone please able to help me. I have spent two days on this and I'm utterly fed up with it. Many thanks! @BoonBengT_Intel @EricMunYew_C_Intel Re: Using Windows Generated NIOS Project on Linux @BoonBengT_Intel This one is still outstanding. This ia a real problem. Re: Compiler is happy with stdint.h, but not uint16_t etc Thanks, that did work. Re: NIOS Application and BSP from Template Doesn't Work @BoonBengT_Altera Thanks for the reply. As I said it's on Linux. Solution was eventually found here: https://askubuntu.com/questions/761604/eclipse-not-working-in-16-04 How about an answer on this: https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Compiler-is-happy-with-stdint-h-but-not-uint16-t-etc/td-p/1238766 Re: Using Windows Generated NIOS Project on Linux I really wish you could edit posts on this forum. 😞 This is wrong: "Please re-read my post and note that this issue here is that I am on *Linux* and trying to import a project that was originally created on Linux." The project were originally created on Windows. *I* am on Linux, originally projects were created on Windows. Re: Using Windows Generated NIOS Project on Linux Hi @EricMunYew_C_Intel , Thanks for the reply. However, I don't understand how installing stuff on Windows will help me open a project on Linux. Please re-read my post and note that this issue here is that I am on *Linux* and trying to import a project that was originally created on Linux. I need assistance with *LInux*, not Windows. The only thing I can get going is creating a Quartus project on v16 and then a NIOS project from the Quartus project. When I go to v18 even creating a new project on Linux does not work. I Cannot get a WIndows created NIOS project to import on any version of Linux. So in summary: I am on Linux. Forget Windows, other than some projects were originally created on Windows. I have tried v16, v18 and v21. What I can do on Linux. Install Quartus v16, v18 and v21, create and compile a softcore and create .sopcinfo files. I can open Quartus files created on Windows and compile. Quartus works an absolute treat. All versions. On v16 I can create a new NIOS project in Eclipse, compile and run it on actual hardware. I cannot import a previously project that was created in Windows in any version whatsoever. Not a one. I cannot even create a NIOS project in Eclipse from a starting-from-scratch Quartus project on Linux. It just sits there with the blue and red arrows circular icon spinning round and round. There is no feedback at all to tell me why it's struggling. I think the latter point is possibly a salient one. If we could get some feedback on why it is struggling maybe that would help, but I have no idea how to get that. Many thanks, Rob