2024-01-29 07:50 AM
Hi,
I have an issue with the CAN1 controller in my MCU. I have connected the CAN transceiver to PA12(TX) and PA11(RX). When connected to the CAN Bus I can see the frames coming to the MCU(RX line) and the ACK bits are visible on the TX line. Unfortunately attempting to send any frame fails without any error in any of the registers.
After changing the TX Pin to PD1 everything runs smoothly. I did not apply any other changes in the parameters of the CAN controller in the CubeMX - just the pin change.
Any ideas for such behaviour?
Thanks.
2024-01-29 07:56 AM - edited 2024-01-29 07:57 AM
Hello,
Could you check on your HW what is connected on PA12 apart of the transceiver?
If nothing is connected apart of the transceiver, if you try to toggle PA12 pin, is it working as expected?
2024-01-29 09:26 AM
Assume people know next to nothing about your board, or implementation.
Is this a custom board? Provide schematic and code initializing CAN and GPIO's