Altera_Forum
Honored Contributor
14 years agoNios2 problem
Hi,
I am trying to run a simple code of led blinking but I get this error Description Resource Path Location Type led_nois.elf: section .exceptions lma 0x1020 overlaps previous sections led_nois line 0 C/C++ Problem led_nois.elf: section .text lma 0x11b4 overlaps previous sections led_nois line 0 C/C++ Problem make: *** [led_nois.elf] Error 1 led_nois line 0 C/C++ Problem region onchip_mem is full (led_nois.elf section .text) led_nois line 0 C/C++ Problem section .exceptions [00001020 -> 000011b3] overlaps section .rodata [00001020 -> 00001067] led_nois line 0 C/C++ Problem section .rwdata [00002ab0 -> 000044f7] overlaps section .text [000011b4 -> 000064ff] led_nois line 0 C/C++ Problem The code is # include <stdio.h># include "system.h"# include "altera_avalon_pio_regs.h" int main () { int i; //Send a message to console printf("Hello from Nios II!\n"); //Blink the LEDs in a counting-up manner from 0 to 255 for(i=0;i<256;i++) { /*This writes values to the LEDs using macro defined in altera_avalon_pio_regs.h This macro accepts two arguments: the base address of the PIO and the value that will be written to the PIO. In this example, the PIO base address is defined in the system.h file to be LED_PIO_BASE.*/ IOWR_ALTERA_AVALON_PIO_DATA(LED_BASE,i); } return 0; } Its a pretty simple code with simple sopc design of a processor,led,jtag and uart,onchip mem. onchip mem = 4kb...But i still get the erorr of onchip mem full when I compile the code.I dont know why? Apart from the demo code any code I try to run has the same error Help :confused: