Forum Discussion

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

Problem about C code loading to Hardwave

When I load my C code to the Hardware, I got a message

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

Pausing target processor: OK

Initializing CPU cache (if present)

OK

Downloading 01000000 ( 0%)

Downloading 02010020 (86%)

Downloaded 55KB in 0.9s (61.1KB/s)

Verifying 01000000 ( 0%)

Verify failed between address 0x1000000 and 0x100BC17

Leaving target processor paused"

How to solve this problem, Does anyone could help me?

Does this cause any setup or coding?

Thank you very much.

13 Replies

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

    --- Quote Start ---

    When I Build the project,

    the compilation tool didn't show any message about the memory.

    First, I only use the onchip memory, the system show the message.

    "ld: region onchip_mem is full (hello_world_0.elf section .text). Region needs to be 16516 bytes larger. hello_world_0 line 0 1269343999031 36

    ld: section .bss [02012054 -> 0201215b] overlaps section .text [020101c8 -> 0201e083] hello_world_0 line 0 1269343999031 39

    ld: section .rodata [02010020 -> 02010547] overlaps section .except

    but, I builded the flesh memory to cover the part.

    --- Quote End ---

    Kingace9000, onchip memory is really not big enough for the project with a lot of modules and source files (like the Simple Socket Server template, for example). So you need to place more onchip memory (but it is not good for FPGA resource economy), or to add external memory (DDR, flash or other).

    When you add external memory, after creating a NIOS software project for your hardware design (in NIOS II IDE utility) right-click on <your project name>_syslib[<your system name>] in Projects tab, select "Properties", when select "System library" and assign sections to memory device you need. Maybe, you should add SRAM to your hardware project?

    You can check this out in altera standard design examples - they often use DDR or SRAM to store content.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Here how it looks like..

    --- Quote End ---

    Hi, thank for your help.

    My problem have been solved.

    thank you very much.