AnsweredAssumed Answered

How to use SPIDEV driver on iMX6UL EVK

Question asked by Arnaud Nelissen on Jul 18, 2016
Latest reply on Jul 21, 2016 by Neil Foss

Hi everyone,

 

My setup is the following :

  • iMX6UL-EVK
  • Yocto Project 2.1.1 Krogoth based distribution
  • Ubuntu 16.04 development computer
  • Saleae Logic Analyzer

 

I would like to be able to use spidev driver to communicate with some sensors from a user-space application.

I managed to get the /dev/spidev3.0 showing up (thanks to answer on this topic), but I can't write anything on the bus.

I am using the following command :

echo hello > /dev/spidev3.0

 

I then verified with my logic analyzer (on Arduino header J1704), nothing happens...

 

I also tested with spidev_test.c, and even by shorting MISO and MOSI pins I do not get the desired output :

spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
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  | ............................

 

Can anyone help me ?

 

Thank you in advance.

 

 

Arnaud

Outcomes