IMX6 - SPI read more than 64 bytes form device

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

IMX6 - SPI read more than 64 bytes form device

1,041件の閲覧回数
ronypatel
Contributor I

Hi,

we are using IMX6 SOM with Debian  Linux version  3.10.101-imx6,

where SPI device (ATMEL AT86RF233) is connected to.

We have encountered a problem while reading from the device more than 64 bytes via SPI.

Reading data of less or equals 64 bytes works fine.

The SPI reading process is as follows:

  1. Interrupt function is invoked from SPI device via dedicated GPIO line.
  2. The interrupt function performs asynchronous SPI read in the following order:

     - prepare spi_message and spi_transfer structures and fill them with relevant data: spi_device , data tx, transfer       len , complete handler , …

    3.     The read itself  is done by calling spi_async function

    4.     The completion handler function is called and prints the read message, but trying to read more than 64             bytes in one SPI transaction causes the read data to be corrupted.

Do you have any idea for this behavior ?

Is there any limitations for

Is there (in Linux) any definition for the max size to be read via the SPI ?

Thanks

Rony Patel

SCR Dairy

0 件の賞賛
返信
0 返答(返信)