Skip to main content
Siemens
Associate
January 21, 2025
Solved

Documentation on CAN bus

  • January 21, 2025
  • 4 replies
  • 1337 views

Can anyone give a hint on where to look for proper documentation on CAN bus development? I see some primitive examples online, though there are a lot of moments that are not explained as they should
For example, CAN filtering and identificator masking are not reflected anywhere (as far as I look). Am I missing something?
The CAN standard specification is there, of course. Should it be fullfilling in regard of development for STM?

Sorry if I'm breaking local ethics of asking a question

Thank you

Best answer by mƎALLEm

If your question is generic, the CAN/FDCAN embedded on STM32 products follow the CAN standard.

If your question is specific need to ask a specific question. Which CAN interface? bxCAN or FDCAN?

Need to read the CAN/FDCAN section in the respective product reference manual.

+ for FDCAN: AN5348 "Introduction to FDCAN peripherals for STM32 MCUs"

Articles:

1- STM32 in dual CAN configuration: bxCAN Filter bank explanation and relation with CAN2 Start Bank parameter

2 - CAN reception issues: Reasons and general troubleshooting

3 - STM32 FDCAN running at 8 Mb/s on NUCLEO boards

4 - Troubleshooting bxCAN issues in Loop Back mode on STM32 MCUs

5 - FAQ: Fixing STM32 FDCAN communication disruptions - APB bus, kernel, and time quanta clocks

6 - How to use FDCAN to create a simple communication with a basic filter

 

4 replies

Andrew Neil
Super User
January 21, 2025

Are you talking about CAN in general, or the specific details of the CAN operation within your particular (unnamed) STM32 chip?

Have you looked on the Product Page for your chip for Application Notes on CAN?

Have you looked for CAN examples in the Cube Firmware Pack for your chip?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Javier1
Principal
January 21, 2025
hit me up in https://www.linkedin.com/in/javiermuñoz/
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
January 21, 2025

If your question is generic, the CAN/FDCAN embedded on STM32 products follow the CAN standard.

If your question is specific need to ask a specific question. Which CAN interface? bxCAN or FDCAN?

Need to read the CAN/FDCAN section in the respective product reference manual.

+ for FDCAN: AN5348 "Introduction to FDCAN peripherals for STM32 MCUs"

Articles:

1- STM32 in dual CAN configuration: bxCAN Filter bank explanation and relation with CAN2 Start Bank parameter

2 - CAN reception issues: Reasons and general troubleshooting

3 - STM32 FDCAN running at 8 Mb/s on NUCLEO boards

4 - Troubleshooting bxCAN issues in Loop Back mode on STM32 MCUs

5 - FAQ: Fixing STM32 FDCAN communication disruptions - APB bus, kernel, and time quanta clocks

6 - How to use FDCAN to create a simple communication with a basic filter

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Siemens
SiemensAuthor
Associate
January 21, 2025

My chips are F303RE and L476RG. Regular CAN is my interface.
The thing is that this is my first experience with CAN so far. The "bx" itself frustrates at first look, not knowing that it's an STM specific market/technology feature. That doesn't matter.
Of course I've surfed through application notes and searched in examples - nothing there is connected to CAN in case of my chips.
It's ok though. I'll take examples from other sub-family such as F4 or F1. Thanks to Javier for sharing a useful link

Oleksii
Associate II
January 21, 2025

Writing code to work with bxCAN especially on CMSIS, no difficulties.

HAL is very overloaded here.

But this is probably from the area of ​​religion))

Github open spaces and GPT chat to help you)