TRX Host Driver
SPITRX Logic Analyzer Plugin

The SPI traffic between a host device and the TRX can be captured using a logic analyzer and processed with the provided plugin to be human-readable. This can greatly reduce the time required to debug and increase the understanding of the structure of communication between a host and the TRX.

Pre-Requisites:

  1. A logic analyzer that is compatible with Logic Software
  2. Logic Software downloaded and installed
  3. Python 3.8+ installed and on the Path

Using the Analyzer:

  1. Install the plugin dependencies
    • Execute the following on your command line replacing <SDK_INSTALL_DIR> with the path to your SDK install
      • python -m pip install --upgrade <SDK_INSTALL_DIR>/tools/trx --target <SDK_INSTALL_DIR>/tools/trx/saleae/lib
  2. Open Saleae Logic 2.x
    • Open the "Extensions" tab, looks like blocks, right side under Play
    • Clik the vertical ... right next to Play
    • Choose Load existing extension
    • Navigate to and select the extension.json file in <SDK_INSTALL_DIR>/tools/trx/saleae/spitrx

      saleae_load_extension.png
      Load Extension
  3. Navigate to the Analyzers tab and click the + top right and add a SPI analyzer that takes in SCLK/POCI/PICO/CS_N

    • MSB First
    • 8 Bits per transfer
    • CPOL=0,CPHA=0
    • Enable is active low
    saleae_spi_settings.png
    SPI Settings
  4. Then add a SPITRX analyzer

    • Choose the SPI analyzer to use parsed bytes from, and choose whether to analyze the Host or TRX side
    • Add the other side, either Host or TRX as a separate SPITRX analyzer
    saleae_spitrx_settings.png
    SPI TRX Settings
  5. See the analyzed frames in the timeline view, the table view and in the terminal view.

    saleae_spitrx_frame.png
    SPI TRX Frame