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

NiosII flash programmer elf->flash

Altera_Forum
Honored Contributor II
2,682 Views

Hi 

 

I'm looking for a "how to" get a nios2 project burned to flash, thinking that it all should end in a .pof file. Got a .sof from the OnDie example, but needs to add my modified NIOS2 project to it, but cant find any manual that works. 

 

My Nios2 project(runs fine in RAM via JTAG) 

 

using Quartus v.15.0.0v20150423-0554. When i start the Nios2 flash programmer under file/new i can choose .bsp or .socpinfo and the information is shown in target hardware information, but the start button is greyed. The three tabs in left bottom corner Information/Problems/Processing are empty...Anybody who has tried the same problem ? 

 

tried the elf2flash and sof2flash from the nios2-terminal i get the following error: 

 

sof2flash: Unrecognized device family in SOF. (My FPGA is 10M08SAE144C8GES, on the evaluation board) 

 

any help to solve the problem would be appreciated
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
1,542 Views

Are you trying to program the .sof and .elf into the MAX 10 UFM? Then you can try to refer to AN730 on the steps to generate the .pof which contain the .sof and .hex (generate from .elf). Then you can program the MAX 10 with the .pof file. 

https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/an/an730.pdf 

 

I dun think .flash files format are support in MAX 10.
0 Kudos
Altera_Forum
Honored Contributor II
1,542 Views
0 Kudos
Altera_Forum
Honored Contributor II
1,542 Views
0 Kudos
Altera_Forum
Honored Contributor II
1,542 Views

Hi  

 

I just curious about your mention regarding ".flash file format not support in Max10". 

 

How do you find out way to convert SOF to .flash like unrecognized device family in SOF? 

 

Thansk
0 Kudos
Altera_Forum
Honored Contributor II
1,542 Views

Hi  

 

Not sure i understand your question, but i followed this guideline to convert the .sof to .pof(flash) 

 

 

--- Quote Start ---  

 

https://cloud.altera.com/devstore/pl...10m50-dev-kit/ 

 

Look at the document link and search for the section that is called: Merging the NIOS executable into the FPGA configuration file . That will show you how to get the SW executable merged with hardware image and if stored on flash removes the requirement for a connection to a host computer. Let me know if that helps. 

 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,542 Views

Hello guys! 

I'm trying to execute the memory test template. I select the option to test flash.  

I have checked in the system.h file that the name of the flash is /dev/ext_flash. But when I type in the same name in the nios console, it shows an error 

saying : could not open "/dev/ext_flash" 

 

any idea how to eliminate this error? 

 

Thanks in advance.. any advice is welcome.
0 Kudos
Reply