Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Hello, Daixiwen! Every time I get the .elf file I implement "Run As->Nios II Hardware". The application is loaded into FPGA and runs. Leds flash displaying the working counter, the Nios II - Eclipse CDT Build Console displays the numbers from counter outputs. Then I stop the process and then repeat creating the application (I delete the project and BSP from the software folder) Then I create memory initialization files, add meminit.qip to the hardware project, recompile it and configure the FPGA. But the application does not work. The bsp in my software project is created by the Nios II - Eclipse with the application project cimultaneously. Regards, tduty --- Quote End --- I recall that in certain versions of NIOS II Eclipse tools, after you created the memory initialization files, you have to open them in quartus: Upon opening of the file, you would be prompted to enter the word size of the memory file, which defaults to 8 (bits). While Nios processer is 32-bit, you simply change it to 32bits, then save and close the file, recompile the project. I don't know why it's relevant to change the word size of the init file, but apparently it makes a difference in the results.