Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

The software build error about onchip_ram overflowed

Honored Contributor II

I made a qsys system which has nios II and onchip ram. The ram size is 8KB. Then I just create a template project "hello world" in Nios II Eclipse. Then I try to build the project but get errors: 




region `cpu_subsystem_onchip_ram' overflowed by 27332 bytes hello_world C/C++ Problem 


So it looks like the problem is caused by the ram size is too small. I can configure the bsp property to reduce the file size. But I am a little confused is when the software running in FPGA, the whole program will be put inside the onchip ram? 




0 Kudos
1 Reply
Honored Contributor II

Anyone can help? 


The thing makes me confuse is because based on my basic understanding about the embedded system, the program is stored in flash (like the hard drive in desktop computer or laptop), then the program is loaded into memory to execute. I think it should be similar as in Nios II system. But it looks like at least in debugging stage, the program is stored inside the onchip ram ?