AnsweredAssumed Answered

i.MX6 SPI LSB MODE

Question asked by 浩卢 on Mar 22, 2016
Latest reply on Mar 23, 2016 by 浩卢

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?

Outcomes