Skip to main content
Visitor II
January 29, 2024
Question

F767 CAN Bus issue

  • January 29, 2024
  • 2 replies
  • 785 views

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.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 29, 2024

    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?

    Graduate II
    January 29, 2024

    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