Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Can't build project in the NIOS II IDE

Hi,

i have a DE1 board with Cyclone II EP2C20.. device. I designed my hardware and add all the required components in the SOPC Builder. I use now On-Chip-Memory (later i will use flash for programming). I created new software project in the NIOS II IDE and so on, but i got following error message when i try to build the project in the NIOS II IDE.

"ld: region onchip_memory2_0 is full (Loto_Generator.elf section .text). Region needs to be 35120 bytes larger. Loto_Generator line 0 1259878959171 305

ld: section .bss [00006004 -> 00006223] overlaps section .text [000041c8 -> 0000f9cb] Loto_Generator line 0 1259881350484 337

ld: section .rodata [00004020 -> 000045c7] overlaps section .exceptions [00004020 -> 000041c7] Loto_Generator line 0 1259881350484 335

ld: section .rwdata [000045c8 -> 00006003] overlaps section .text [000041c8 -> 0000f9cb] Loto_Generator line 0 1259881350484 336"

The problem is that i can't use to much size of On-Chip-Memory because my design uses then to much M4K blocks and it doesn't pass the compilation process in the Fitter.

Can anyone please help me? I know i could use SRAM memory instead On-Chip, but is there another option?

Thanks in advance!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I replied to your PM. Your code is too big for your onchip memory and your chip is apparently not large enough to avail you much more onchip memory. I would use the SRAM.

    Jake
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Jake. You're replies are useful! I will now try with the SRAM.