Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Utility to Retrieve User Configuration?

Altera_Forum
Honored Contributor II
1,102 Views

Is it possible to retrieve the code flashed into the user configuration from one development board and download onto a second board? I am using Nios 2 stratix 1s10 development boards. 

 

It's a long story but I no longer have the source files for the code that has been flashed and running on a development board. And now I need to run the code on a second development board. 

 

Any help would be appreciated.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
410 Views

You should be able to read the entire contents of your flash into a file, convert the received SREC into a binary, use bin2flash to create a ".flash" file, and then use the programmer to program it into your other board. 

 

The Flash Programmer User's Guide has the details for usage of the "--read" or "--read-bytes" option. You can choose whether to read only a section of the flash or the whole thing. 

 

Good luck! 

 

- slacker
0 Kudos
Reply