Skip to main content
Visitor II
April 24, 2024
Solved

STM32F103C8T6 CAN communication using MCP2551 module

  • April 24, 2024
  • 1 reply
  • 1880 views

I am working in STM32F103C8T6, in that PA11/PA12- CAN RX/CAN TX pin connected with MCP2551's CTX and RTX.  using DB 9 connector i cannot able to see the CAN data using ST-LINK V2. Kindly help me

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    You didn't mention if you have connected another node on the bus that will acknowledge STM32F103 frames. If not, and in Normal mode you can't neither transmit nor receive messages. CAN is not an SPI nor an UART to use it in stand alone except in Loopback mode.

    MCP2551 transceiver needs to be supplied by 5V and tie Rs pin to the ground or at least over a resistor (refer to its datasheet)

    Hope it helps.

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    July 5, 2024

    Hello,

    You didn't mention if you have connected another node on the bus that will acknowledge STM32F103 frames. If not, and in Normal mode you can't neither transmit nor receive messages. CAN is not an SPI nor an UART to use it in stand alone except in Loopback mode.

    MCP2551 transceiver needs to be supplied by 5V and tie Rs pin to the ground or at least over a resistor (refer to its datasheet)

    Hope it helps.