Sunday, October 26, 2014

Keil Firmware Binary

 

Normally, Keil will build the HEX file for Magic Flash to burn the code to MCU or .axf for mvisual.

but it’s not for binary code. therefore we need to using some ways to convert HEX to binary.

1.

C:\Keil\ARM\ARMCC\bin\fromelf.exe --bin --output=myprog.bin myprog.axf[1,2]
2.

C:\Keil\ARM\bin\ElfDwt.exe <filename>.axf BIN(<filename>.bin)[3]

 


and we could check the binary with application(AN11305)[4].


this software will check the signature at 0x1C, (43 f0 ff ef or charater Cðÿï )


Reference


[1]http://www.keil.com/support/docs/3213.htm


[2]http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka11291.html


[3]http://www.lpcware.com/content/blog/binary-file-creation-using-keil-mdk-toolchain


[4]http://www.lpcware.com/content/nxpfile/an11305-usb-system-programming-lpc11u3xlpc11u2x

No comments:

Post a Comment

Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...