Flashing LPC2148 – ARM Microcontroller Tutorial – Part 2

Flashing LPC2148 – ARM Microcontroller Tutorial – Part 2

In this tutorial we will learn how to flash an LPC2148 microcontroller using on-chip serial (UART) ISP bootloader with Flash Magic tool.

Components Required

  • LPC2148 ARM Microcontroller
  • USB to UART converter with DTR and RTS outputs.

You may also use ready to go boards like rhydoLABZ LPC2148 Stick.

Connections

LPC2148 ISP Serial UART Flashing Connections
LPC2148 ISP Serial UART Flashing Connections

Circuit Diagram

LPC2148 ISP Serial UART Flashing - Circuit Diagram
LPC2148 ISP Serial UART Flashing – Circuit Diagram

Using Flash Magic Tool

Above we seen how to make connections for serial ISP programming. In this section we will see how can we use Flash Magic tool for flashing LPC2148 ARM microcontroller.

Download

You can download flash magic software from flashmagictool.com. In this tutorial I am using version 12.70, which was the latest one while writing this tutorial.


Installing

  • Run the FlashMagic.exe and install the tool. You can leave all options as default.

Flashing

  • Open the flash magic tool, after completing the installation.
Flash Magic Tool - Opened
Flash Magic Tool – Opened
  • Click “Change” button to change the microcontroller.
Flash Magic Tool - Selecting Microcontroller
Flash Magic Tool – Selecting Microcontroller
  • Select LPC2148 and click “OK”
  • Make sure that you have connected the device (USB to Serial Converter) to your PC.
  • Select the Serial Port (You may open the device manager and check if you have any confusion regarding the serial port).
  • Set Baudrate as “9600”
  • Select the hex file you like to program. You may download the demo hex file (led blinking) given at the end of this article for testing.
Flash Magic Tool - Selecting Serial Port Baud Rate Hex File
Flash Magic Tool – Selecting Serial Port Baud Rate Hex File
  • Click “Start” button to start flashing and make sure that you are not getting any errors during this process.
Flash Magic Tool - Flashing
Flash Magic Tool – Flashing

Hex File

You can download the demo hex file here, this will blink an LED connected to P1.16 pin.

Share this post


>