Forum Discussion

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

NIOSII Reg

Hello to all,

I am using Altera DE2 Board. When adding SRAM in SOPC Builder of quartus there is an error saying that "SRAM should be connected to avalon memory mapped tri-state master." How can i overcome this error..:(:confused:

4 Replies

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

    Thank you for your reply. This is very helpful for us. Now my total sopc system is executed correctly. But In niosII IDE window while running time i got this message:

    Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

    Pausing target processor: OK

    Initializing CPU cache (if present)

    OK

    Downloading 00100000 ( 0%)

    Downloaded 53KB in 2.4s (22.0KB/s)

    Verifying 00100000 ( 0%)

    Verify failed between address 0x100000 and 0x10D177

    Leaving target processor paused
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello sir !!

    I used onchip memory in sopc builder (memory size 16000 and 32bits) and i generate the total sopc system. In niosII IDE window i used hello_world_small. In this system my niosII IDE working properly. If i change the program from select template then i get error message. This error is as follows. Kindly help me.

    make -s all includes

    Compiling hello_world.c...

    Linking hello_world_1.elf...

    /cygdrive/c/altera/91/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region onchip_memory2_0 is full (hello_world_1.elf section .text). Region needs to be 29668 bytes larger.

    /cygdrive/c/altera/91/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rodata [00004020 -> 00004507] overlaps section .exceptions [00004020 -> 000041c7]

    /cygdrive/c/altera/91/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rwdata [00004508 -> 00005f33] overlaps section .text [000041c8 -> 0000f263]

    /cygdrive/c/altera/91/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .bss [00005f34 -> 00006147] overlaps section .text [000041c8 -> 0000f263]

    collect2: ld returned 1 exit status

    make: *** [hello_world_1.elf] Error 1

    Build completed in 5.17 seconds
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi.

    This error means that program does not fit into available memory size. Enlarge system memory size, use reduced device drivers and small C library options for BSP.

    Regards,

    Andrei