cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need to create a new project (CubeMX and Keil MDK-ARM) when migrating from STM32L431CCT6 to STM32L431CBT6?

RrW1
Associate III

Hi Everyone,

I previously made a project through STM32CubeMX based on the STM32L431CCT6 to generate the pinout and initialization template for Keil MDK-ARM IDE.

We are planning on transitioning to the STM32L431CBT6 (without any changes to the code), and I was wondering if I can just use the current project on Keil-MDK ARM to program the STM32L431CBT6 without generating a new STM32CubeMX template and Keil project, and copying all the files used in the previous project into the new one.

Are these are the steps below (performed on Keil MDK-ARM) sufficient to be able to port the project onto the new microcontroller:

  • Going to Options for Target -> Device and changing the device to the STM32L431CBTx

0693W000008zar5QAA.png 

  • Going to Options for Target -> Target and change the Flash region since the size is smaller on the STM32L431CBT6, and verifying that the SRAM region is correct

0693W000008zarFQAQ.png 

  • Verifying that the Linker is correct, which can be found under Options for Target -> Linker, and optionally, verifying that the scatter file generated is correct

0693W000008zarZQAQ.png 

  • Verifying that the Flash region listed under Options for Target -> Debug -> Settings (button on the top right) -> Flash Download is correct, and that the 'RAM for Algorithm' section is correct

0693W000008zartQAA.png 

Has anyone ever had experience migrating to a different microcontroller of the same family, and porting the project for the new microcontroller?

I also verified through STM32CubeMX that the pinout diagrams exist for the STM32L431CBT6, and that the clock tree is similar. The HAL header files are also the same, and since they have the same datasheet, I am assuming that the register configurations are the same too. The only major difference I can see is the downsize in Flash memory from 256kBytes to 128kBytes.

Any insight would be greatly appreciated. Thank you!

0 REPLIES 0