Altera_Forum
Honored Contributor
16 years agoonchip mem is full on a "Hello world" program
Hello,
I am working on a video design with the Cyclone III C25 starter kit and a hsmc quad video Bitec card. I have a sopc design with a cpu, onchip mem, a ssram, a flash memory interface, a tristate bridge, a jtag, an i2c bus (BITEC module), a vga and 2 video inputs (those are also BITEC modules). It was extracted from an example which worked. Until now, I never changed anything in SoPC. Lately, I made a test and generated sopc again without changing anything. Then, I have the following errors in NIOS (I did not change my C code either). I have 32KBytes onchip mem with 32 bit wide data (on a C25 board, I have a total memory of 0.6Mbits thus my total onchip mem is 600/8 = 75 MBytes) ? I made another test and implemented an easy "Hello world" which does not work either. The section .text corresponds to my program, which may be too big ? Thus, it should work at least on a "hello world" program ? Myriam Here is what is written in NIOS II : make -s all includes Compiling main4.c... Linking hsmc_quad_video_mosaic.elf... /cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region onchip_mem is full (hsmc_quad_video_mosaic.elf section .text). Region needs to be 20832 bytes larger. /cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: address 0x1fd54 of hsmc_quad_video_mosaic.elf section .onchip_mem is not within region onchip_mem collect2: ld returned 1 exit status make: *** [hsmc_quad_video_mosaic.elf] Error 1 Build completed in 6.828 seconds