Professional Documents
Culture Documents
Synopsis
This document provides an overview of how to use the ST200 toolsets on an STm8010-REF
Traviata (mb426). It covers:
Prerequisites on page 3,
November 2006
7974411 Rev C
1/10
www.st.com
Contents
ST200
Contents
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2/10
2.1
2.2
2.3
2.4
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2
3.3
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7974411
ST200
Prerequisites
Prerequisites
There are several prerequisites that must be fulfilled before using the toolset.
An ST-MULTICORE/MUX box must be installed and connected to the single debug port
of the STm8010-REF Traviata with a LVDS cable.
One ST Micro Connect box must be installed for each ST231 CPU you want to access,
as shown in Figure 1. Each ST Micro Connect is dedicated to a specific CPU and
therefore must be connected to a specific port in number on the ST-MULTICORE/MUX
box.
Connect the ST Micro Connect to:
Figure 1.
The ROM slide switch must be in position A and the configuration switches on the front
panel of the ST-MULTICORE/MUX box must be set as shown in Figure 2.
PC / UNIX
development
host running
multiple debug
operations
HDMI, HDTV,
video outputs
Traviata (STm8010-Ref)
PAL/NTSC TV
monitor and
audio system DSU
DB582
Ethernet hub
PORT 4
PORT 2
ST Micro Connect
PORT 3
master
SATA
drive interface
IEEE1394
interface
USB
interface
ST Micro Connect
ST Micro Connect
HDDI
DVD interface
ST-MULTICORE/MUX
module
Printer
10baseT
Host/target
Ethernet connection interfaces
(network or point-point)
7974411
3/10
Prerequisites
Figure 2.
ST200
Switches on On
ROM
1
Switches off
Config
System requirements for using the ST200 tools on the STm8010-REF Traviata
Component
Description
Supplier
Part Number
PC/UNIX/Linux
development host
Not applicable
ST-Multicore/MUX
module
STMicroelectronics
DB579
ST Dongle Board
STMicroelectronics
DB582
ST Micro Connect
STMicroelectronics
ST20-Connect(1)/Win,
ST20-Connect/Sun,
ST20-Connect/Lnx
STMicroelectronics
ST200-Toolset
Target board
STMicroelectronics
STm8010-Ref
1. Either the ST20 or the ST40 version of ST Micro Connect is compatible for use with the ST200 Micro Toolset.
4/10
7974411
ST200
2.1
2.2
Note:
This option is essential for the correct execution of any application built in OS21 run-time
mode or for bare mode applications that utilize time features.
2.3
LMI memory
Target name
Address
Size
mb426_host
0x80000000
32M
mb426_avenc
0x82000000
16M
mb426_avdec
0x83000000
16M
The ST231 application must be linked to match the dedicated memory area. For example, to
build for the mb426_avdec CPU memory space, use the st200cc option:
-mboard=mb426_avdec
7974411
5/10
ST200
All the information related to the memory space usage of each target is encoded in the
<tools-dir>/target/board/<target name>/board.ld files of each <target
name> such as mb426_host. New <target name> directories may be created under
<tools-dir>/target/board in order to fit the requirements of the application for
sharing the memory space for this board. This is taken into account by specifying the
-mboard=<target name> option when using st200cc, and by specifying the BOARD
<target name> option in the definition of the connection alias in the targets.cfg file
when using st200run or st200gdb.
2.4
Example
Compile your hello world program for the three different cores available on the STm8010
chip:
st200cc -mboard=mb426_avenc -msoc=stm8010 -mcore=st231
-mruntime=[os21|bare]
-o hello.avenc hello.c -g
st200cc -mboard=mb426_avdec -msoc=stm8010 -mcore=st231
-mruntime=[os21|bare]
-o hello.avdec hello.c -g
st200cc -mboard=mb426_host -msoc=stm8010 -mcore=st231
-mruntime=[os21|bare]
-o hello.host hello.c -g
6/10
7974411
ST200
3.1
Note:
While debugging or running in bypass mode on this CPU, no attempt should be made to
access the other CPUs by the st200gdb and st200run tools.
3.2
After power-on or physical reset of the board, the mb426_host CPU must be
connected first by either the st200gdb or st200run tools, before the mb426_avenc or
mb426_avdec CPUs can be connected.
While the mb426_avenc or mb426_avdec slave CPUs are connected, any action on
the mb426_host CPU that triggers a STm8010 chip reset must be prevented:
do not start a connect or disconnect action on the host CPU while a slave CPU is
connected,
do not start an st200gdb load action on the host CPU while a slave CPU is
connected.
To access the targets in multiplexed mode, the following target aliases must be used in the
targets.cfg file:
mb426_host st200emu HTI_ID tcp:<IP address> BOARD mb426_host
NO_TAP_CTRL CLOCK_D=16 CPU_RESET_ADDRESS=0x0
mb426_avenc st200emu HTI_ID tcp:<IP address> BOARD mb426_avenc
NO_TAP_CTRL NO_CHIP_RESET CLOCK_D=64 CPU_RESET_ADDRESS=0x40
mb426_avdec st200emu HTI_ID tcp:<IP address> BOARD mb426_avdec
NO_TAP_CTRL NO_CHIP_RESET CLOCK_D=64 CPU_RESET_ADDRESS=0x100
7974411
7/10
3.3
ST200
Example
Execute a program in bypass mode on the host CPU:
st200run -v -t mb426_host_bp hello.host
Launch a program on the host CPU, then launch two debug sessions in parallel on the slave
CPUs:
st200run -v -t mb426_host hello.host
st200gdb -nw hello.avenc
target gdi -t mb426_avenc
load
b main
run
st200gdb -nw hello.avdec
target gdi -t mb426_avdec
load
b main
run
8/10
7974411
ST200
Revision history
Revision history
Table 3.
Date
Revision
Changes
8-Nov-2006
Jun 2006
Mar 2006
Initial release.
7974411
9/10
ST200
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (ST) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to STs terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN STS TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USERS OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
10/10
7974411