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

help: the problem of nios ii command shell

Altera_Forum
Honored Contributor II
1,345 Views

hi, 

i used the command of nios ii command shell ---elf2flash, 

"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x01000000 --end=0x17fffff --reset=01000000 --input="my1.elf" --output="flash1.flash" --boot ="C:\altera\kits\nios2_60\components\altera_nios2/boot_loader_cfi.srec" 

and there were error--- 

elf2flash: Read error: File not found :boot_loader_cfi_srec 

elf2flash: Error reading boot copier 

elf2flash: Error generating Flash file, exiting 

 

i don't it, can you help me? 

thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
620 Views

There is not much information about your system which can beused to help us solve your problem.  

 

Do you have a flash controller in your SOPC system? At least in the case of EPCS controller a boot loader file is copied to your nios 2 project folder under your debug/realse folder. The path to your boot copier seem to contain both front slashes and back slashes ('/' and '\'), could that be it? Have you checked that the boot_loader is actually placed there? Another tip is to use the Flash programmer GUI in Nios 2 IDE. That might help you.  

 

Best Regards,  

Ola Bångdahl
0 Kudos
Altera_Forum
Honored Contributor II
620 Views

hi, 

i have flash controller and epcs controller. and the path of boot loader file is right. so why?
0 Kudos
Altera_Forum
Honored Contributor II
620 Views

I can not tell you exactly why but I can give you hints and tips. The more information we have the better the quality of our help will be. 

 

Are you using the epcs controller or the flash controller? To which controller have you set the Nios 2 reset vector? If you are using the epcs controller try the flash programmer GUI in Nios 2 IDE.  

 

Did you try using only '/' in your path? Did you try looking in the debug or release folder of your software project to see if you found any boot flash files. Since you have an old version of Nios 2 IDE you might not find it there though. 

 

//Ola
0 Kudos
Altera_Forum
Honored Contributor II
620 Views

Interestingly, someone has posted almost the exact same problem on the NIOS forum, except that the file is located on the D: drive.

0 Kudos
Reply