Flash programming is usually invoked automatically when you launch a debug session from within the LPCXpresso IDE, but can also be accessed directly using a command line utility.
This can be useful for things like programming the flash for devices with limited production runs.
Note: Some debug probes require booting before the flash programming utility can be run. For more details:
The LPCXpresso IDE flash programming stubs are located at:
To run a flash programming operation from the command line, the correct flash utility stub for your part should be called with appropriate options.
crt_emu_cm_redlink -flash-load-exec "LPC11U68_App.axf" -vendor=NXP -pLPC11U68
Note: A simple way of finding the correct command and options, is to use the GUI Flash Utility, the completion dialog shows the exact command line invoked by the GUI. see Using the GUI flash programming tool.
The flash programming utility takes the following options:
To load the executable file app.axf and start it executing on an LPC1768 target using LPC-Link2, use the following command line:
crt_emu_cm_redlink -pLPC1768 -vendor=NXP -flash-load-exec "app.axf"
To load the binary file binary.bin to address 0x1000 to an LPC1343 target using LPC-Link on Windows 8, Linux or Mac OSX, use the following command line:
crt_emu_lpc11_13_nxp -wire=hid -pLPC1343 -vendor=NXP -flash-load "binary.bin" -load-base=0x1000
To load the executable file app.axf and start executing on an LPC11U68 target, using RedProbe+ use the following command line:
crt_emu_cm_gen -pLPC11U68 -vendor=NXP -flash-load-exec "app.axf"