GPIO value doesn't change

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

GPIO value doesn't change

ソリューションへジャンプ
1,396件の閲覧回数
mathew_k_t
Contributor II

Hi,

I was configuring some of the I2C pins(Sound and camera) in the header as GPIO (GPIO1_IO30 and GPIO1_IO31), i.e: GPIO30 and GPIO31 in console. So I disabled sound and camera, reconfigured pins as GPIO.

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x000010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x000010B0

But the value doesn't get changed. What's the error in it? Or these pins have any other control other than device tree.GPIO issue.png

0 件の賞賛
返信
1 解決策
1,186件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

 you can add the 0x40000000 to set the SION to try.              

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x400010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x400010B0

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,187件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

 you can add the 0x40000000 to set the SION to try.              

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x400010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x400010B0

0 件の賞賛
返信
1,186件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Mathew,

Once pins are configured as GPIO, you could also use them with /sys/class/gpio/

You could take a look at the following document:

https://community.nxp.com/docs/DOC-329735

Hope this will be useful for you.

Best regards!

/Carlos

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

0 件の賞賛
返信
1,186件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

If you read the reference manual carefully, you should know about SION bit.

Please set it and check again.

please refer to the following link and search SION.


Simple GPIO Example - quandry
https://community.nxp.com/message/598834#598834

0 件の賞賛
返信