MCBTMPM330
Quick Start Guide
Getting Started and Blinky Example
This Quick Start Guide introduces the MCBTMPM330
board for the Toshiba TMPM330 family of Cortex-M3 based
devices. It shows how to install Keil software development
tools for ARM-based microcontrollers and run the example
projects provided.
Installing the Software
To install the evaluation version of the MDK-ARM
Microcontroller Development Kit from a CD-ROM
n
Insert the CD-ROM into your PC.
If the opening screen does not appear, run SETUP from the
CD root directory
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 JTAG and Serial-Wire Debug
(SWD) for debugging of ARM-based targets.
Using ULINK2
The ULINK2 Adapter connects to the MCBTMPM330 using the
20-pin ribbon cable.
n
Click
Install Evaluation Software, then ARM Compiler (Eval
Tools)
n
Follow the setup program instructions
Using ULINK-ME
The ULINK-ME Adapter connects directly to the 20-pin JTAG
connector on the MCBTMPM330.
Note: The first MCBTMPM330 boards shipped without a
CD-ROM. An evaluation version of MDK-ARM is available
for download from https://www.keil.com/demo/eval/arm.htm.
n
The LEDs
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\MCBTMPM330\Blinky
To use this example
n
Start m
Vision
n
Open
the Blinky.uv2 project file
Project - Open
n
Compile
and link the Blinky application
Project - Build
the application into on-chip Flash ROM
Flash - Download
on the target are controlled by the potentiometer
setting. As the setting increases, the LEDs scroll faster.
n
Start debug mode
Using the debugger commands, you may:
n
Single step through code
n
Set breakpoints
n
Run the application
n
Review variables in the watch window
n
Reset the device to re-run the application
n
Use the yellow arrow (program counter) to view the
current assembler or C statement
n
Program
www.keil.com/mcbtmpm330
Using the MCBTMPM330 Evaluation Board
Real-Time Trace using SWV
Running Blinky in Simulation
This example demonstrates the value of Real-Time Trace using the
Serial Wire Viewer (SWV) features of TMPM330 microcontrollers.
The Simulator Target of the Blinky example demonstrates the
extra debug features of m
Vision when running in simulation.
It can be found at:
C:\Keil\ARM\Boards\Keil\MCBTMPM330\Blinky
It can be found at:
C:\Keil\ARM\Boards\Keil\MCBTMPM330\Blinky
To use this example:
n
Connect to the MCBTMPM330 board with ULINK2 or
ULINK-ME
n
Select target build option - TMPM330 Flash
To use this example in simulation:
n
Select target build option - Simulator
n
Compile
and download to Flash.
Debug mode.
n
Open a Logic Analyzer Window
View - Logic Analyzer Window
project
Debug mode
n
Open the Performance Analyzer and Logic Analyzer Windows
View - Performance Analyzer Window
View - Code Coverage Window
n
Step through the code
n
The A/D
n
The Code
Coverage Window shows what percentage of the
instructions of each function have been executed
n
The Performance Analyzer Window shows how much time the
processor has spent in each function
Prototyping with MCBTMPM330
Instruction Trace on MCBTMPM330
The MCBTMPM330 routes all the peripheral ports of the
TMPM330 device to a 0.1inch prototyping grid with a DIP form
factor.
The TMPM330FDFG device on the MCBTMPM330 implements an
Embedded Trace Macrocell (ETM) and a 4-bit trace port. This port
is connected to the P4 TRACE connector.
n
Start
n
Compile
n
Start
converter output and the status of the LEDs are
displayed in the Logic Analyzer Window. These values change as
you move the potentiometer.
The numbers next to the prototyping holes match the numbers of
the device pins they connect to.
The board schematics can be downloaded from
http://www.keil.com/mcbtmpm330/mcbtmpm330-schematics.pdf
MDK-ARM supports ETM instruction trace on Cortex-M3
devices via the Signum JTAGjet-Trace emulator.
To do instruction trace on MCBTMPM330:
n
Connect JTAGjet-Trace to the P4 connector
n
Connect µVision to JTAGjet-Trace
Project - Options for Target
Debug Tab - Select Signum Systems JTAGjet
The preferred way to access the TMPM330 peripheral ports is to
solder rows of pins to the prototyping grid.
This way the board may be stacked onto:
rapid, flexible prototyping of TMPM330-based
designs
n
A custom PCB populated with peripheral connectors
n
A breadboard, for
n
Start Debug mode.
Enable Trace Recording
Debug - Enable/Disable Trace Recording
n
Run the application
n
Halt the execution
n
Display the trace records in the disassembly window
Debug - View Trace Records
www.keil.com
很抱歉,暂时无法提供与“MCBTMPM330”相匹配的价格&库存,您可以联系我们找货
免费人工找货