SPI issue on IMX8M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI issue on IMX8M

91 Views
Mehtabazam
Contributor I

I’m facing a problem with SPI communication on an IMX8M. When running the spidev_test command, it doesn’t receive any data (RX). The SPI mode, bits per word, and speed are configured correctly. Here is the output:
root@imx8mminvsom:~# spidev_test -D /dev/spidev1.0 -v
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 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 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |…|

Even when nothing is connected on ixm8m it receives RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF.


Tags (2)
0 Kudos
Reply
1 Reply

45 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Mehtabazam 

Can't reproduce same issue on EVK.

spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 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 | 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 00 00 00 00 00 00 00  |................................|

 

0 Kudos
Reply