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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

849件の閲覧回数
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?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

811件の閲覧回数
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 件の賞賛
返信

811件の閲覧回数
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 件の賞賛
返信

811件の閲覧回数
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 件の賞賛
返信