August 22, 2018, 8:46am
while my first tests with SPI I wondered about a strange Clock Signal:
Yellow is SSP_FRM, Blue is SSP_SCLK.
It looks like some kind of packaging in the transmission.
When zooming in to bit-level I saw a small break of approximately one bit every 11 bit:
I tried hard to reproduce this behavior, but I’ve never seen it again.
Has anyone seen something like this before?
Any Idea what may be the cause and how to reprocuce it?
It is not clear which SPI settings you have tried, but it looks like the data is sent with a clock frequency of around 80kHz and 11bits per word.
August 24, 2018, 11:28am
I have no idea which settings I used for that and I’ve never seen it again.
spidev_test to try several settings including your suggested:
while true; do ./spidev_test -D /dev/spidev0.0 -s 80000 -b11 -S 256 -I 1; done
but the signal is always nice and regular.
You are welcome. Let us know once you can reproduce the signal.
Hi, Thanks for the feedback.
Have a nice day too.
October 18, 2018, 8:35am
I accidentely managed to the reproduce this issue.
While trying to improve the latency of the spi driver I experimented with several versions of the kernel module, unloading one and loading the other.
After changing the module I saw a similar clock-signal as above.
It seems that loading of the new module does not properly resetting the hardware, confusing some timing.
Have a nice day,