SPRADP0 December   2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P4 , AM263P4-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1List of Acronyms
  5. 2Software Setup
  6. 3Hardware Setup
    1. 3.1 AM263x Connections
    2. 3.2 AM263Px Connections
    3. 3.3 Lauterbach® Connections
  7. 4Building MCU_PLUS_SDK Examples
  8. 5CMM Scripts
  9. 6Flashing SBL Null
    1. 6.1 Using UniFlash tool
    2. 6.2 Using Command Line Python Scripts
  10. 7Debugging with Trace32 Software
  11. 8Summary
  12. 9References

Debugging with Trace32 Software

The Lauterbach hardware, AM26x device, and the application are prepared to be traced. To extract trace for an application, follow the steps below:

  1. Launch the TRACE32 software.
  2. From the T32Start screen, select the PowerView Instance and click on Start.
     T32 Start WindowFigure 7-1 T32 Start Window
  3. Set the device in OSPI, QSPI boot mode and power cycle your device (HSEC Dock board).
  4. Click on File → Run Script → Select the .cmm script am263px-trace.cmm.
  5. First, this file resets the CPU, attaches to the system bus and unlocks MSS_CTRL registers, then eclipse ROM and runs the R5F core. The file then prompts users to choose an application binary to debug. Browse the file explorer and select the file.
  6. The script then configures trace clock source, IOMUX, and I2C to route signals to the docking station.
  7. The script opens up windows to show the debug trace.
     Trace Result WindowsFigure 7-2 Trace Result Windows

See Figure 8-1 for the debug trace of GPIO Led blink example on the AM263Px controlCard.