I’m using a STM32407VET6 receiving data with UART+DMA+idleline using callbacks. Recently I added a software timer to check if UART communication it’s OK, if not, after 1[s] stops UART+DMA and resume it. But my code has a HardFault(FORCED+PRECISERR) executing HAL_TIM_IRQHandler() when it checks if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET).
I found that when the TIM1 is OK all its variables looks defined, but when it the code crashes, some variables/etc are unknow or change. Like the state in 48 or unknow lock state
I’m not using any other TIM nor making changes in TIM1. It looks like I’m trying to access to a wrong memory address or changing something in TIM1, but I’m not.