Linking ARM Source Code to TLA Disassembly
The Elf/Dwarf2 format generated by the ARM tools is supported only in
TLA versions 4.0 (or greater).
1) Compile your ARM application so that symbol and source line number
information is saved in the .axf executable image. In Metroworks, to do
this, make sure you are compiling a Debug or DebugRel version (which
will set the -g option for compilation). Then select the
Edit->
2) Compile and run your application in the debugger. In the TLA, load
the bus support package and capture a listing trace.
3) Make sure that you set the path to your source files. Go to System-> Options and
select the Sources files tab. Add the appropriate search path to your sources files.
4) Set up source window:
5) If a message appears in the source window that it can't find a
matching line number, click the right arrow button a few times (next
line). Sometimes a listing trace, if not triggered on a specific
instruction address, can begin on an invalid instruction address.
6) If the TLA still can't match an address, then you should verify that
the disassembly addresses in the listing window actually match addresses
in the ARM debugger. Once possible case where they might not is if you
are using the ARM-EBI bus support package, which allows the user to
specify base address offsets for each of its chip selects. Thus, if
these base address offsets are not set correctly, the listing addresses
will not match the symbol table addresses. In this case, correct the
base address offsets, and rerun the trace.