Connecting To and Programming the LPC2148 Blue Board. Method 1 ISP (In-System Programming) w/ Flash Magic

Similar documents
User Manual. Product Link:

CoLinkEx JTAG/SWD adapter USER MANUAL

Embest Emlink for ARM Cortex-M3. User Manual

RF Solution for LED Display Screen

SXGA096 DESIGN REFERENCE BOARD

Tools to Debug Dead Boards

TALOS ITR-T250. TALOS ITR-T250 Driver Setup Guide (V1.0) on the disk sent with the printer. Follow the steps (see the picture):

APPLICATION NOTE 4312 Getting Started with DeepCover Secure Microcontroller (MAXQ1850) EV KIT and the CrossWorks Compiler for the MAXQ30

Model VS-2A 2-Port VGA Switch with Audio & Serial Control

Laboratory Exercise 4

The Serial Port is Dead! Long Live the Serial Port! USB Serial Port Breadboard Experiments with the FTDI FT232R

JAMAR TRAX RD Detector Package Power Requirements Installation Setting Up The Unit

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Embedded Master Module

HDMI to 3G-SDI Scaler Installation Guide

Personal Information Page

ARM HOW-TO GUIDE Interfacing Traffic Light with LPC2148

3G-SDI to HDMI Scaler Installation Guide

Installation & Operation Manual

ScanExpress JET. Combining JTAG Test with JTAG Emulation to Reduce Prototype Development Time. Ryan Jones Corelis, Inc. An EWA Technologies Company

Guide For Setting Up Your Fortec Lifetime Ultra Receiver

HITS QT/QT+ Setup Instructions for QSD/QHD Services using: Drake SCT2x4 Headend Transcoder 2 Satellites/4 Multiplexes

EEM Digital Systems II

PSIM. January Powersim Inc.

Operating Instructions

VHDL Upgrading of a TNT2 card

Using SignalTap II in the Quartus II Software

ASKING FOR ASSISTANCE

Yellow Frog. Manual Version 1.1

EdgeConnect Module Quick Start Guide ITERIS INNOVATION FOR BETTER MOBILITY

Fiber Optic Extender User Manual. Model: CV-F01-TX

Fluke 190-Series II Firmware Upgrade V11.44

Logic Controls LV3000 VGA Connected Virtual Pole Display

R4 AIS Class B Transponder

HV-122-DCA DVB-T 2-Way Diversity Receiver Box Quick Installation Guide

Table of Contents. Versa TILE & Versa DRIVE D2 Quick Start Manual

WCS-V82 Programming Software for the Icom IC-V82

Aurora Grid-Tie Installation Instructions (Model Number: PVI-3.0-OUTD-US-W) Revision 4.1

WCS-D800 Programming Software for the Icom ID-800

Usermanual. P2K-HL3E1 1080p HDMI Extender over IP P2K-HL3E1-P 1080p HDMI Extender over IP with PoE P2K-HRSL3E1 / P2K-LHRS1E3

Sundance Multiprocessor Technology Limited. Capture Demo For Intech Unit / Module Number: C Hong. EVP6472 Intech Demo. Abstract

308 Industrial Park Rd. Starkville, MS RC1-Y Controller. For Yeasu DC Rotators INSTRUCTION MANUAL. Copyright 2015, All Rights Reserved.

First Time Setup Guide

KRS-V7A Programming Software for the Kenwood TM-V7A

Using Sliders with the 4201-B Lighting Controller Application Note June 26, 2008

Ashling Product Brief APB219 v1.0.3, 12 th October 2018

NT-9600 Wireless Barcode Scanner. Introduction

Pin Assignment for serial cables (RS232, 9-Pin)

For warranty service, please contact Microframe at: A technician will gladly assist you.

HDMI 1 HDMI 2 HDMI 3 HDMI

Welch Allyn CardioPerfect Workstation Tango+ Interface Notes

Manual Version Ver 1.0

Configuration Vestas VMP3500

Rack-Mount Receiver Analyzer 101

J.M. Stewart Corporation 2201 Cantu Ct., Suite 218 Sarasota, FL Stewartsigns.com

High Power Bundle for the Icom IC-7300

CCE900-IP-TR. User s Guide

3G/HD/SD-SDI Quad-view Video Processor. User Manual

Remote Application Update for the RCM33xx

CP316 Screencast mini-project

F24X DSK Setup and Tutorial

A Motor can be in many groups, by assigning additional channel# on it.

8. How to program by RS232

UG147: Flex Gecko 2.4 GHz, 20 dbm Range Test Demo User's Guide

6G-SDI EXTENDER OVER UTP Installation Guide

Model Colorado Ultra Wide Bandwidth HDTV Matrix Switch

WaveMaker III Gartech Enterprises Inc. 12/17/2012

1x2 HDMI Splitter with 3D and 4Kx2K Quick Installation Guide

FT991 and WSJT-X setup Let s set up the FT991 first 1. Click the Menu/Setup button and set the following menu items to these: i. 029 = 38400bps ii.

Ten-Tec (865) Service Department:(865)

DVB-T USB SET-TOP BOX

Setup Guide. Quantum Data 70x/80x Series. Video Generators. Rev. 1.1

RADIO FREQUENCY SYSTEMS

HD-1600 Single Input MPEG-4 DVB-T HD Encoder/Modulator User Guide and Install Manual

STB Front Panel User s Guide

BoxIO User Manual Updated Applies to BoxIO Firmware Version 1.51 IP Remote Utility Version 1.0

Active VGA Managed Repeater Hub Installation Guide

LA-1440 and LA-4440 Sound Level Meter

Component Video Matrix Switcher Series ITEM NO.: YS04MA, YS04MD

-TECH DIGITAL. Explore The High DefinitionWorld. Website: Hot Line: [US] USER MANUAL

Quick Guide Book of Sending and receiving card

Weschler AMT Software for the Enhanced Version Transformer Advantage

RC1-G Series Controller

Raspberry Pi debugging with JTAG

H.264 HDMI Extender over IP Extender With LED, Remote, POE, RS232 Operating Instruction

Media Tube HO ActionPad Configuration Manual V0.2 User Version

SZU OPERATING INSTRUCTIONS SAT NAVI

ECE-320 Lab 5: Modeling and Controlling a Pendulum

Spider. datasheet V 1.0. Communication and fault injection of embedded chips. rev 1

iremote ts Frequently asked questions

Running the MIT Outdoor Scoreboard from FinishLynx FinishLynx Settings and Instructions

USER'S MANUAL. Getting started with ALEXAN ATMEL AT89C2051/AT89C4051 Training Module - 1

Booya16 SDR Datasheet

Operating Manual for Clock / Auxiliary Displays for VHX systems

The Playful Invention Company. PicoCricket Troubleshooting. Version 1.2a

Quick Start for TrueRTA (v3.5) on Windows XP (and earlier)

ET-REMOTE DISTANCE. Manual of ET-REMOTE DISTANCE

VIEW Lite DJ100 Digital AV Decoder JPEG2000 Based Audio/Video Decoder. Quick-Start Guide

Getting Started With the imx Developer s Kit

AVTuner PVR Quick Installation Guide

Transcription:

Connecting To and Programming the LPC2148 Blue Board We have two primary methods of programming the LPC2148 Blue Board. We can use the supplied bootloader with ISP (In-System Programming) or JTAG (better and supports live debugging!) Method 1 ISP (In-System Programming) w/ Flash Magic You will require: USB -> RS232 Serial Adapter Cable Flash Magic from http://www.flashmagictool.com/ Already pre-programmed in the LPC2148 is a bootloader which can download your program through the serial port. In order to access this bootloader we need to control the RESET and the ISP button. We are going to set up Flash Magic to automatically do this for us. Step 1: Set the Board to use Auto ISP mode Set the Jumper/Shunt on J26 to short position 2 and 3

Step 2: Plug in the USB -> RS232 Serial Adapter Cable to UART0 and also plug in the USB cable supplied. The USB cable supplied is being used for power only. You can also program through the USB cable alone, but that is a little longer process and you can read about it in the LPC2148 Blue Board User Manual. You can also power the board through the power jack using a 6-9v power supply. If using a power supply, normally we would care about whether the jack was center positive or negative (polarity). If you look at the schematic for the board, you will notice that we have been conveniently provided a full-wave bridge rectifier to accept either polarity for our power supply jack (this is worth mentioning as I found it to be rather clever). Step 3: Configure Flash Magic. 1. Make sure to select LPC2148 2. Set the COM port to that of your USB - >Serial adapter. In my case it was COM 1. If you have having trouble finding it, go to the Windows Device Manager, watch the window and unplug/plug in the cable and watch for the change. 3. Baud Rate can be anything at 38400 bps or lower 4. Make sure Erase blocks used by Hex File and Verify after programming are

Next: Go to Options -> Advanced Options and set the following. Remember I mentioned earlier that we are using Auto ISP Mode. This means that we will allow Flash Magic to toggle reset and the bootloader. Now we can browse to select our Hex File and press Start. Once programming is complete we can press the reset button on our board and our program should run. If your program isn t running by this point, you may have to unplug the serial cable and press reset again.

Method 2 JTAG debugger and Keil uvision Let the Fun Begin! You will require: JTAG Adapter compatible with Keil uvision (ULINK2) search ebay for ULINK2 (~$20 and ships from china, so order 2 weeks before you need it!) JTAG Programming and Debugging truly is the best thing since sliced bread! We can program the LPC2148 flash memory directly from the Keil uvision IDE (Integrated development Environment). We can also run our code without having to reset or toggle switches. However, the best thing is that we can perform live debugging with the hardware. In other words we can set a breakpoint, single step and watch all of the Registers and SFRs (Special Function Registers) change in real-time on our hardware as it interacts with the real world! Step 1: Ensure J11 is shorted with a jumper/shunt. J11 enables the JTAG debug feature on our LPC2148 BlueBoard Step 2: Plug in the ULINK2 JTAG Debugger to J12 and your computer through the USB cable. Don t bother installing any drivers which may have been supplied as Keil should already have installed these on your system. Also make sure you have power to the board.

Step 3: Now we must configure Keil uvision to use the ULINK2 JTAG. Right-Click on Target1 and go to Options. From here select ULINK2. Keil will probably ask you to upgrade the firmware on the ULINK2, go ahead and upgrade by selecting yes. Once the upgrade has completed, you should see a confirmation in the build output window at the bottom. Now click on Settings next to the ULINK2 that you selected in the Debug tab under options. Make sure you check Download to Flash as shown below. These are the settings I used.

Step 4: Once your settings are properly set. Go ahead and select OK and go back to your project. For this project I used the unchanged default Startup.s for test purposes. I then added a small loop program at the bottom of the code to test everything. Once your code is written and you are ready to program, click on debug, the same way we did on the simulator. This will download your program directly to the LPC2148 and will stop you at the beginning of Startup. From here you can set a breakpoint at your loop and look at the registers. Pressing Run will step you through each iteration of the loop. From here you can watch RO in real-time get decremented on your processor. Also, notice the lights on the ULINK2 each time you press Run. The debugger of Keil is instructing the ULINK2 to cause the LPC2148 to run to the next breakpoint. If you want to just run non-stop and uninterrupted, just don t set a breakpoint and hit run. If instead while running, you encounter a bug in your code, you can stop the execution, inspect the current state of the LPC2148 and single-step to find your problem. This is how most production embedded systems are developed and how we will develop our projects.