the software stuck in the ISR of interrupt GPIO and it couldn't come out
this is the configuration that I did
/* Setup the PTB11 interrupt for rising edge */
PINS_DRV_SetPinIntSel(PORTB, BSP_INT_PIN_MICRO_R_MC, PORT_INT_RISING_EDGE);
/* Install the pin interrupt ISR */
INT_SYS_InstallHandler(PORTB_IRQn,&I2C_INT_Right_Handler,(isr_t *) 0);
/* Enable Interrupt Pins IRQ */
INT_SYS_EnableIRQ(PORTB_IRQn);
and the ISR :
void I2C_INT_Right_Handler(void)
{
BSP_vidTogglePin(BSP_GREEN_LED);
PINS_DRV_ClearPinIntFlagCmd(PORTB,BSP_INT_PIN_MICRO_R_MC);
}
I am using FreeRTOS but I couldn't solve this problem
can anyone help me to fix this issue please?
regards
Solved! Go to Solution.
Hi @RehabSoliman,
Can you read the ISF flag in the PORT_PCR register or the PTB11 pin?
Does the flag get cleared in the ISR?
Thanks,
BR, Daniel
thanks for your response that it was the problem
Hi @RehabSoliman,
Can you read the ISF flag in the PORT_PCR register or the PTB11 pin?
Does the flag get cleared in the ISR?
Thanks,
BR, Daniel