Skip to main content
DMala.2
Associate
February 15, 2021
Solved

How to change MCU in STM32CubeMX?

  • February 15, 2021
  • 2 replies
  • 10496 views

Hello,

I tried to change the board in my project from STM32G474CC to STM32G473CC. Both should be pin compatible. I've read different solutions for this in the forum but non of them work. Also the description in UM1718 chapter 11.9. When I follow the steps which are descript in this user manual I can not find the "File --> Import Project" option. I can only import from an existing project but then this project ends up in my workspace with the same mcu settings as it has in the original project. Is there an easy solution for changing pin compatible MCUs in the project?

I use STM32CubeIDE version 1.5.1

Best Regards,

Dominic

This topic has been closed for replies.
Best answer by KnarfB

If you have the Pinout View open in STM32CubeMX (not IDE), there is a drop-down menu at the white "Pinout" text. One menu entry is "List ... Compatible..." (Alt+L).

hth

KnarfB

2 replies

KnarfB
KnarfBBest answer
Super User
February 15, 2021

If you have the Pinout View open in STM32CubeMX (not IDE), there is a drop-down menu at the white "Pinout" text. One menu entry is "List ... Compatible..." (Alt+L).

hth

KnarfB

Associate II
October 3, 2023

Thanks, but I've got two problem with this incomplete solution :


- the first time I opened the dialog box, it stayed blocked at 98% with a "Running Low Memory" error. Frustrating on a computer with 32 GB RAM. I close few processes and relaunched CubeIDE, and then, it reached 100% (STM32CubeIDE using "only" 1.7 GB by the way). Then :


- this is a list, just showing information. There's no way to switch from the current MCU to another one from the list.

Is there a clean way to switch without recreating a new project from scratch, or use dirty techniques ?

(STM32CubeIDE Version: 1.13.2)

DMala.2
DMala.2Author
Associate
February 16, 2021

Hello KnarfB,

thank you for your answer. This solved my issue.

Dominic

LLeva.1
Associate II
February 7, 2024

And will happily delete all user created files during MCU change. I am still alive as main files were open in editor.

Associate II
February 8, 2024

yes it was bother for me too.
now the way I choose is as followings..
  1. create empty project which use compatible MCU.
  2. copy linker script file (*.ld) into proper project.
  3. select linker script with "Properties - C/C++ Build - Settings - MCU GCC Linker" menu.
mxo_0-1707383071962.png

that gives less frustrates.