Wiki

This version is outdated by a newer approved version.DiffThis version (14 Jan 2021 05:40) was approved by Robin Getz.The Previously approved version (14 Jun 2019 10:31) is available.Diff

This is an old revision of the document!


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)

  mdr --force 0x(adi axi core base address + (common register)*4)
  mdr --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.1610599089.txt.gz · Last modified: 14 Jan 2021 05:38 by Robin Getz