Device Tree and GPIO controll

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

Device Tree and GPIO controll

1,095 次查看
btarnowski
Contributor III

Hi all. I can not get work gpio.

In my case this is not working, I do not see any change on the physical GPIO pin

echo 47 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio47/direction

echo 1 > /sys/class/gpio/gpio47/value

 

Some additional details below. What can be wrong?

btarnowski_1-1658315003590.png

 

btarnowski_0-1658313461842.png

 

标签 (1)
0 项奖励
回复
2 回复数

1,089 次查看
J_W
Contributor III

The pictures are a bit of a mess to follow. Try reading this application note and see if it helps:

 

https://www.nxp.com/docs/en/application-note/AN5078.pdf

0 项奖励
回复

1,080 次查看
btarnowski
Contributor III

Thanks for the Link.
I found problem, The Controll Mux register for specific pins had incorrect values.
The pins was set for peripheral purpose instead of gpio purpose (MUX_MODE)

0 项奖励
回复