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:
-
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.
-
Locate the enddo line of the file.
Usually, this is the last nonempty line. All extra lines appear directly before this line.
-
Add this line:
sys.cpu _CPU_
where
_CPU_ is your architecture. For example,
sys.cpu MPC8349.
-
Add these lines, in this order, directly after the previous one:
sys.reset
sys.up
go
wait 5000.ms
break
-
Locate the .srec, .elf, or .ifs
image file you want to upload to the target from your hard drive.
-
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
-
Add these lines, in this order:
step,
Data.List,
Register/SpotLight
-
If you edited the T32.cmm file within the IDE, click Apply;
otherwise, save and close the file.