Wiki

This version (31 Aug 2022 14:05) was approved by Alin-Tudor Sferle.The Previously approved version (31 Aug 2022 10:38) is available.Diff

Playing with xsdb

XSDB (Xilinx System Debugger) is a user-friendly, interactive, and scriptable command line interface, Its main purpose is debugging.

Quick start guide

Open xsdb console

You can open an xsdb(or xsct) terminal from SDK GUI(tools) or by running xsdb.bat(in Windows OS), xsdb(in a Linux OS)

Connect to the hw_server

  connect

List available targets

  target

Connect to one of the targets (e.g. 3)

  target 3

Read data from a memory location (core register map)

  mrd -force 0x(adi axi core base address + (common register)*4)
  mrd -force 0x(adi axi core base address + (channel offset + channel register)*4)

Write data from a memory location (core register map)

  mwr -force 0x(axi_ad9361 base address + (channel offset + channel register)*4)  0x(value)

Example

# For example, change the axi_ad9361 tx data select. Writing to REG_CHAN_CNTRL_7. For channel offset and register see the axi_ad9361 register map.

  mwr -force 0x79024418 0x2
  mwr -force 0x79024458 0x2
  mwr -force 0x79024498 0x2
  mwr -force 0x790244D8 0x2

More examples can be found in no-OS program and capture scripts

References

resources/fpga/playing_with_xsdb.txt · Last modified: 31 Aug 2022 14:05 by Alin-Tudor Sferle