CAN2 in STM32F407 is not working
I wanted to us CAN2 interface in my project. I started with example application ("CAN_Networking"). This example application works very well with CAN1 but when CAN2 is configured in this application it doesn't work at all. No transmission and no reception.
I searched online for similar problem and I got many issues related to same. But I tried all the solution and nothing worked. Sharing links below
https://stackoverflow.com/questions/36311263/stm32f1xx-can2-receive-interrupt-not-being-called
https://stackoverflow.com/questions/65290032/using-both-can1-can2-both-in-stm32f446-properly
https://stackoverflow.com/questions/27315649/stm32f429-is-not-receiving-the-can-message
I am sure it has something to do with filter setting and driver being provided by STM team. But it seems they didn't test their example programs with CAN2.
- Why these application doesn't enable CAN1 clock by default whereas it is compulsory to enable CAN1 clock even if you are using only CAN2.
- Why their driver initializes register with CAN1 address in HAL_CAN_ConfigFilter().
- There is not interrupt at all from CAN even if I could see signal on Rx pin and Tx pin.
Please help me if anybody have solution of this problem.
