How to clear FDCAN error callback?
Hello,
I would like to use the error callback of the FDCAN module on the STM32H743ZI and so far I got it working. Once an error (e.g protocol error) occured the callback keeps getting called. According to the reference manual an interrupt flag can be cleared by either reseting the module or writing a 1 to the particular bit in the FDCAN_IR register.
I tried using the functions __HAL_FDCAN_CLEAR_IT and/or __HAL_FDCAN_CLEAR_FLAG but it didn't work. Even by directly setting the bits didn't stop calling the handler.
So, I would be very thankful for an advice how to properly handle this interrupt.