Skip to main content
Niks
Associate II
August 14, 2018
Question

How migrate STM32L432KC MCU to STM32L452RE MCU?

  • August 14, 2018
  • 2 replies
  • 602 views

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?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    August 14, 2018

    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.

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Tesla DeLorean
    Guru
    August 14, 2018

    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 VenmoUp vote any posts that you find helpful, it shows what's working..