2020-07-16 09: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.?
2020-07-16 11:41 AM
Try cloning the .IOC and editing it
2020-07-17 02: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?
2020-07-17 02:35 AM
You can generate a linker script in a new dummy project for the correct MCU and copy it to your project.
2020-07-17 06: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.
2020-07-17 06:53 AM
Good idea, thank you!