你好,我有一塊Nvidia orin nano 4G,我有一個指撥開關連接 PZ.07、PY.04、PH.07、PI.02、PI.01、PI.00 6個GPIO。我修改Pinmux並由QSPI燒錄依然沒有開關變化。
請問我修改Pinmux的方式是否正確?
1.我過Pinmux_Config_Template.xlsm
產生3個檔案,但只有修改下面檔案,藉由QSPI燒入。
tegra234-mb1-bct-pinmux-p3767-dp-a03.txt (65.8 KB)
2.由下方指令燒錄
sudo ./flash.sh -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit internal
3.撥動指撥開關,由下方指令確認GPIO狀態
sudo cat /sys/kernel/debug/gpio
GPIO都沒有改變,下圖為其中一根PZ.07狀態
hello liyongru1998,
may I confirm the Jetpack release version you’re working with.
according to the file path, it is JP-5.x release version, right?
besides, please see-also Topic 301630 for the steps to apply pinmux configuration.
我的作法是
pinmux產生的pinmux.dtsi有更改的地方直接在jetson-orin-nano-devkit.conf內指定的檔案修改
pinmux產生的gpio.dtsi跟內部的比對沒有改變
執行燒錄指令
sudo ./flash.sh -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit internal
我看燒錄指令與p3701.conf.common並無關聯,是要用其他燒入指令嗎?
hello liyongru1998,
please give it another try to alter the pin via sysnode,
for instance,
$ echo 485 > /sys/class/gpio/export
$ cd /sys/class/gpio/PZ.07
$ echo out > direction
$ cat value # change value and check.
我將echo out > direction out 改成 in
我嘗試切換開關數值依舊為0,GPIO那端電壓為1V
下圖是指撥開關電路
Did you measure the real voltage level at the SPI0_CS1_LS side when switch to high/low?
Trumany
December 5, 2024, 6:31am
11
liyongru1998:
打開1.05V
It is not a valid high level for 3.3V pull-up. You can try a 2k pull-up instead.
Trumany
December 5, 2024, 6:36am
13
No, hardware rework is must.
Trumany
December 5, 2024, 7:40am
15
What’s the voltage level now?
hello liyongru1998,
may I know your latest test results after revise voltage level?
硬體量測到的電壓,打開開關3.4V,關閉開關0V。
sysnode 檢測,打開跟關閉都為hi
hello liyongru1998,
did you also configure the initial state as pull-down?
you should set a pull-down on the GPIO input.
Trumany
December 6, 2024, 3:17am
23
“io-high-voltage” should be enabled since it is 3.3v pull-up.
How do you pull pin to ground? I don’t see pull-down in your schematic.
我啟用io-high-Voltage,但是只有第一次讀到lo,之後切換開關都讀到hi
Trumany:
如何將引腳接地?我在你的示意圖中沒有看到下拉。
內部設定下拉,由外部切換hi,這樣需要引腳接地嗎?
請問nvidia,tristate
可以關閉嗎?Pinmux可以設定嗎?