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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

error when I build project of NIOS II IDE 10.1

Altera_Forum
Honored Contributor II
1,862 Views

Help help help me 

 

I work with NIOS II IDE 10.1 

 

I already pass the SOPC genration, and then I want to use the NIOS II IDE for outputing "hello word" 

 

I can create the "my_first_hello_word" and "my_first_hello_word_bsp" 

 

When I build the project of "my_first_hello_word_bsp", it is OK. 

 

When I build the project of "my_first_hello_word", it has errors 

 

error is  

 

********************************************** 

Description Resource Path Location Type 

my_first_hello_word.elf section `.text' will not fit in region `onchip_memory2' my_first_hello_word line 0 C/C++ Problem 

 

Description Resource Path Location Type 

make: *** [my_first_hello_word.elf] Error 1 my_first_hello_word line 0 C/C++ Problem 

 

Description Resource Path Location Type 

region `onchip_memory2' overflowed by 8964 bytes my_first_hello_word line 0 C/C++ Problem 

 

total three errors 

************************************************ 

 

please help me  

 

thank you very much
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
824 Views

Hi 

 

The error that says "...will not fit in region... " is probably because you are using the onchipmemory to store the mem sections of your program. You can try either use the small library option (in the BSP editor) or use a SDRAM or SSRAM (a bigger mem) to place the mem sections of your program (the mem where you want to place the mem sections of your program is also configurable in the BSP editor).
0 Kudos
Altera_Forum
Honored Contributor II
824 Views

Right click on your project folder ,click on "bsp editor

 

1) Unchecked "support C++" (if you just wanna see "hello world" in C) 

2) Check "reduce device drivers" 

3) Check "small C library"
0 Kudos
Altera_Forum
Honored Contributor II
824 Views

You give me a big help 

 

Thank you very much  

 

It can work:)
0 Kudos
Reply