zeam-vm / nerves_system_zybo_z7_10

The base Nerves System configuration for the Zybo Z7-10.
Apache License 2.0
4 stars 1 forks source link

PS側 GPIO955(MIO50), GPIO956(MIO51) の入力がとれない #23

Closed pojiro closed 7 months ago

pojiro commented 7 months ago

現象

iex(23)> {:ok, btn4} = Circuits.GPIO.open(955, :input)
{:ok, #Reference<0.1046553190.2404777998.10940>}
iex(24)> Circuits.GPIO.read(btn4)
1
iex(25)> {:ok, btn5} = Circuits.GPIO.open(956, :input)
{:ok, #Reference<0.1046553190.2404777998.10941>}
iex(26)> Circuits.GPIO.read(btn5)
1

GPIO ピン番号は以下で算出

955 = gpiochip905 + MIO50
956 = gpiochip905 + MIO51

推定原因

プルアップされているためと思う

image

pojiro commented 7 months ago

Pullup を disabled にした bitstream, fsbl を使うことによってボタン押下を取れるようになった

image