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
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: