2011-01-21 06:46 AM
EXTI_RTSR for ExtiLine_17 sometimes loose its configuration
2011-05-17 05:22 AM
I found a very strange behaviour that lead to the EXTI problem:
I had the following routinevoid EXTI15_10_IRQHandler(void)
{ EXTI_InitTypeDef EXTI_InitStructure;if(EXTI_GetITStatus(EXTI_Line11) != RESET)
{ EXTI_InitStructure.EXTI_Line = EXTI_Line11; EXTI_InitStructure.EXTI_LineCmd = DISABLE; EXTI_Init(&EXTI_InitStructure); /* Clear the EXTI Line 11 */ EXTI_ClearITPendingBit(EXTI_Line11); } } with this code, sometimes the interrupts on LINE11 disabled also line 17 (alarm). If I change it tovoid EXTI15_10_IRQHandler(void)
{ EXTI_InitTypeDef EXTI_InitStructure;if(EXTI_GetITStatus(EXTI_Line11) != RESET)
{ // dispositivo sveglio, disabilito su rx di gsm EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt; EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising; EXTI_InitStructure.EXTI_Line = EXTI_Line11; EXTI_InitStructure.EXTI_LineCmd = DISABLE; EXTI_Init(&EXTI_InitStructure); /* Clear the EXTI Line 11 */ EXTI_ClearITPendingBit(EXTI_Line11); } } then the problem disappears! Is that a reason for it?