Tuesday, August 2, 2011

Debugging ARM files with arm-elf-insight (Simulation)

Insight is a graphical user interface for gdb, available for use in Cygwin on Windows. Installation is fairly straight-forward.

Usage

Open Cygwin.
  1. Assemble and link a .s file, ensuring the '--gdwarf2' option is used.
  2. Run arm-elf-insight.exe
  3. Click File -> Open, and select the ELF file.
  4. Click Run -> Run, or click the running man icon.
  5. Select 'Simulator' as the Target, and click OK.





  6. Click 'Yes'.
  7. For embedded systems debugging, it is good to open both the registers and memory windows under the View menu.
  8. Step through the program, observing changes in the registers and memory contents. If using flash-v1.s, pay attention to the memory changes at 0x10000000.

No comments:

Post a Comment