SPI issue on IMX8M

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI issue on IMX8M

297 次查看
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.


标记 (2)
0 项奖励
回复
1 回复

251 次查看
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 项奖励
回复