You can create a startup script for the Trace32 Debugger software, which can bring up the
target hardware and load the image into RAM.
To create a startup script:
- Do one of the following:
- From the Lauterbach TRACE32 launch configuration, select the Edit
Configuration File tab.
Or:
- Locate and open the T32.cmm file located in the root of
your TRACE32 installation directory.
- Locate the enddo line of the file. Usually, this is the last nonempty
line. All of the extra lines appear directly before this line.
- Add a line:
sys.cpu _CPU_
where _CPU_ is your architecture. For example, sys.cpu MPC8349.
- Add the following lines, in this order, directly after the previous one:
sys.reset sys.up go wait 5000.ms break
- Locate the image file you want to load onto the target on your hard drive. It should
be in either .srec, .elf, or
.ifs format.
- Add the line:
data.load._FORMAT__IMAGE
where:
- _FORMAT_ is one of ELF (.elf),
S1record (.srec), or Binary (.ifs)
- _IMAGE_ is the full path to the image from the previous
step.
- Add the following lines, in order:
step,
Data.List,
Register/SpotLight
- Either click Apply if you edited the file within the IDE;
otherwise, save and close the file T32.cmm.