Altera_Forum
Honored Contributor
21 years agoHelp me to test my nios2.
Hello,
I have created a min nios2 system(Nios2, OnChipRam, Uart) and want to test if it can run Hello_world.c in my Dev.Board. So I do the following: (My Dev.Board is Micortronix Cyclone Dev.Board) 1. Open IDE and choose File > New C/C++ Application. 2. Choose the .ptf file and select Hello World in the Project Templates. 3. Build Project. When in the building process, there has a error. It is described "make -s all Compiling hello_world.c... Linking hello_world_0.elf... /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: region OnChipRam is full (hello_world_0.elf section .text) /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: section .rodata [00004020 -> 0000451f] overlaps section .exceptions [00004020 -> 00004327] /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: section .rwdata [00004520 -> 00004f9f] overlaps section .text [00004328 -> 0000f5e7] collect2: ld returned 1 exit status make: *** [hello_world_0.elf] Error 1 Build completed." I do not know what is wrong and how to correct it. Can someone help me? Thank you.