Difference between revisions of "Uploading .bin file to ExploreM3"
Line 1: | Line 1: | ||
[[Category:Explore M3 Bare Metal]] | [[Category:Explore M3 Bare Metal]] | ||
− | In this tutorial we will be discussing how to upload the | + | In this tutorial we will be discussing how to upload the .bin file to Lpc1768 board.<br> |
− | + | To upload the .bin, no external hardware is required but board should have the secondary boot loader.<br><br><br> | |
=Generating .hex File= | =Generating .hex File= | ||
Check the tutoial [[LPC1768: Keil Project For Hex File|LPC1768 Keil Setup]] for generating the .hex file using keil.<br><br><br> | Check the tutoial [[LPC1768: Keil Project For Hex File|LPC1768 Keil Setup]] for generating the .hex file using keil.<br><br><br> | ||
− | = | + | =Loading Secondary BootLoader to LPC1768= |
− | You need a USB to Serial(UART) | + | 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. |
[[File:FlashMagicConnection.jpg|x400px]] | [[File:FlashMagicConnection.jpg|x400px]] | ||
<br><br> | <br><br> | ||
[[File:Lpc1768_Usb2Serial.jpg|x400px]] | [[File:Lpc1768_Usb2Serial.jpg|x400px]] | ||
− | |||
− | |||
− | |||
Now open the flash magic software and follow the below steps. | Now open the flash magic software and follow the below steps. | ||
Line 25: | Line 22: | ||
#Browse and Select the hex file. | #Browse and Select the hex file. | ||
#Check the Verify After Programming Option. | #Check the Verify After Programming Option. | ||
− | # | + | #Go to Options->Advanced Options-> Hardware Config and select the Use DTR and RTS Option. |
#Hit the Start Button to flash the hex file. | #Hit the Start Button to flash the hex file. | ||
− | #Once the hex file is flashed, Reset the board. Now the | + | #Once the hex file is flashed. Connect the USB cable, Hold the USB_Boot Switch and Reset the board. Now the board should be detected as Mass Storage device(Explore M3).<br><br> |
[[File:0_Lpc1768FlashMagic.jpg|x400px]] | [[File:0_Lpc1768FlashMagic.jpg|x400px]] | ||
<br><br><br> | <br><br><br> | ||
+ | |||
+ | |||
+ | |||
---- | ---- | ||
=Generating .bin File= | =Generating .bin File= |
Revision as of 17:44, 23 April 2016
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.
Contents
Generating .hex File
Check the tutoial LPC1768 Keil Setup for generating the .hex file using keil.
Loading Secondary BootLoader to LPC1768
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.
Now open the flash magic software and follow the below steps.
- Select the IC from Select Menu.
- Select the COM Port. Check the device manger for detected Com port.
- Select Baud rate from 9600-115200
- Select None Isp Option.
- Oscillator Freq 12.000000(12Mhz).
- Check the Erase blocks used by Hex file option
- Browse and Select the hex file.
- Check the Verify After Programming Option.
- Go to Options->Advanced Options-> Hardware Config and select the Use DTR and RTS Option.
- Hit the Start Button to flash the hex file.
- Once the hex file is flashed. Connect the USB cable, Hold the USB_Boot Switch and Reset the board. Now the board should be detected as Mass Storage device(Explore M3).
Generating .bin File
Check this tutoial LPC1768 Keil Setup for generating the .bin file using keil.
.Bin File Using Secondary Boot Loader
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 LPC1768 board:
- Connect the USB Jumpers.
- Connect the ExploreLpc1768 to system using a USB cable.
- Hold the USB_Btlr switch.
- Press the Reset Switch.
- Release the Reset Switch.
- Release the USB_Btlr switch.
- Now the board will be detected as Explore1768.
- Delete the old firmware.bin file.
- Paste the new .bin file.
- Reset the Board.
- Now your Application code should be running on the board.
Have a opinion, suggestion , question or feedback about the article let it out here!