Skip to main content
Associate II
Dec 5, 2024 9:37 AM UTC
Solved

Testing CAN Protocol on STM32L476G evaluation board

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.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 5, 2024 9:55 AM UTC

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.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

1 reply

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 5, 2024 9:55 AM UTC

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.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.