Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12640 Discussions

The software build error about onchip_ram overflowed

Altera_Forum
Honored Contributor II
1,134 Views

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? 

 

 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
369 Views

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 ? 

 

Thanks.
0 Kudos
Reply