Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

SPI Decoding for SBC TLE926x Family

lock attach
Attachments are accessible only for community members.

SPI Decoding for SBC TLE926x Family

echonng
Employee
Employee
5 questions asked 25 sign-ins First solution authored

Troubleshooting the SBC at a later stage of design can pose significant challenges. There are two options available to gain insights into the setup and initialization process of the SBC. The first option involves reading and comprehending the .c source code, which can be quite intricate and challenging to follow. The second option is to monitor and log the SPI communication between the SBC and MCU. Below are the steps to follow for the second option:

  1. Monitor the SPI signals (CSN, CLK, MISO, and MOSI) using a digital oscilloscope such as the Saleae logic analyzer.
  2. Use the Logic PRO software to decode the SPI signals in accordance with the SBC format (referring to the datasheet).
  3. Export the decoded SPI readings (MISO & MOSI) to an excel in .csv format. (e.g MOSI: 0x0002, MISO: 0x01A0)
  4. Copy and paste the MISO and MOSI into the SPI excel decoder.

echonng_0-1707121092096.png

(Step 2) : SPI decoding settings for Logic Pro 8

echonng_1-1707121209498.png

(Step 3) : Exporting the SPI readings to .csv format.

The raw information obtained from this process may be difficult to understand. However, attached is an excel tool available that can help to decode the information into an easily understandable format.

echonng_2-1707121319081.png

(STEP 4): Decoding the SPI communication data.

For example:

MOSI: Read Register: HW_CTRL Data: 00000000(00)

MISO: Status: 10100000(A0) Data: 00000001(01)

HS_OL_STAT HS_OC_OT_STAT SUP_STAT_2 WK_STAT BUS_STAT DEV_STAT THERM_STAT SUP_STAT_1
1 0 1 0 0 0 0 0

 

The user is required to copy the MISO and MOSI from the exported .csv to the excel tool for decoding the SPI data.

The start time information is only for reference.

Attachments
207 Views
Contributors