Skip to main content
Andrew Neil
Super User
Nov 10, 2026 5:48 PM UTC
Question

Why does MCU have to be re-specified for CubeMX2 project??

According to this, by ​@Oussama_TROUDI:

This is the recommended way to use an STM32CubeMX2 CMake project with STM32CubeIDE (v2.1.1 recommended):

  • In STM32CubeIDE, go to File → STM32 Project Create/Import.
  • Under Import STM32 Project, select STM32 CMake Project, then click Next.
  • Enter a project name and select the source folder, then click Next.
  • Choose the correct STM32 MCU and click Finish.

 

Why on earth is it necessary to choose the STM32 again - that has already been done in CubeMX2!

This was not necessary in the original CubeMX - definitely seems a retrograde step!