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:
  1. 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.
  2. Locate the enddo line of the file. Usually, this is the last nonempty line. All of the extra lines appear directly before this line.
  3. Add a line:
    sys.cpu _CPU_

    where _CPU_ is your architecture. For example, sys.cpu MPC8349.

  4. Add the following lines, in this order, directly after the previous one:
    sys.reset sys.up go wait 5000.ms break
  5. 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.
  6. 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.
  7. Add the following lines, in order:
    step, 
    Data.List,
    Register/SpotLight
  8. Either click Apply if you edited the file within the IDE; otherwise, save and close the file T32.cmm.