Line 6: Line 6:
 
For flashing the hex files, we will be using the flash magic software along with a Usb to Serial converter.<br> To upload the .bin, no external hardware is required but  board should have the secondary boot loader.
 
For flashing the hex files, we will be using the flash magic software along with a Usb to Serial converter.<br> To upload the .bin, no external hardware is required but  board should have the secondary boot loader.
  
=Using Flash Magic=
+
=.Hex Using Flash Magic=
You need a USB to Serial(UART) convertor in order to get this working. The neat thing about the NXP controllers is, they come with a UART boot-loader form the factory. Even though we put a USB boot-loader on top it, the serial boot-loader is still there for you.
+
You need a USB to Serial(UART) convertor 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>
Line 30: Line 30:
  
 
[[File:0_Lpc1768FlashMagic.jpg|x400px]]
 
[[File:0_Lpc1768FlashMagic.jpg|x400px]]
 +
 +
 +
=.Bin File Using Secondary Boot Loader=
 +
Even though we put a USB boot-loader on top it, the serial boot-loader is still there for you.

Revision as of 15:57, 9 March 2016

Explorer (talk) 17:50, 7 March 2016 (IST)


Objective

In this tutorial we will be discussing how to upload the .hex and .bin files to Lpc1768 board.
For flashing the hex files, we will be using the flash magic software along with a Usb to Serial converter.
To upload the .bin, no external hardware is required but board should have the secondary boot loader.

.Hex Using Flash Magic

You need a USB to Serial(UART) convertor in order to get this working. The neat thing about the NXP controllers is, they come with a UART boot-loader from the factory. FlashMagicConnection.jpg

Lpc1768 Usb2Serial.jpg


Note: If your converter does not have DTR and RTS lines, "hold down the ISP/PRI_BLD switch, RESET the board(press and release reset switch) and then release the ISP switch ". Now the Boot Contoller will be in ISP/PRI_BLD mode and you can flash the hex file using flash magic.

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 hex file.
  8. Check the Verify After Programming Option.
  9. If DTR and RTS are used then 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.
  11. Once the hex file is flashed, Reset the board. Now the controller should run your application code.

0 Lpc1768FlashMagic.jpg


.Bin File Using Secondary Boot Loader

Even though we put a USB boot-loader on top it, the serial boot-loader is still there for you.