Part Number:AM5708
irq 98, desc: ef278f00, depth: 1, count: 0, unhandled: 0
[ 3039.037083] ->handle_irq(): c0280d1c, [ 3039.040758] handle_bad_irq+0x0/0x280
[ 3039.044346] ->irq_data.chip(): ef22e3d0, [ 3039.048194] 0xef22e3d0
[ 3039.050561] ->action(): (null)
[ 3039.053800] IRQ_NOPROBE set
[ 3039.056863] unexpected IRQ trap at vector 62
[ 3039.061151] irq 98, desc: ef278f00, depth: 1, count: 0, unhandled: 0
[ 3039.067527] ->handle_irq(): c0280d1c, [ 3039.071203] handle_bad_irq+0x0/0x280
[ 3039.074791] ->irq_data.chip(): ef22e3d0, [ 3039.078640] 0xef22e3d0
[ 3039.081009] ->action(): (null)
[ 3039.084247] IRQ_NOPROBE set
[ 3039.087310] unexpected IRQ trap at vector 62
[ 3039.091597] irq 98, desc: ef278f00, depth: 1, count: 0, unhandled: 0
[ 3039.097974] ->handle_irq(): c0280d1c, [ 3039.101649] handle_bad_irq+0x0/0x280
[ 3039.105238] ->irq_data.chip(): ef22e3d0, [ 3039.109086] 0xef22e3d0
[ 3039.111453] ->action(): (null)
[ 3039.114690] IRQ_NOPROBE set
[ 3039.117753] unexpected IRQ trap at vector 62
每次触发中断,都有这样的信息,这是什么原因,
是中断号设置的不对,还是什么
CSL_xbarDspIrqConfigure(CSL_XBAR_IRQ_CPU_ID_DSP1, CSL_XBAR_INST_DSP1_IRQ_56, CSL_XBAR_GPIO2_IRQ_1);Hwi_Params hwiParams; //传入参数Hwi_Handle myHwi;//句柄Error_Block eb;//错误块Error_init(&eb);//错误块初始化,注意必须初始化,否则易进入System_abortHwi_Params_init(&hwiParams);//初始化传入参数//hwiParams.arg = NULL;hwiParams.enableInt = FALSE;hwiParams.eventId = 56;myHwi = Hwi_create(4, AppGpioCallbackFxn, &hwiParams, &eb);if (myHwi == NULL){Log_print0(Diags_INFO, "--> user_debug_gpio_input_function: Hwi_create error!");}else{Hwi_enableInterrupt(4);}
Nancy Wang:
我在英文论坛看到一个帖子跟您的报错类似,先参考看一下能否解决问题。
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/787770/rtos-am5728-gpio-interrupt
,
user3688025:
上面这个帖子,应该是同一个引脚在linux上使用与DSP上同时使用了,而我这个是确定在Linux上没有使用的。
我把整个工程重新编译一下,板子去电重新启动一下,现在是没有上面的输出错误了
但是无法进到Hwi_create时把指定的callback函数中。
,
Nancy Wang:
转至以下帖子中讨论。
https://e2echina.ti.com/support/processors/f/processors-forum/209228/am5708-myexampleprojects-gpio-gpiotriggerpinint