Creating a startup script for the Lauterbach Trace32 In-Circuit Debugger

You can create a startup script for the Lauterbach debugger, to bring up the target hardware and load the image into RAM.
To create a startup script:
  1. Do one of the following:
    • From the Lauterbach debugger launch configuration, select the Edit Configuration File tab.
    • Locate and open the T32.cmm file located in the root directory of your TRACE32 installation.
  2. Locate the enddo line of the file.
    Usually, this is the last nonempty line. All extra lines appear directly before this line.
  3. Add this line:
    sys.cpu _CPU_
    where _CPU_ is your architecture. For example, sys.cpu MPC8349.
  4. Add these lines, in this order, directly after the previous one:
    sys.reset
    sys.up
    go
    wait 5000.ms
    break
  5. Locate the .srec, .elf, or .ifs image file you want to upload to the target from your hard drive.
  6. Add this 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
  7. Add these lines, in this order:
    step, 
    Data.List,
    Register/SpotLight
  8. If you edited the T32.cmm file within the IDE, click Apply; otherwise, save and close the file.