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

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

KBill3
Beginner
1,959 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
1,585 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
1,585 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
1,585 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