Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi, I am new to Nios2. I have the same problem when using "small"
example. When switching to "standard", it can be compiled successfully. This was a simple "hello_world" appliation for cyclone 1c20. In the "small" example comes with NiosII software, the on-chip-RAM is only 2K. However, the error message said it need ~11KB bigger. So, as mentioned by Rugbyblock, I change the compiler setting to -o3 and set -DALT_USE_SMALL_DRIVERS. It still needs a lot of memory(~9K). So, I have to go back to SOPC to change on-chip-RAM length to 16KB. Then it works. I am not sure whther it is normal that a "hello_world" program needs ~13KB memory. Or I am doing something wrong. If it needs ~13KB RAM, why the "small" example from Altera only set RAM size to 2KB? Thanks for any help.