2022-05-05 11:26 AM
I declare that I am using a CAN library which works with other boards, so right now I’d like to rule out that’s the problem.
Therefore, despite having configured the CAN and the code compile correctly, the messages are not received while using STM32F469-disco.
I read that the CAN configuration may have some issues with this card due to the pins used by I2C.
I2C uses the PB8-PB9 PIN for the display, but the CAN1 should use it as a PIN for communication. However, replacing the I2C PIN with PB6-PB7 and the CAN1 PIN with PB8-PB9 means the display doesn't work, i think I2C does not work properly with these other pins.
I also tried to use CAN2, with pins PB5 and PB13, but that doesn't work anyway.
Is there really this problem of "coexistence" between I2C and CAN? Or is it an option that is not to be considered and the problem is elsewhere?