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++
12604 Discussions

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

KBill3
Beginner
3,688 Views

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
3,314 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

0 Kudos
KBill3
Beginner
3,314 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

0 Kudos
PHJ
New Contributor I
3,314 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 !

0 Kudos
Reply