Device Tree and GPIO controll

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Device Tree and GPIO controll

984件の閲覧回数
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 返答(返信)

978件の閲覧回数
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 件の賞賛
返信

969件の閲覧回数
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 件の賞賛
返信