Skip to main content
Visitor II
December 5, 2024
Solved

Testing CAN Protocol on STM32L476G evaluation board

  • December 5, 2024
  • 1 reply
  • 554 views

Hi,
I’m using the STM32L76G evaluation board and would like to work with the CAN protocol. I have a DB9 connector but no slave devices. Could you suggest how I can test and work with CAN in this setup?

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

    Hello,

    You can simply use CAN in Loopback mode. You don't need for a second node to establish a CAN bus with transceivers:

    SofLit_0-1733392751420.png

    You can also probe Tx frames on CAN Tx pin.

    You can inspire from this example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/CAN/CAN_LoopBack

    Hope that answered your question.

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    December 5, 2024

    Hello,

    You can simply use CAN in Loopback mode. You don't need for a second node to establish a CAN bus with transceivers:

    SofLit_0-1733392751420.png

    You can also probe Tx frames on CAN Tx pin.

    You can inspire from this example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/CAN/CAN_LoopBack

    Hope that answered your question.