Other Parts Discussed in Thread: DRV8323, BOOSTXL-DRV8323RS, LAUNCHXL-F280025C
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:
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)
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.