Forum Discussion

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

how to program the .elf file into the flash

use jtag to download the .elf into the ssram and run, use the command:

nios2-download -g *.elf , succeed.

but if i want to download the .elf file into the flash and run , use this command , system generates message:

downloaded 62kb in 1.4s(44.2kb/s)

verifying 0c000000 (0%)

verify failed between address 0xc000000 and 0x c00f54b

leaving target processor paused.

i have to use nios2 IDE. import the project, tools/flash programming/. this is too troublesome.

who can tell me how to download the .elf file into the flash using command line method. thanks.

2 Replies

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

    I don't have the DE2. But as far as I know, you need to use the "flash programmer" to download elf or sof files to flash via JTAG.

    In your sopc system, a cfi flash controller is needed as well.