i.MX6 SPI LSB MODE

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

i.MX6 SPI LSB MODE

1,607 Views
浩卢
Contributor III

hi

root@imx6-luhao:~# ./spidev_flash_tt -D /dev/spidev0.1 -s 1000000 -L

spidev spi0.1: setup: unsupported mode bits 8

can't set spi mode: Invalid argument

Aborted

root@imx6-luhao:~# ./spidev_flash_tt -D /dev/spidev0.1 -s 1000000 --help

./spidev_flash_tt: unrecognized option '--help'

Usage: ./spidev_flash_tt [-DsbdlHOLC3]

  -D --device   device to use (default /dev/spidev1.1)

  -s --speed    max speed (Hz)

  -d --delay    delay (usec)

  -b --bpw      bits per word

  -l --loop     loopback

  -H --cpha     clock phase

  -O --cpol     clock polarity

  -L --lsb      least significant bit first

  -C --cs-high  chip select active high

  -3 --3wire    SI/SO signals shared

root@imx6-luhao:~# ./spidev_flash_tt -D /dev/spidev0.1 -s 1000000      

spi mode: 0

bits per word: 8

max speed: 1000000 Hz (1000 KHz)

85

85

85

85

Does I.mx6 not support  SPI LSB mode?

Labels (2)
0 Kudos
2 Replies

961 Views
Yuri
NXP Employee
NXP Employee

Hello,

  The i.MX6 eCSPI module does not allow to reverse bit order.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

961 Views
浩卢
Contributor III

OK. Tks.Yuri.

0 Kudos