Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,096 Views

error when I build project of NIOS II IDE 10.1

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 I
58 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).
Altera_Forum
Honored Contributor I
58 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"
Altera_Forum
Honored Contributor I
58 Views

You give me a big help 

 

Thank you very much  

 

It can work:)
Reply