imx6ul evk - Arduino pin usage

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ul evk - Arduino pin usage

Jump to solution
1,455 Views
giulianofranche
Contributor II


Hi,

I'm having some trouble using the digital gpios of the arduino header. I'm using the "imx6ul-14x14-evk-btwifi" device tree, but I can't set nor read any gpio.

I've found in the "i.MX 6UltraLite EVK Board Hardware User’s Guide"  that array:

Screenshot from 2016-03-08 15_22_25.png

I assumed that, for example, if I want to set the pin D7 high, I'll have to work with the gpio 32*3 + 7 = 103 in Linux. I got no error when I export the pin, write its direction etc... but nothing is happening.

Must I change something in the device tree? I must say I'm not really used to work with these beasts.

Regards

Labels (2)
0 Kudos
1 Solution
429 Views
igorpadykov
NXP TechSupport
NXP TechSupport

one can look at EVK schematic SPF-28616_C.pdf  p.12

Schematics (1)

MCIMX6UL-EVK_DESIGNFILES

Design files, including hardware schematics, Gerbers, and OrCAD files. (REV 0)

http://www.nxp.com/products/sensors/gyroscopes/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?fpsp=1&tab...

~igor

View solution in original post

0 Kudos
3 Replies
429 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi giuliano

on EVK this line D7 is disconnected (R1731 is DNP) from processor

pad SD1_DATA1. SD1_DATA1 is GPIO2_IO19 according to p.183

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

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf

GPIO example with linux is provided on:

Any examples on how to modify the .dts (device tree) source for custom hardware?

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
429 Views
giulianofranche
Contributor II

Thank you for your answer Igor.

I think there is something I still don't understand. How did you link the D7 pin in the hardware user guide, the R1731, and SD1_DATA1?

I must be blind ...

Thanks for your patience

0 Kudos
430 Views
igorpadykov
NXP TechSupport
NXP TechSupport

one can look at EVK schematic SPF-28616_C.pdf  p.12

Schematics (1)

MCIMX6UL-EVK_DESIGNFILES

Design files, including hardware schematics, Gerbers, and OrCAD files. (REV 0)

http://www.nxp.com/products/sensors/gyroscopes/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?fpsp=1&tab...

~igor

0 Kudos