The content you are looking for has been archived. View related content below.
on
2021-11-30
1:38 AM
- edited on
2025-07-14
7:23 AM
by
Laurids_PETERSE
When a specific STM32 part number selected for a project is not available in the desired time frame, it is essential to find a compatible alternative. This article guides you through the process of using STM32CubeMX to identify and configure a compatible STM32, ensuring the continuity and success of your project.
Software: STM32CubeMX version 6.14.1
To begin, an STM32CubeMX project is created for a specific microcontroller, such as the STM32G031F4. Once the project is initialized, we add the necessary configurations to our application. Then, we explore the available options to identify which other STM32 part numbers are compatible with these configurations by following these steps:
A window opens as shown in the screenshot below:
Let's add some peripherals and their associated configurations to our project. For example, we are going to add “SPI” to our project:
We can also add “UART“ to our project:
Now, let us save this example configuration:
Now, we will look for compatible STM32 for this project:
A window opens, displaying the list of STM32 part numbers that are fully compatible. They are shown in blue with the comment “Full Compatible”. Additionally, it displays others that are partially compatible and require certain hardware modifications, shown in yellow with the comment “Need HW change”. See the screenshot below for reference:
For the “Need HW change” section, if you need to know what needs to be changed for a particular STM32 part number, place your mouse cursor over the desired part number. Check the popup message that explains the differences.
For example, for the STM31F038F6Px, here is the popup that appears:
You can adjust the search by enabling or disabling options regarding:
Now, we continue our project:
The configuration is imported automatically, and we now have our project configuration transferred to a fully compatible STM32 part number:
Note: We can also see the list of compatible STM32 MCUs by clicking on the Compatible MCUs' button located below.
If you want to load the current configuration again to another STM32, just double-click on one of the STM32 part numbers from the list.
This article demonstrates how STM32CubeMX simplifies the process of finding and configuring a compatible STM32 microcontroller, ensuring project continuity with minimal effort. By following the steps outlined, you can efficiently adapt your configuration to an alternative STM32 part number while maintaining project integrity.