How to exchange MCU?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 9:33 AM
What is the best way to change the MCU in an existing project, for example if the memory has become too small and i want to switch to the same MCU with more memory?
Do you really have to start all over with configuring the pins, adding compiler settings, configure the clock tree etc.?
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 11:41 AM
Try cloning the .IOC and editing it
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 2:07 AM
I tried it first, but it didn't work, complained about missing include files for the old MCU, even after regenerating code. Today i tried again, changed .IOC and .cproject, and it compiles.
But the linker script is not regenerated and still contains the configuration for the smaller MCU. Deleting it and generating code again does not create the linker script. Still it compiles without the linker script, but i doubt it leads to useful results.
Is there a way to create a new linker script, suited for the new MCU?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 2:35 AM
You can generate a linker script in a new dummy project for the correct MCU and copy it to your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 6:20 AM
STM32CubeIDE is not supporting such feature.
STM32CubeMX standalone as some capabilities here. Have try about Alt+L bindkey to find and move your project to a compliant device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 6:53 AM
Good idea, thank you!
