Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

how to program the .elf file into the flash

Altera_Forum
Honored Contributor II
2,619 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,468 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,468 Views

You should confirm which component has the address 0xc000000

0 Kudos
Reply