Overview#
This guide describes the steps required to use the flashloader to program external Quad SPI memory connected to the LPC device and internal fuse array.
LPC540xx/LPC54S0xx platform#
The NXP LPC540xx/LPC54S0xx platform must be connected to a host computer to load and interface with the flashloader application. On a device with blank external flash, LPC540xx/LPC54S0xx always enumerates on the host device as a USB Device Firmware Upgrade (DFU) mode device. This is the default In System Programming (ISP) function of the ROM code for the LPC540xx/LPC54S0xx device. This function supports serial interface booting (UART, I2C, SPI) from an application processor download. For a non-blank device, see Chapter 4, “LPC540xx Boot ROM for non-secure devices” in UM11060 LPC540xx/LPC54S0xx User Manual for instructions on how to boot and connect the device with the host in DFU mode.
DFU utility usage#
The DFU Utility is the host application used to load the flashloader binary into the internal RAM memory of LPC540xx/LPC54S0xx device connected to the host in USB DFU mode. “dfu-util.exe” is an opensource command line application and is available for Windows® OS, Unix, and Mac® OS platforms. It can be downloaded from dfu-util.sourceforge.net/releases/. The following is the command line to load the flashloader.bin:
$ dfu-util.exe –D flashloader.bin
The DFU Utility prints out messages on standard output to indicate whether flashloader.bin got is successfully loaded or not.
Bootloader host utility (blhost)#
The blhost.exe utility is an example host program used to interface with devices running the flashloader program. It can list and request execution of all the commands supported by a given LPC device running the flashloader.