Commands to connect to a simulated target. STMicroelectronics ST40 Micro Toolset GDB command scripts
विज्ञापन
विज्ञापन
Target configuration
1.3.2
UM1250
As an example, the STMC connection commands for the STb7109E-Ref board are listed in
.
Table 11.
STb7109E-Ref board STMC connection commands
Command Definition
mb448
(1) mb448bypass mb448stmmx mb448se
(1) mb448sebypass mb448sestmmx mb448seuc
(1) connectsh4le $arg0 mb448_setup
"jtagpinout=st40 hardreset" mb448 $arg0 "jtagpinout=st40 jtagreset
-inicommand mb448bypass_setup" mb448 $arg0 "jtagpinout=stmmx jtagreset tdidelay=1
-inicommand mb448stmmx_setup" connectsh4le $arg0 mb448se_setup
"jtagpinout=st40 hardreset" mb448se $arg0 "jtagpinout=st40 jtagreset
-inicommand mb448bypass_setup" mb448se $arg0 "jtagpinout=stmmx jtagreset tdidelay=1
-inicommand mb448stmmx_setup" connectsh4le $arg0 mb448seuc_setup
"jtagpinout=st40 hardreset" mb448seuc $arg0 "jtagpinout=st40 jtagreset
-inicommand mb448bypass_setup" mb448seucbypass mb448seucstmmx mb448se29
(1) mb448seuc $arg0 "jtagpinout=stmmx jtagreset tdidelay=1
-inicommand mb448stmmx_setup" connectsh4le $arg0 mb448se29_setup
"jtagpinout=st40 hardreset" mb448se29bypass mb448se29stmmx mb448se29 $arg0 "jtagpinout=st40 jtagreset
-inicommand mb448bypass_setup" mb448se29 $arg0 "jtagpinout=stmmx jtagreset tdidelay=1
-inicommand mb448stmmx_setup"
1.
Not used. Must connect using tmx-mode variants.
Commands to connect to a simulated target
Simulated targets use target-specific GDB connection commands. To configure a simulated target, a connect command is invoked that takes two GDB command scripts as parameters.
These scripts configure the simulator and simulated target (see
Section 1.1: Target connection overview on page 10
).The format of the connect command is:
connect arch-type sim-mode endian
Where, the suffixes are the same as in
Table 1: GDB command suffixes on page 10
that the endian suffix is not optional.
20/87 8045872 Rev 9
UM1250 Target configuration
lists the connect user commands defined by the GDB command script file sh4connect.cmd
for connecting to simulated targets.
Table 12.
Simulator connect commands
Command Description
connectsh4simle connectsh4psimle connectsh4simbe connectsh4psimbe
Connect to an ST40 functional simulator (little endian).
Connect to an ST40 performance simulator (little endian, cycle accurate).
Connect to an ST40 functional simulator (big endian).
Connect to an ST40 performance simulator (big endian, cycle accurate).
connectst40300simle connectst40300simbe connectst40300psimle
As above but for a simulated target with an ST40-300 core.
connectst40300psimbe
The connect commands listed in
Table 12: Simulator connect commands
arguments:
$arg0 specifies the command to configure the SuperH simulator
$arg1
$arg2 specifies the command to configure the simulated target
specifies the configuration commands for the SuperH simulator (see
lists the SuperH simulator configuration commands. Only one configuration command can be specified and must be specified as a string (that is, enclosed within double quotes).
Table 13.
Simulator configuration commands
Command Description
+DMM
delay
+SCIF
mode
Set the memory access delay (in cycles) to delay (ST40 performance simulator only). Default is 1 cycle.
Enable (mode is 1) or disable (mode is 0) a simulated serial port. The simulator displays a TCP/IP port number and waits for 30 seconds for the user to connect to the network port using, for example, Telnet.
As an example, the connect commands for the simulated STb7109E-Ref targets are listed in
.
Table 14.
STb7109E-Ref simulator connection commands
Command Definition
mb448sim connectsh4simle mb448_fsim_setup mb448sim_setup "" mb448simse connectsh4simle mb448se_fsim_setup mb448simse_setup "" mb448simseuc connectsh4simle mb448se_fsim_setup mb448simseuc_setup "" mb448simse29 connectsh4simle mb448se_fsim_setup mb448simse29_setup "" mb448psim connectsh4psimle mb448_psim_setup mb448sim_setup ""
8045872 Rev 9 21/87
डाउनलोड
विज्ञापन