This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280025-Q1: F280025 SPI communication issue

Part Number: TMS320F280025-Q1
Other Parts Discussed in Thread: DRV8323, BOOSTXL-DRV8323RS, LAUNCHXL-F280025C

Hi

In debugging 280025 and drv8323 SPI communication, found that has been unable to read the correct register value, please help analyze the reason, thank you!!

Details are as follows:

1. Refer to the routine of 28004x "bootxl-drv8320rs" evaluation board: "lab 07 - speed mode and tuning speed Pi",The driver of drv832x and SPI bus driver communicating with drv832x in this routine are transplanted to my own program,I now use the "launchxl-f280255c" core board with the "bootxl-drv832rs" driver board. The source of the routine is as follows:

2. At present, the SPI configuration of my control board is GPIO_ 8_ SPIA_ SIMO,GPIO_ 10_ SPIA_ SOMI,GPIO_ 9_ SPIA_ CLK,GPIO_ 11_ SPIA_ STE,
The control board and the drive board are connected with 4 SPI communication ports and GND cables. The power supply of the drive board is connected with 24 v. the control board is connected with the computer through USB cable.
3. Now all the read register values are 1, because the read values are wrong,After enabling drv832x, query the fault of drv832x_ Bit migration is 1,

However, the nfault pin is not pulled low when measured with a multimeter,To sum up, the reason is that the reading failed,The register values observed during simulation are as follows:

4. After enabling drv832x,When querying the fault of drv832x_ When the bit migration is 1 and reaches 999 times, the program defines an enabletimeout and sets it to 1, which indicates that startup fails.

The waveforms are as follows (blue line: soMi, green line: Simo, yellow line: SCK, magenta: CS)

In terms of waveform, CS and SCK waveforms should be normal,

But I don't know why soMi is always high, which should be the reason for the failure of reading registers. The waveform of Simo may be abnormal.

thanks!