Skip to main content
NRoos.1348
Associate II
July 16, 2020
Question

How to exchange MCU?

  • July 16, 2020
  • 2 replies
  • 1148 views

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.?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 16, 2020

Try cloning the .IOC and editing it

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
NRoos.1348
Associate II
July 17, 2020

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?

KnarfB
Super User
July 17, 2020

You can generate a linker script in a new dummy project for the correct MCU and copy it to your project.

Cartu38 OpenDev
Graduate II
July 17, 2020

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.