MCB2300
Quick Start Guide
Getting Started and Blinky Example
This
Quick Start Guide
introduces the MCB2300 boards
for the
LPC2360
and
LPC2370
devices from NXP. It
shows how to install the ARM software development tools
and run a variety of example projects.
Connecting to your Target
The target is powered via your PC, through its USB port. The Keil
ULINK family of adapters connect the USB port of your PC to
the JTAG port of your target board allowing you to download and
debug embedded programs running on your target hardware.
ULINK2 and ULINK-ME support standard JTAG and Real-Time
Agent for on-the-fly target debugging.
Installing the Software
To install the evaluation version of the ARM RealView
Microcontroller Development Kit (MDK)
n
the CD-ROM into your PC.
Insert
If the opening screen does not appear, run SETUP from the
CD root directory
Install Evaluation Software, then ARM Compiler
(Eval Tools)
n
the setup program instructions
Follow
n
Click
Using ULINK2
The ULINK2 Adapter connects to the MCB2300 using the 20-pin
ribbon cable.
Using ULINK-ME
The ULINK-ME Adapter connects directly to the MCB2300 20-pin
JTAG connector.
The SETUP program installs Keil
m
and the ARM
Vision
RealView compilation tools.
Blinky Example
This example demonstrates the ease of downloading and
debugging an application on a target board.
It can be found at:
C:\Keil\ARM\Boards\Keil\MCB2300\Blinky
To use this example
n
n
Open
n
The LEDs
on the target are controlled by the potentiometer
setting. As the setting increases, more LEDs are switched on.
Start debug mode
n
Using the debugger commands, you may:
n
n
n
n
n
n
Single step through code
Set breakpoints
Run the application
Review variables in the watch window
Reset the device to re-run the application
Use the yellow arrow (program counter) to view the
current assembler or C statement
Start
m
Vision
the Blinky.uv2 project file
Project - Open
and link the Blinky application
Project - Build
the application into on-chip Flash ROM
Flash - Download
n
Compile
n
Program
www.keil.com/mcb2300
RTOS & Real-Time Library Examples
HTTP with Ethernet
DO NOT RECOMPILE THIS EXAMPLE WITHOUT AN
RL-ARM LICENSE
This example demonstrates easy networking and control of
hardware across a TCP/IP network. It configures the LAN
network parameters for the evaluation board automatically if a
DHCP server is available in your LAN. Otherwise, configure your
PC for fixed IP address as detailed in the example.
It can be downloaded from:
www.keil.com/download/docs/328.asp
To use this example:
n
m
Start Vision
n
the Http_demo.uv2 project file and download to Flash
Open
Project - Open
Flash - Download
n
your web browser and enter the address
http://mcb2300
Open
n
with the following details:
Log in
Flash File System
DO NOT RECOMPILE THIS EXAMPLE WITHOUT AN
RL-ARM LICENSE
This example enables you to create, read, copy and delete files
from an SD/MMC flash memory card on the evaluation board.
It can be downloaded from:
www.keil.com/download/docs/338.asp
To use this example:
the MCB2300 board’s COM1 port to the COM1 port
on your PC via a serial cable and start a hyperterminal session
configured for 115200 baud, 8 bits, no parity, 1 stop bit,
XON/XOFF.
n
m
Start Vision
n
an SD/MMC flash memory card and power up the board
Install
n
Connect
Username
Password
admin
leave blank
the SD_File.uv2 project file and download to Flash
Project - Open
Flash - Download
n
The SD/MMC card can now be read or edited from the Debug
window using a HyperTerminal via a serial cable from your PC
to the evaluation board.
n
Open
The web pages allow you to control and monitor various
functions of the board including LEDs and LCD panel.
USB - HID Demo
This USB example project implements a Human Interface Device
(HID), and connects directly to your PC via the USB. No special
USB drivers are required, since the HID support is already built
into Windows 2000 and Windows XP.
It can be found at:
C:\Keil\ARM\Boards\Keil\MCB2300\USBHID
To use this example:
n
m
Start Vision
n
the HID.uv2 project file and download to Flash
Open
Project - Open
Flash - Download
n
power on the target so that your PC recognizes it as an
Cycle
HID device
n
the USB Client application which can be found at:
Install
C:\Keil\ARM\Utilities\HID_client\Release
n
the evaluation board from the drop-down menu
Select
Traffic Light example with RTX
This example uses interrupts to control a traffic light system
running on the RTX real-time operating system.
It can be found at:
C:\Keil\ARM\Boards\Keil\MCB2300\RTX_Traffic
To use this example:
n
m
Start Vision
n
the RTX_Traffic.uv2 project file
Open
Project - Open
n
Compile and link the application, then program it into on-chip
Flash ROM
Project - Build Target
Flash - Download
n
The LEDs will begin to flash in a controlled manner
n
The tasks running in the application may be viewed from the
debugger window
Peripherals - RTX Kernel
n
Checking
or unchecking the boxes in the Output (LEDs) group
turns the MCB2300 Board’s LEDs on and off.
n
(Buttons) show the status of the on-board buttons
Inputs
www.keil.com