Running and Debugging the Application Using XSCT - 2024.2 English - UG1209

Zynq UltraScale+ MPSoC Embedded Design Tutorial (UG1209)

Document ID
UG1209
Release Date
2025-01-07
Version
2024.2 English
  1. Before you run the application, set a breakpoint at main():

    xsct% bpadd -addr &main
    

    This command returns the breakpoint ID. You can verify the breakpoints planted using the command bplist. For more details on breakpoints in XSCT, type help breakpoint in the XSCT console.

  2. Resume the processor core:

    xsct% con
    

    The following informative messages will be displayed when the core hits the breakpoint.

    xsct% Info: Cortex-R5 \#0 (target 7) Stopped at 0x10021C (Breakpoint)
    
  3. At this point, you can view registers when the core is stopped:

    xsct% rrd
    
  4. View local variables:

    xsct% locals
    
  5. Step over a line of the source code and view the stack trace:

    xsct% nxt
    Info: Cortex-R5 #0 (target 6) Stopped at 0x100490 (Step)
    xsct% bt
    

    You can use the help command to find other options:

    _images/image51.png

    You can use the help running command to get a list of possible options for running or debugging an application using XSCT.

    _images/image52.png
  6. You can now run the code:

    xsct% con
    

    At this point, you can see the Cortex-R5F application print a message on the UART-1 terminal.

    The next chapter shows how to build and debug Linux applications.