imx6ul evk - Arduino pin usage

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6ul evk - Arduino pin usage

跳至解决方案
1,975 次查看
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

标签 (2)
0 项奖励
1 解答
949 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
3 回复数
949 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
949 次查看
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 项奖励
950 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励