CHAPTER
FOURTEEN
LPC43XX USB DFU NOTES
The LPC43xx contains USB DFU bootloader support in ROM. By selecting the appropriate boot mode (USB0), the
device will come up on USB at power-up or reset, and implement the popular and well-documented USB DFU protocol.
14.1 Setup
14.1.1 Boot Mode Jumpers
Set the boot mode jumpers to USB0: BOOT[0:3] = “1010”. Jumper setting takes effect at the next power-on or reset.
(You can rig up a reset button to P2 “LPC_JTAG” or P14 “LPC_ISP”.)
14.1.2 USB DFU Utility
http://dfu-util.gnumonks.org/
You need the latest source from git for some reason.
14.2 Usage Notes
14.2.1 Makefile
The firmware Makefile contains a “%.dfu” and a “program” target. The program target will make the DFU file and
then attempt to load the code to a device that’s attached via USB and in DFU mode.
14.2.2 Manually
DFU boot downloads to RAM then executes. Need a DFU suffix, but also a header
cp blinky.bin blinky.dfu
Add DFU suffix and address prefix:
/usr/local/bin/dfu-suffix --pid=0x000c --vid=0x1fc9 --did=0x0 -s 0 -a blinky.dfu
Create header (based on UM10503 section 5.3.3 “Boot image header format”):
43