cancel
Showing results for 
Search instead for 
Did you mean: 

How migrate STM32L432KC MCU to STM32L452RE MCU?

Niks
Associate II

How can we provide support to two devices (startup files) for a developed application. 

I am using STM32L432KC MCU and i want to migrate my application to STM32L452RE MCU. 

Is there any way to do the same?

2 REPLIES 2
Imen.D
ST Employee

Hello @Niks​ ,

STM32CubeMX allows loading a project configuration on an MCU of the same Series and easy switching to another microcontroller.

Please refer to the "7.9 Switching to another MCU" section in the UM1718 User manual STM32CubeMX for more details.

With Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Do you want to create a project that handles the compilation of both, and select. If so which tool chain?

Do you want to end up with code which will run on either of the cores?

For the startup_stm32l4xx.s files, figure out which is the superset, and if and IRQ Handlers have different or overloaded variants, use a merge/diff tool you like to identify differences.

Where die level differences need to be accomodated look at reading the DEV_ID from the DBGMCU and use that to select clocking/peripheral options, and flag to other code which core is being used.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..