Enable SPI Jetson AGX Orin for AD/DA board

Hello, Im trying to use the waveshare High-Precision AD/DA Board but im having issues figuring out how to configure the GPIO for SPI.

this is my system configuration:
L4T: 36.3.0
Jetpack: 6.0

Ive been trying to follow this link to perform the loop back test

here is what i get:

castej@castej-desktop:~$ sudo ./spidev_test -D /dev/spidev0.0 -v -p "HelloWorld123456789abcdef"
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 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 | 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
castej@castej-desktop:~$ sudo ./spidev_test -D /dev/spidev0.0 -s 10000000 -v
spi mode: 0x0
bits per word: 8
max speed: 10000000 Hz (10000 KHz)
TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D  | ......@....�..................�.
RX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D  | ......@....�..................�.
castej@castej-desktop:~$ 

but when i try to run the waveshare AD/DA board i get “ID READ FAILED” error, like this post.

Hi,
Here are some suggestions for the common issues:

1. Performance

Please run the below command before benchmarking deep learning use case:

$ sudo nvpmodel -m 0
$ sudo jetson_clocks

2. Installation

Installation guide of deep learning frameworks on Jetson:

3. Tutorial

Startup deep learning tutorial:

4. Report issue

If these suggestions don’t help and you want to report an issue to us, please attach the model, command/step, and the customized app (if any) with us to reproduce locally.

Thanks!

Hi castej10,

Are you using the devkit or custom board for AGX Orin?

It seems you’ve verified SPI loopback test working.
How do you port the AD/DA module?
Do you get and follow the porting guide shared from your vendor?

Please share the full dmesg for further check.

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