Sunday , January 20 2019

Program ARM7 LPC2148 Microcontroller

In previous tutorial we have gone through basics of ARM7 LPC2148 Microcontroller. In this tutorial, we will be learning how to Program ARM7 LPC2148 Microcontroller in ISP Mode. To program microcontroller we will be using MDK-ARM Keil µVision4 IDE and Flash Magic Tool. Keil has Lite or Evaluation edition which limits the code size of 32kB. This could be more than enough for our projects. Flash Magic is utility, we’ll use this to load hex file into flash memory of LPC2148 Microcontroller.

We also need hardware’s i.e. microcontroller evaluation board to run and test example code. There are plenty of kits available in market. We’ll use STK2148-UltraLite V1.4 evaluation board from SPJ Embedded Systems Pvt. Ltd. Pune. We appreciate help from company to sponsor us this evaluation board to continue this tutorials series. You can use any available LPC2148 evaluation kit. The only thing you have to make sure is pin numbers and schematics. We recommend you to buy STK2148-UltraLite V1.4 or any LPC2148 header board or something similar to BlueBoard. Apart from power adapter of 6V and 500mA we need USB to UART Serial Cable. We’ll need to install drivers before using Flash Magic to load hex file onto LPC2148 via UART0 in ISP Mode. Refer Image:

Program ARM7 LPC2148 Microcontroller
LPC2148 Board and required Accesories

Installation of Keil MDK-ARM µVision4 is very simple. You only need to fill the form to download setup file. To get MDK-ARM click this link or link2. Flash Magic Tool is freeware utility can be found here. Here is quick video to demonstrate entire process from connection between hardware’s to burn hex file onto microcontroller

Video:How to Program ARM7 LPC2148 Microcontroller

IMPORTANT NOTE: In this tutorial we have shown how to Program ARM7 LPC2148 Microcontroller using In-System Programming (ISP). We used UART0 Pins in auto mode. In future post we’ll cover various methods say for example: USB Bootloader to program LPC2148. This could be very useful way to quick update firmware in field. Also make sure some LPC2148 evaluation kits needs to Press Button Sequence to hold ISP Switch and Press RESET and then Release RESET and then ISP Switch.

This way device enters into ISP mode manually. This often depends on hardware that you been using. We recommend you to read user manual carefully. If it is needed then consult company who made your LPC2148 board/kit. Sometime we also need to Press RESET Switch after loading hex file to LPC2148. This could execute latest firmware in flash memory.

This is how you can Program ARM7 LPC2148 Microcontroller for your next project. In next tutorial we’ll build Fresh New Keil MDK-ARM uVision4 Project. We will write simple program to configure GPIO Port Pins of LPC2148 Microcontroller. We hope you’ll this tutorial educational and entertaining. Good Luck and Enjoy….!!!!

About Umesh Lokhande

Umesh Lokhande holds a Master degree in Scientific Instrumentation from University of Applied Sciences Jena, Germany. and has previously worked at Orbotech, Alere Technologies etc. Umesh is also a founder and first author of BINARYUPDATES.COM

Login

Register | Lost your password?