Other Parts Discussed in Thread: SYSCONFIG
Dear Champs,
My customer faced below error of 'unexpected IRQ trap at vector 00' when they test GPIO in Linux PSDK.
root@am57xx-evm:~# ./test/test_gpio_handler 2 3 12 1
[ 47.405628] irq 0, desc: f8e0f8ca, depth: 1, count: 0, unhandled: 0
[ 47.411940] ->handle_irq(): a6816596, handle_bad_irq+0x0/0x260
[ 47.417893] ->irq_data.chip(): d7b580e9, no_irq_chip+0x0/0x88
[ 47.423663] ->action(): (null)
[ 47.426903] IRQ_NOPROBE set
[ 47.429969] IRQ_NOREQUEST set
[ 47.433035] unexpected IRQ trap at vector 00
[test_gpio_handler.c] Set GPIO3_12 Value: Hi(1)
root@am57xx-evm:~# ./test/test_gpio_handler 2 3 12 0
[ 49.305504] irq 0, desc: f8e0f8ca, depth: 1, count: 0, unhandled: 0
[ 49.311809] ->handle_irq(): a6816596, handle_bad_irq+0x0/0x260
[ 49.317762] ->irq_data.chip(): d7b580e9, no_irq_chip+0x0/0x88
[ 49.323533] ->action(): (null)
[ 49.326773] IRQ_NOPROBE set
[ 49.329840] IRQ_NOREQUEST set
[ 49.332907] unexpected IRQ trap at vector 00
[test_gpio_handler.c] Set GPIO3_12 Value: Low(0) |
When they checked interrupt, they found there were 2 interrupts in IRQ 0, but there was no in IRQ 179 which assigned for GPIO.
|
Could you please guide me what should be checked to resolve this issue?
They modified device tree(am5729-beagleboneai.dts) as below.
&dra7_pmx_core { k_gpio_intr_pins: pinmux_k_gpio_intr_pins { pinctrl-single,pins = < DRA7XX_CORE_IOPAD(0x350c, PIN_INPUT | MUX_MODE14) /* vin1a_d6.gpio3_10 */ // AM5729 Datasheet(Pg.100): Multiplexing Characteristics / Address 0x150C DRA7XX_CORE_IOPAD(0x3514, PIN_OUTPUT | MUX_MODE14) /* vin1a_d8.gpio3_12 */ // AM5729 Datasheet(Pg.100): Multiplexing Characteristics / Address 0x1514 >; }; };
/ { k_gpio_intr { pinctrl-names = "default"; pinctrl-0 = <&k_gpio_intr_pins>; compatible = "k_gpio_intr"; status = "okay"; }; }; |
They are using BeagleBone AI board and their SW is Linux PSDK v6.03.
Please let me know what should be checked to resolve this error.
Thanks and Best Regards,
SI.
[test_gpio_handler.c] Set GPIO3_12 Value: Low(0)