Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 14309

DRV8350: No Data Returned from SPI Read Operation

$
0
0
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!


Viewing all articles
Browse latest Browse all 14309

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>