Forum Discussion
Hi,
- Have you enabled both the "Enable Small C library" and the "Enable Lightweight Device Driver API" option? try to disable and recompile.
- scanf/sscanf is not supported in small C library. Change it from the BSP settings and try.
Check below link for more information on the error
Few useful links
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/tt/tt_my_first_nios_sw.pdf
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_embedded_ip.pdf
Regards
Anand
Hello Anand,
I enabled Reduced device drivers and small C library. If I don't do that, I get error message that I am out of memory. I am using 40960 bytes of memory.
What else I discovered yesterday, is if I redo, start new application, it works eventually. It too me over 50 minutes to build BSP package. It obviously should not take that long. Why is it taking so long? Are there any settings? Is there an issue with Nios II compiler that result in a large footprint?
--Alex
- dsmirnov7 years ago
Occasional Contributor
As for compilation time you can add precompiled standard libraries in the Build settings, or chage settings of re-build/clean by excluding compiled libraries