The SPI protocol doesn't provide any confirmation that there is a device at other end - you need to look at the returned data to see if it makes sense. Enabling kernel tracing for SPI traffic may teach us something about the problem:After running the test, retrieve the tracing:To clear the tracing before the next test:
Code:
$ echo 1 | sudo tee /sys/kernel/debug/tracing/events/spi/enable
Code:
$ sudo cat /sys/kernel/debug/tracing/trace
Code:
$ echo -n | sudo tee /sys/kernel/debug/tracing/trace
Statistics: Posted by PhilE — Mon Nov 11, 2024 10:38 am