# Program LPC1343 thru USB bootloader with the right FILE format

I'm having a real hardtime programming my LPC1343 with the method mentioned in this question (Can an LPC1343 accept its initial program over USB?).

I am using a Linux machine and arm-none-eabi-gcc. I sucessfully compiled my code to blink a led, and then I get my .elf file and use arm-none-eabi-objcopy to convert it to the final format. Then I get that file in a USB stick and into a windows machine, and there I copy it to my LPC1343 thru the USB interface.

My problem is that after I turn off the chip and go into run mode it automatically goes again back into USB bootloader mode, meaning it didn't recognise the file. I have tried the following formats:

• elf32-littlearm
• elf32-bigarm
• elf32-little
• elf32-big
• plugin
• srec
• symbolsrec
• verilog
• tekhex
• binary
• ihex.

Has anyone successfuly preogramed this chip thru USB? If so, what file format was used?

• Not intended as an "answer" to your question, but while the process you describe could make sense for final deployment, surely there is a more efficient scheme for development - such as doing it natively from linux, using SWD or a UART bootloader, or even running windows in a virtual machine with shared folders? – Chris Stratton Mar 26 '14 at 14:35
• I was too annoyed by that USB dance (it worked, but was rather unreliable), so I added a serial interface to mine (olimex.com/Products/ARM/NXP/LPC-P1343). – starblue Mar 27 '14 at 21:10
• Muito Obrigado @Ricardo . – Electropepper Mar 29 '14 at 10:42
• @Electropepper - For the editing? Not a problem! I see that you got your answer. Cool! – Ricardo Mar 29 '14 at 12:13
• @starblue we defenitly need to talk, but serial interface doesnt let program the ROM of chip anyway, or does it ? – Electropepper Mar 29 '14 at 12:39

00 08 00 10 99 3c 00 00 21 40 00 00 25 40 00 00