Part Number: DRV8350
Tool/software:
Hello!
I have configured the SPI with CPOL=0 and set it to read bits on the trailing edge, following the datasheet specifications.

However, when attempting to verify the write and read operations, the read operation does not return any data.

boolset_config_PWM_MODE(void) {
uint16_tdata= (WRITE_BIT<<15) | (0xd<<11) |CONTROL_VALUE_DEFAULT;
SYS_CONSOLE_PRINT("PWM_MODE: %x\n\r", data);
boolret=SPI1_Write(&data, sizeof(data)); // Send the enable command
SYS_CONSOLE_PRINT("ret: %d\n\r", ret);
while(SPI1_IsBusy());
returnret;
}
I've seen other posts suggesting that the data might be erased before it can be read. Is there a way to access the data before it is potentially erased?
Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you in advance for your help!








