在文件IO操作时报错:
echo 202 > /sys/class/gpio/export 报错 no such file or directory
我要操作的是gpio202,但在/sys/class/gpio/下并未发现gpio202,只有如下节点,请问是需要在内核设备树中添加相应的节点吗?如何添加?谢谢
![]()
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在文件IO操作时报错:
echo 202 > /sys/class/gpio/export 报错 no such file or directory
我要操作的是gpio202,但在/sys/class/gpio/下并未发现gpio202,只有如下节点,请问是需要在内核设备树中添加相应的节点吗?如何添加?谢谢
![]()
请贴出您的SDK版本。
设备树中添加节点请参考以下链接:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/729711/linux-am5728-gpio-configuration