2024-12-19 07:09 AM - edited 2024-12-19 07:21 AM
Hello,
I am using STM32G491 FDCAN modules 1 and 2 in bare metal. While everything works perfectly on CAN2 the interrupt on CAN1 is constantly disabled. And I do not mean the flags but the actual interrupt does not fire. Each time the interrupt for CAN2 fires, the interrupt from CAN1 is disabled. When I read out the register NVIC->ISER[0] after initialization then I can see bits 6 (EXTI0) and 21 (FDCAN1_IT0) are set. Once FDCAN2 interrupt fires these two bits are reset to 0. I need to enable them again in the ISR of CAN2. How can this happen? How can the interrupt simply be disabled by a different interrupt?
2024-12-19 07:26 AM
Found the problem. Was unrelated to the interrupt. Why is not possible to delete useless posts?
2024-12-19 07:31 AM
Perhaps, put the solution and accept it as solution.