Creating a startup script for the Lauterbach Trace32 In-Circuit software
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.
- 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:
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
- Add the line:
- _FORMAT_ is one of ELF (.elf),
S1record (.srec), or Binary (.ifs)
- _IMAGE_ is the full path to the image from the previous
- Add the following lines, in order:
- Either click Apply if you edited the file within the IDE;
otherwise, save and close the file T32.cmm.