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