2021-05-15 07:06 AM
Hi All.
I using MCSDK.
And I want migrate the project that out Motor Control Workbench or Motor Profiler to another device project using STM32CubeMX or STM32CubeIDE.
Does anyone know how to do this, or documents for this?
Solved! Go to Solution.
2021-05-15 10:12 AM
Dear Kenji,
You can only go in CubeMx or CubeIDE to IOC configuration then in Pinout & configuration/Pinout/List Pinout compatible MCU (ALT-L) , the Cube show possible CPUs and you can select one of them. When you choose one of the MCUs then all possible values will updated to the new MCU.
In the same menu you can export pinout with Alt-functions. This produce a CSV file but I dont know how to import them. Maybe somebody has experience in Import it.
Osto
2021-05-15 09:22 AM
There is no easy or built-in way to do this. Create a new project and copy/paste all the user code.
2021-05-15 10:12 AM
Dear Kenji,
You can only go in CubeMx or CubeIDE to IOC configuration then in Pinout & configuration/Pinout/List Pinout compatible MCU (ALT-L) , the Cube show possible CPUs and you can select one of them. When you choose one of the MCUs then all possible values will updated to the new MCU.
In the same menu you can export pinout with Alt-functions. This produce a CSV file but I dont know how to import them. Maybe somebody has experience in Import it.
Osto
2021-05-15 11:24 AM
TDK-san and Osto-san
Hi.
It seems difficult to do in built-in way. Thanks.
2022-01-11 08:45 AM
Hi Guys. I try to mirgate a Project in CubeMX, based on the STM32F401CE controller to the STM32F401CC controller.
CubeIDE: Version: 1.8.0 Build: 11526_20211125_0815 (UTC)
CubeMX: version: 6.4.0.202111222105
OS: Windows 10
I tried to open the IOC file in CibeIDE, go to Pinout -> List pincompatible MCUs
From the UM1718 (CubeMX documentation), I expected an "ok Import" button. In the window named "pinout compatible dialog".
Looking at my, cubeIDE output, it lists the compatibel MCUs but I cannot choose any to generate a new project.
Is it essential to install CubeMX to do the migration or should this also work in CubeIDE? If so, how?
Many thanks for your help
2022-01-11 08:55 AM
I stand by my original statement.
Projects created in STM32CubeIDE cannot be migrated in any automated fashion. Projects created in CubeMX can, sort of, but user code is lost in translation.
https://community.st.com/s/article/mcu1-to-mcu2-migration-option-within-stm32cubeide
2022-01-16 10:20 AM
Ok. I did it, as suggested. I auto generated the CubeMX settings as describe by Osto, above. Then I manually copied all source files, as TDK suggests. BUT:
In my case, CubeMX code generation did not import the clock settings correctly! Most of the settings were imported but not the PLL source Mux (to HSE) and the system clock Mux (to PLLCLK). Have a look at those settings, when you import a project like this.
2022-01-17 07:05 AM
Hi,
Try to do the same with CubeMx instead of CubeIDE. CubeMx is in my opinion more relaible than CubeIDE.
The best but most time intensive way is to enter all values in a new project of the new MCU. So you are not limited with possibilities of the tool but on MCUs with big pincount or very complicated projects, this could be very time intensive.
2024-05-28 07:57 AM
Hey TDK,
I know a lot of time has pasted since you answered this question but the best way to migrate from a family of MCU to another is to create a new project with the new mcu family and copy paste all the files and configure the pins as required ?