SPI interface between Apalis iMX8 and DAC81416

I’ve successfully built a tdx-reference-minimal-image on my Apalis iMX8 QuadMax 4GB WB IT v1.1E on Apalis Evaluation Board v1.1Z.

I have followed the steps from SPI (Linux) | Toradex Developer Center.

I can see /dev/apalis-spi1-cs0.
I tried spidev test from user space.

# spidev_test -D /dev/apalis-spi1-cs0
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)

Can I confirm that my SPI peripherals are up?
And what steps should I take now to start communicate (write/read) to DAC81416?

Hi, @abn12!

The best way to confirm if your SPI peripheral is up is by trying to communicate with it. You should be able to communicate with it if everything is right, but if you can’t communicate, you should investigate where the problem is (cable connection, error in the code, etc.).

To communicate with DAC81416, you will need to write a script that does it. You will probably need to use a library for SPI communication. Here you can find a post on TI’s community explaining how to use Arduino to communicate with DAC81416, and you could use it as a starting point for your script.

Best regards.
Lucas Azeituno