Skip to main content
doantt53
Associate
June 25, 2016
Question

CAN bus on STM32F103

  • June 25, 2016
  • 3 replies
  • 1080 views
Posted on June 25, 2016 at 03:09

Hi everybody, 

These days I'm starting a project based on STM32F103VET6 for which I have to use the CAN bus pheripheral to transmit and receive messages.  I'd like some support to start my work.

- Can bus 29 bit identifier.

- Are there any valid code example ready (Can bus 29 bit identifier) to download?

-Could someone post me some configuration example?

Thanks in advance! 

#can-bus
This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
June 25, 2016
Posted on June 25, 2016 at 03:43

Review available documentation and examples, including multiple examples on the forum, for filtering, etc. The CAN peripheral is very similar across many STM32 family members.

STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\CAN\Networking

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
doantt53
doantt53Author
Associate
June 25, 2016
Posted on June 25, 2016 at 08:41

I want to connect the CAN SAE J1939 network (29bit, 250KB / s). I want a sample CAN 29 bit. STM32F10x_StdPeriph_Examples\CAN\ Networking is 29bit?

Help me. Thanks

Tesla DeLorean
Guru
June 25, 2016
Posted on June 25, 2016 at 15:58

The CAN peripheral can filter on the first 32-bits of the message, you will likely have to modify the examples to suit your specific needs. Start by understanding what you have, and then how you can get it to do what you need.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..