Hello All,
I am trying to use spidev1.1 for communication with mcp3204 in Jetson nano. The clock signal is not high even after enabling the spi with the help of jetson-io. I used latest jetpack image. Please let me know if you have any solution for this issue.
Hi,
You may try to connect MOSI to MISO and run this:
How to set gpio for spi? - #27 by DaneLLL
Please set -s --speed max speed (Hz)
to your working speed and see if it works in the test.
Hello @DaneLLL ,
Thanks for you reply.
Please find below output of the command:
$ sudo ./spidev_test -D /dev/spidev1.1 -v -p “HelloWorld123456789abcdef” -s 50000
spi mode: 0x0
bits per word: 8
max speed: 50000 Hz (50 KHz)
TX | 48 65 6C 6C 6F 57 6F 72 6C 64 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66 __ __ __ __ __ __ __ | HelloWorld123456789abcdef
RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ | …
Please let me know if you need any more details.
Hi,
It works as expected. For next step, please set the properties for a try:
Extra clock transition when using SPIDEV with longer transactions - #4 by DaneLLL
The properties may need to be set/adjusted for the device.
And may check the driver code in
drivers/spi/spi-tegra114.c
To add debug prints and see if the setting is set correctly.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.