How right extract binary image from axf file?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How right extract binary image from axf file?

1,805 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stomascik on Mon Feb 08 03:35:03 MST 2010
Hello,

I want use USB mass storage firmware update mode. How extract binary image from axf file?
In case when LPC link is connected to target device I build (for example LPCXpresso1343_blinky sample), active Debug mode, then IDE download firmware, and sample work fine. Then I use command (on axf created by IDE from debug directory):
"arm-none-eabi-objcopy -O binary LPCXpresso1343_blinky.axf LPCXpresso1343_blinky.bin",
connect LPC1343 by USB, and replace firmware.bin with extracted LPCXpresso1343_blinky.bin, and device don't work.
When working firmware and extracted are compared, there is difference:
Comparing files LPCXpresso1343_blinky.bin and FIRMWARE.BIN
0000001C: 00 DA
0000001D: 00 CC
0000001E: 00 FF
0000001F: 00 EF

Why this difference? What I do wrong?

Thanks,
Slavo

Original Attachment has been moved to: 1100090_Nancy.zip

0 项奖励
回复
3 回复数

1,505 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Mon Feb 08 11:11:02 MST 2010
Here's a simple tutorial (though it's a bit late in this case):

http://www.microbuilder.eu/Blog/10-01-12/Creating_Valid_LPC1343_Binaries_in_LPCXpresso.aspx
0 项奖励
回复

1,505 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stomascik on Mon Feb 08 05:04:35 MST 2010
Many thanks. That's what i miss.

Regards,
Slavo.
0 项奖励
回复

1,505 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Feb 08 04:51:16 MST 2010
NXP parts require that the vector table is checksumed. If the checksum si invalid, the part refuses to start. This is described in the User Guide for the part.

The debugger automatically writes the correct checksum when downloading the image, but when using a binary image, the image needs to contain the correct checksum.

There is a utility provide for this in the binary directory. Just call it with a single argument - the name of the binary file:

checksum file.bin

You might also want to read this forum thread:
http://knowledgebase.nxp.trimm.net/showthread.php?t=13
0 项奖励
回复