SPI on Jetpack 4.6.3

Hello,
SPI doesn’t work on Jetson Nano 4GB dev board with Jetpack 4.6.3

steps to repeat:

  1. install Jackpack 4.6.3 via SDKmanager
  2. enable SPI via /opt/nvidia/jetson-io/jetson-io.py
  3. reboot
  4. modprobe spidev
  5. sudo ./spidev_test -D /dev/spidev0.0 -g32 -s 11000000 -p0 -zzz
    return (TEST FAILED ):
using device: /dev/spidev0.0
setting spi mode for read,write
setting spi bpw
setting max speed for rd/wr
spi mode: 0
bits per word: 8 bytes per word: 1
max speed: 11000000 Hz (11000 KHz)
no. runs: 1
Using seed:0x63af960a
loop count = 0 
using sequential pattern ....
transfer bytes [32]
0000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 
0010: 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
transfer: Return actual transfer length: 32
receive bytes [32]
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
mismatch index 1 
^^^ 00 00 00 00 00 00 00 00 00 00 00 transfer: received packet size:32 len:32 stat:-6
/dev/spidev0.0: TEST FAILED !!!!! (status:-1)
====== Transfer stats ====
Transmit:
       total: 32B (0KiB 0MiB)
       total: 1P 
       ioerr: 0B (0KiB 0MiB)
       ioerr: 0P
 Rate:
  wire total: -1B/s (0KB/s)
       total: -1B/s (0KB/s)
  wire total: -1P/s
       total: -1P/s
Receive:
       total: 32B (0KiB 0MiB)
       total: 1P 
        good: 0B (0KiB 0MiB)
        good: 0P
       ioerr: 0P
     dataerr: 1P
 Rate:
        good: -1B/s (0KB/s)
        good: -1P/s
 packet drop: -1/10000

  Total time: 0.000492s

The same steps, but Jackpack 4.6.2 (and 4.6.1) works fine, return (TEST PASSED):

using device: /dev/spidev0.0
setting spi mode for read,write
setting spi bpw
setting max speed for rd/wr
spi mode: 0
bits per word: 8 bytes per word: 1
max speed: 11000000 Hz (11000 KHz)
no. runs: 1
Using seed:0x63af85ea
loop count = 0 
using sequential pattern ....
transfer bytes [32]
0000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 
0010: 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
transfer: Return actual transfer length: 32
receive bytes [32]
0000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 
0010: 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 
transfer: received packet size:32 len:32 stat:0
/dev/spidev0.0: TEST PASSED 
====== Transfer stats ====
Transmit:
       total: 32B (0KiB 0MiB)
       total: 1P 
       ioerr: 0B (0KiB 0MiB)
       ioerr: 0P
 Rate:
  wire total: -1B/s (0KB/s)
       total: -1B/s (0KB/s)
  wire total: -1P/s
       total: -1P/s
Receive:
       total: 32B (0KiB 0MiB)
       total: 1P 
        good: 32B (0KiB 0MiB)
        good: 1P
       ioerr: 0P
     dataerr: 0P
 Rate:
        good: -1B/s (0KB/s)
        good: -1P/s
 packet drop: -1/10000

  Total time: 0.000720s

Please check the configuration by below command.

sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i spi
sudo cat /sys/kernel/debug/tegra_gpio

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.