Jetson TX2 AON SPE GPIO-APP crash

你好,在调试GPIO功能时,使用了我们自定义的GPIO,结果在操作gpio_direction_out()函数时,发生了crash,请帮忙定位一下问题:

1、自定义GPIO是 B23 GPIO7_TOUCH_RST GPIO3_PS.03


2、已经参考( Jetson Sensor Processing Engine (SPE) Developer Guide: GPIO Application (app/gpio-app.c) (nvidia.com))修改相关配置、并重新烧写整个Flash镜像;

3、启动SPE时候发生了Crash问题(Linux侧已经屏蔽了此GPIO的使用,并且打印相关SCR寄存器修改成功):
对应日志:

对应代码:

相关register 手册:

Hello,
From your information, it looks that pinmux and SCR settings should be good.
For the error log, I noticed that DFAR is 0x00000000, which is not related to GPIO or pinmux.
Can you check your code and confirm the error is GPIO-related?
In addition, you can also dump the elf file and check the address PC pointed to locate the error point.

br
Chenjian

由于无法使用JTAG工具,增加 printf() 日志

addr2line dump:tegra186-gpio.c:82

AON_GPIO_0 寄存器起始地址

我搞错了,应该是配置 GPIO_S_SCR_03_0 这个寄存器,目前没有crash问题了

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.