iMX6 Dual/Solo SPI output to MISO

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

iMX6 Dual/Solo SPI output to MISO

603 Views
maschoen
Contributor I

I'm new to the iMX6.   I'm helping to get a board supported for the QNX OS.   The board is a Dual/Solo.   I have a lot of code already from another version.   The board itself is a Wandboard which is plugged into a custom board that the customer provided.   There is already a driver for the SPI which I've looked over.   When I send data over the SPI I see the data go out over the MISO (Master In Slave Out), even though I'm in master mode using a logic analyzer.    I'm wondering if there can be any explanation other than a wiring error?

0 Kudos
2 Replies

442 Views
maschoen
Contributor I

Thank you Igor.     A few hours ago, by trial and error I discovered that the problem was the CPOL setting.    Which means that the MISO/MOSI lines that I was taping into must be mis-named on the schematics.

0 Kudos

442 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mitchell

this may be caused by iomux naming confusion and one can refer to

Chapter 4 External Signals and Pin Multiplexing i.MX6SDL Reference Manual

http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6SDLRM.pdf

for baremetal examples one can look at SDK
https://github.com/backenklee/swp-report/tree/master/iMX6_Platform_SDK
description in
https://github.com/backenklee/swp-report/blob/master/iMX6_Platform_SDK/doc/iMX6_Firmware_Guide.pdf

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

0 Kudos