Search for the best way to change controller in cube IDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-21 8:19 AM
Hi,
What is the most efficient way to change controllers on a custom board?
I have changed the STM32G473RE to an STM32G473RC, the project is build and compiled with cube IDE (so i have an ioc file too). Is there an easy way to change the controller in the ioc file to another one and rebuild the code? Or which other way causes the least work?
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-23 8:34 AM
Ouch, didn't double check that. The same list has an "OK, Import" button in STM32CubeMX, which I took for granted. CubeMX has another list of Compatible MCUs at the bottom.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-21 8:44 AM
Can be done: Open the .ioc, under Pinout&Configuration is a Pinout drop-down menu with a List Pinout Compat. MCUs entry. Shortcut: Alt+L.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-23 5:07 AM
yes that list i know , but i can't change the controller in this list to use that device in cube IDE and with code generating .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-23 8:34 AM
Ouch, didn't double check that. The same list has an "OK, Import" button in STM32CubeMX, which I took for granted. CubeMX has another list of Compatible MCUs at the bottom.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-24 1:44 AM
Yes in CubeMx we can choose another MCU and save a ioc file. Strange this button is not there in cubeIDE. Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-24 2:28 AM
the newly created ioc file causes errors when trying to compile.
any idea how to solve this?
stm32cubemx version 6.5.0
stm32cubeIDE version 1.8.0
In file included from ../Drivers/CMSIS/RTOS2/Template/cmsis_os1.c:28:
../Drivers/CMSIS/RTOS2/Template/cmsis_os.h:157:10: fatal error: cmsis_os2.h: No such file or directory
157 | #include "cmsis_os2.h"
| ^~~~~~~~~~~~~
compilation terminated.
../Drivers/CMSIS/RTOS2/Source/os_systick.c:25:10: fatal error: os_tick.h: No such file or directory
25 | #include "os_tick.h"
| ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/CMSIS/RTOS2/Template/subdir.mk:19: Drivers/CMSIS/RTOS2/Template/cmsis_os1.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_systick.o] Error 1
../Drivers/CMSIS/RTOS2/Source/os_tick_gtim.c:25:10: fatal error: os_tick.h: No such file or directory
25 | #include "os_tick.h"
| ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_gtim.o] Error 1
../Drivers/CMSIS/RTOS2/Source/os_tick_ptim.c:25:10: fatal error: RTE_Components.h: No such file or directory
25 | #include "RTE_Components.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/CMSIS/RTOS2/Source/subdir.mk:25: Drivers/CMSIS/RTOS2/Source/os_tick_ptim.o] Error 1
../Drivers/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.c:31:10: fatal error: arm_math.h: No such file or directory
31 | #include "arm_math.h"
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/CMSIS/NN/Source/SoftmaxFunctions/subdir.mk:22: Drivers/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.o] Error 1
make: *** [makefile:205: all] Error 2
"make -j12 all" terminated with exit code 2. Build might be incomplete.
