USB boot download (MSC device) on LPC1345/6/7

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB boot download (MSC device) on LPC1345/6/7

536 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ray@photosonix.com on Sat Mar 07 16:22:24 MST 2015
The USB boot download on the LPC1345/6/7 looks great! What file format(s?) is/are required? Is this a good way to go for production programming of devices?
Labels (1)
0 Kudos
3 Replies

498 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun Mar 08 10:48:28 MST 2015
Which toolchain are you using?

LPCXpresso can generate binary files with 'Post-processing'  :O

See:

http://www.lpcware.com/content/faq/lpcxpresso/generating-srec-binary-and-ihex-files

http://www.lpcware.com/content/faq/lpcxpresso/image-checksums

http://www.lpcware.com/content/faq/lpcxpresso/post-processing-linked-application

Just use

Quote:

arm-none-eabi-size ${BuildArtifactFileName}
[color=#f00]arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin
checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin[/color]



to generate a binary file and add the checksum  :)
0 Kudos

498 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ray@photosonix.com on Sun Mar 08 10:13:19 MST 2015
Thanks R2D2,
I hadn't found that Ap note. This is probably stupid, but if "bin" is a well defined file format, I haven't found it. From the writeup, it has a boot block, root directory and file allocation table described as 4 extra blocks, but with the actual program beginning in block 4(?).

If I create a binary image of the program in PC memory, then create a file and call WriteFile with the appropriate start location and number of bytes, is the correct file produced?

Thanks,
Ray
0 Kudos

498 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Mar 07 16:40:41 MST 2015

Quote: ray@photosonix.com
The USB boot download on the LPC1345/6/7 looks great! What file format(s?) is/are required?



BIN  :O


Quote: ray@photosonix.com
Is this a good way to go for production programming of devices?



Yes  :)

See: http://www.nxp.com/documents/application_note/AN10986.pdf
0 Kudos