Tuesday , October 23 2018

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….!!!!

[amazon_link asins=’B016MPRFCW,B00S7SFP1G’ template=’ProductCarousel’ store=’wwwbinaryupda-21′ marketplace=’IN’ link_id=’a101808b-fd15-11e7-8ce3-cf4c57effd3c’]

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

5 comments

  1. Akshay Dilip Pote

    Dear Sir,
    i wand lpc 2148 programe for keypad interface with controller for door lock acess and and also display system to display the pass key to unlock the door…
    plz help me….

  2. sir plz do…. its so urgent

  3. Omkar Suryawanshi

    Hey.. Great tutorials. But i cannot acess the tutorials after the switching one in 8051 like ADC, DAC and anyother tutorials in 8051..what should i do.. Please revert back soon as possible, i want to learn 8051 programming. And sir i have a commercial project that needs to be done on 8051.. 7276770525 this is my number if its possible we can talk ok the phone or wastsapp. Thank you

  4. Taruni Dhara Rao

    Hi,

    I tried to flash hex file generated from keil micro vision 4, unfortunately it’s not working after successfully programmed in to board. But, it’s working with only hex files given by you. Please help me to fix the issue.

    Thanks & regards,
    Taruni Dhara Rao Gandham
    Tech Mahindra
    9036527250

  5. HOW TO PROGRAM ARM7 WITHLPC2148 VIA UART? I

Login

Register | Lost your password?