Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KBill3
Beginner
986 Views

how to convert .axf file to .bin file? **the bare-metal application, Cyclone V , SD-card**

Hello all 😄.

 

To run the bare-metal application on Altera Cyclone V using HPS from SD-card., some steps need to be done, i have a problem in this step:

 

Create simple app in DS-5, compile it and obtain test.axf then convert it to test.bin using fromelf command and then convert it in test.img with mkimage tool.

 

how and where should i use this fromelf command?

 

Thanks in advance.

0 Kudos
3 Replies
PHJ
New Contributor I
612 Views

​I just include it in the post-build steps (under Build Steps tab in the C/C++ Build Settings):

fromelf --bincombined ${ProjName}.axf --output=${ProjName}.bin

KBill3
Beginner
612 Views

thank you very much for your answer, it is very nice solution, what did you then to convert .bin to .img?

 

Thanks in Advance.

 

LG, Billel

PHJ
New Contributor I
612 Views

​I issue the mkimage command from outside the DS-5 tool as a manual post-build step.

I do this from a SoC EDS command shell.

If someone knows the way to get this step completed from the DS-5 tool I'd be happy to hear about it !

Reply