2018-08-14 05:16 AM
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?
2018-08-14 05:35 AM
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.
2018-08-14 05:44 AM
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.