Skip to main content
Associate
March 2, 2024
Solved

Is it possible to use the CAN bus protocol on an STM32 without using a module?

  • March 2, 2024
  • 1 reply
  • 3090 views

"Hi, I'm working on an EV project. We're attempting to implement the CAN bus protocol on STM32. I'm wondering if there's a way to communicate between two STM32s using the CAN bus without using a module?"

Best answer by AScha.3

Hi,

what is the "module" here ?

If you mean a driver chip : yes, you need one on every cpu-> CAN bus; transforms rx/tx from cpu to CANH/CANL symmetrical/complement signal line..

Something like this :

AScha3_0-1709384287620.png

MCP2562  doing 3,3v cpu -> 5V standard CAN bus voltage level; and termination 120r on every end of line.

is about $ 1,50  on every cpu , and you work with real conditions, can connect to other CAN bus devices also.

1 reply

AScha.3
AScha.3Answer
Super User
March 2, 2024

Hi,

what is the "module" here ?

If you mean a driver chip : yes, you need one on every cpu-> CAN bus; transforms rx/tx from cpu to CANH/CANL symmetrical/complement signal line..

Something like this :

AScha3_0-1709384287620.png

MCP2562  doing 3,3v cpu -> 5V standard CAN bus voltage level; and termination 120r on every end of line.

is about $ 1,50  on every cpu , and you work with real conditions, can connect to other CAN bus devices also.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
March 2, 2024

The term 'module' referred to the transceiver, but as far as I understand, I need to purchase it to work on STM32. Thank you.

Tesla DeLorean
Guru
March 2, 2024

You need something to merge the signals. There's a low cost method with diodes and a resistor you can use to experiment at a board level.

https://www.keil.com/appnotes/files/apnt_236.pdf

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..