Spi cs_change not working properly on jetson nano devkit module

Hi @forumuser

I have a thought. It looks like in the oscilliscope waveform that CS is being set to 1 (deselecting peripheral SPI device) after the 2 byte transfer is complete. That leads me to believe the signals are acting as expected. So it looks like the state of the pin is able to change. If you are sending two bytes, maybe try breaking up the two byte transfer into 1 byte transfers? Then that should gaurantee that CS changes back to 1 (deselecting device) after the first byte is sent.

If you are currently sending two bytes in one transfer, I think my suggestion will solve the problem. If I understand correctly.

Or you can indicate

SPI_IOC_MESSAGE(2)

to specify two transfers, which means CS will change after transfer 1, then reselect the device at the beginning of transfer 2.

regards

1 Like