Issue in reading more than 28 bytes using spidev for iMX7D

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issue in reading more than 28 bytes using spidev for iMX7D

699件の閲覧回数
anoop2
Contributor II

Hello

I'm using iMX7D based board and trying to interface a device over SPI using a custom data exchange protocol. On the Host side, I'm using spidev to implement SPI Master functionality. I created a SPI node for ECSPI3 in DTB file and verified that /dev/spidevX.0 is created on Host. I'm using https://github.com/azorg/spi as a reference to create Host side code.

The communication with SPI slave device is configured to use SPI_MODE_1 at 10Mhz clock frequency. I can read and write up to 28 bytes without any issue. But when I try to use data transfer larger than 28 bytes, it fails (It actually transfers just 1 or 2 bytes).

To further isolate the issue, I've tested the same SPI slave device with the same Host side code running on a Raspberry Pi. With Raspberry Pi, I'm able to read and write more than 28 bytes without any issue.

So this seems an issue with the way SPI Master device is configured on iMX7. Could you please help me to solve or further debug this issue.

Thanks

0 件の賞賛
1 返信

687件の閲覧回数
anoop2
Contributor II

It was an issue related to configuration in DTB file. The issue is solved now.

 

タグ(1)