2025-08-08 1:37 AM - last edited on 2025-08-08 2:34 AM by Andrew Neil
HI Team,
I am Pranathi, I am looking for a board and MCU chip for my project, I want to implement a CAN protocol between 2 STM32 boards with FSM (finite state machine) and RTOS included in it.
Additionally I will be using a sesnor and an actuator on each STM node. Can anyone help me in chosing which MCU and STM32 board I should be using for this aim? And also if possible share a basic source code for implementing a CAN protocol.
Looking forward for your help.
Thanks in Advance,
Ch.Pranathi
2025-08-08 1:52 AM - edited 2025-08-08 2:33 AM
Tools to choose your MCU:
https://www.st.com/en/development-tools/st-mcu-finder-pc.html
https://www.st.com/en/development-tools/stm32-finder.html
https://www.st.com/content/st_com/en/stm32-mcu-product-selector.html
https://www.st.com/content/st_com/en/stm32-mcu-developer-zone/mcu-portfolio.html
Also, distributors usually have parametric search tools ...
Having identified a suitable MCU, go to its Product Page on the ST website, and look on the 'Tools & Software' tab - that will show you the recommended boards (probably one will be highlighted; for the full list, look under 'Product evaluation tools').
eg, picking one entirely at random:
https://www.st.com/en/microcontrollers-microprocessors/stm32f401ve.html#tools-software
I would suggest that a Nucleo board might be more useful to you than a Discovery or DK.
The trouble with the Discovery & DK boards is that they tend to have a lot of extra on-board stuff - which can get in the way of you connecting the other things that you actually want to use!
The Nucleo boards are basically just the STM32 plus an ST-Link - which leaves very nearly all the pins free for you to use however you require.
Some basic "getting started" steps to gain familiarity with the product and the tools:
See also:
PS:
@Pranathi_ch wrote:share a basic source code for implementing a CAN protocol.
Once you have the board, STM32CubeIDE will have a load of examples for that board - should include CAN.
#HowToChooseMCU #HowToChooseBoard
2025-08-08 1:56 AM - edited 2025-08-08 2:16 AM
@Pranathi_ch wrote:I am looking for a board ... RTOS included in it.
Note that an RTOS is purely a software component - it doesn't come as part of a board.
ST's currently preferred RTOS is FreeRTOS:
You can use any other suitable RTOS of your choice - but the porting and integration is then down to you.
2025-08-08 3:18 AM
if possible share a basic source code for implementing a CAN protocol.
You have the working examples in different STM32 Nucleo boards (available in STM32-hotspot), which will help you in the bxCAN configuration:
You can also refer to the KB articles related to CAN:
2025-08-08 3:24 AM
and one recently updated on FDCAN:
How to use FDCAN to create a simple communication with a basic filter
@Pranathi_ch You can search the Knowledge Base: