MMCCMB2103UM/D
User’s Manual
29
Debugging Embedded Code
Section 3 Operation
This chapter explains how to begin using debugging tools available for your MMCCMB2103
Controller and Memory Board, as well as how to use Motorola’s SysDS Loader.
3.1 Debugging Embedded Code
With your CMB2103, you may use the Picobug monitor as standalone software. Optionally, you
may use the GNU source-level debugger with the Picobug monitor. Other firms may produce still
additional software to run, test, and modify the code you develop for embedding in an MMC2103
MCU.
3.1.1 Using the Picobug Monitor
The Picobug monitor comes burned into the external FLASH memory devices of your CMB2103.
Before you start the Picobug monitor, make sure that you have an RS232 connection between
CMB2103 connector J61 and a serial port of your computer.
To start the monitor, for use as a standalone debugger:
1.
Make sure that power is not applied to your CMB2103.
2.
Activate Hyperterminal or a comparable terminal-emulation program. (If you use a different
terminal-emulation program, you must make corresponding changes in the commands and
menu selections of these instructions, and in the instructions of paragraph 3.1.2.)
3.
From the File menu, select Properties. This opens a properties dialog box.
4.
Click on the Configure button of the dialog box. This opens a configuration dialog box.
5.
Use the configuration dialog box to set these communications properties: 19,200 baud, 8
data bits, no parity, 1 stop bit, and no flow control. Also specify the correct communications
port (for example, COM1). Click the OK button of the dialog box.
6.
Set switch S2 for the Picobug monitor: subswitches 1, 3, and 4 ON; subswitch 2 OFF.
7.
Apply power to the CMB2103 and press the enter key. The Picobug monitor starts
automatically, displaying the command prompt:
picobug>
.
To use the Picobug monitor, merely enter commands at the prompt. Table 3-1 explains these
commands. To see a list of these commands on your computer screen, enter a question mark or the
extra command
he
at the command prompt.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..