In this tutorial we will be discussing how to upload the .bin file to Lpc1768 board.
To upload the .bin, no external hardware is required but board should have the secondary boot loader.


Loading USB BootLoader

If the USB Bootloader is already loaded to the board then you can skip this section.
You need a USB to Serial(UART) converter in order to get this working. The neat thing about the NXP controllers is, they come with a UART boot-loader from the factory. ExploreM3FlashMagicConnection.png


Now open the flash magic software and follow the below steps.

  1. Select the IC from Select Menu.
  2. Select the COM Port. Check the device manger for detected Com port.
  3. Select Baud rate from 9600-115200
  4. Select None Isp Option.
  5. Oscillator Freq 12.000000(12Mhz).
  6. Check the Erase blocks used by Hex file option
  7. Browse and Select the ExploreM3_Usb_Bootloader.hex file.
  8. Check the Verify After Programming Option.
  9. Go to Options->Advanced Options-> Hardware Config and select the Use DTR and RTS Option.
  10. Hit the Start Button to flash the hex file.



0 Lpc1768FlashMagic.jpg




Generating .bin File

Check this tutoial LPC1768 Keil Setup for generating the .bin file using keil.


Uploading .bin File

For uploading the .bin file, secondary(USB) boot-loader needs to be flashed to the controller. Even though we put a USB boot-loader, the serial boot-loader will be still present to flash the hex files using Flash Magic.

Follow the below steps to upload the new .bin file to Explore M3 board:

  1. Connect the Explore M3 Board to system using a USB cable.
  2. Hold the USB_Boot switch.
  3. Press the Reset Switch.
  4. Release the Reset Switch.
  5. Release the USB_Boot switch.
  6. Now the board will be detected as ExploreM3.
  7. Delete the old firmware.bin file.
  8. Paste the new .bin file.
  9. Reset the Board.
  10. Now your Application code should be running on the board.

Explore M3 USB Bootloader.png


Have a opinion, suggestion , question or feedback about the article let it out here!