Associate II
December 6, 2022
Solved
CAN BUS INTERRUPTS - HAL_CAN_RxFifo0MsgPendingCallback never triggers / I never get the Rx Interrupt.
- December 6, 2022
- 1 reply
- 7370 views
Hello,
My setup is as follows: I have an STM32F469I MCU connected (via SN65HVD230 CAN Board) to the CAN bus of an STM32MP157c-EV1 MPU board which is running Debian.
My goal is to make the MCU send CAN frames periodically to the MPU, and with the CAN Utils on the MPU to receive and transmit to the MCU (candump and cansend).
With the code I am attaching, I am able to transmit from the MCU and receive (candump) in the MPU, but when I transmit (cansend) from MPU to MCU the Rx Interrupt never seems to trigger (I have enabled CAN RX0 and CAN RX1 interrupts in the .ioc, as well as activated notifications in the code).
Is something wrong with the code or is my logic flawed? Why does the interrupt never trigger?