Imx6 SPI shell commands

Hi,

For a quick verification test of my hardware, I want to send data over spidev0.0. For this test I don’t really want to write code because that isn’t a quick verification. The method that I am currently use is thru the terminal/shell of Linux itself. I am able to send data out of spidev0.0 with the following:

echo -ne “\x01\x02\x03” > /dev/spidev0.0

This works because I am able to see the data with my oscilloscope. However the clock is around 24 MHz and I want to lower the frequency. Therefore my question is: Is it also possible to adjust the SPI clock speed thru the terminal/shell command?

I googled a bunch but couldn’t find a solution that worked for me. Any help is welcome ofcourse.

Kind regards,
Remco

Hello Remco

We do not know about a solution using Shell command for modifying SPI clock speed. How ever there are other solutions and the fastest one is to cross compile the attached code and run it on the module.
link text

Best regards, Jaski