PN7462 GPIO Interrupts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PN7462 GPIO Interrupts

1,363件の閲覧回数
turbo2ltr
Contributor I

I'm having a heck of a time getting the interrupt on change to work.  I got it to the point that the interrupt is triggering, but for whatever reason, it's not calling the callback.. Instead I find it in a while(1) loop because it says there was no handler defined for the interrupt.  But I can't seem to figure out how to tell what interrupt actually got called.

// enable interrupt
uint32_t dwPcrIRQMessage = (PCR_INT_STATUS_REG_GPIO7_PAD_HIGH_INT_STATUS_MASK | PCR_INT_STATUS_REG_GPIO_INT_STATUS_MASK ); // no idea if this is right
status = phhalPcr_RegCallBack(&phExDoorAccess_PcrCallBack,dwPcrIRQMessage);

Then for the callback:

static void phExDoorAccess_PcrCallBack(uint32_t dwIRQMessage)
{

// never gets here
return ;

}

 

My program ends up here when GPIO7 goes high:

void UnExpected_IRQHandler(void)
{
/* Since application enabled this IRQ without providing any handler
* for the same, halt here */
while ( 1 ) {
__WFI();
}
}

 

Any help would be awesome! Thanks.

ラベル(1)
0 件の賞賛
返信
1 返信

1,027件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Davide,

Are you using the NFC reader library? If yes, What is the version? Please help to clarify.

Thanks for your patience!

Have a great day!

Kan

0 件の賞賛
返信