cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to change processor in CUBE?

mattreed9
Associate II
Posted on July 25, 2016 at 22:02

We have spent weeks getting the CubeMX setup just right, and have decided that we need a processor that has more memory. I really don't want to start from scratch, the processor is almost identical except that it has twice the Flash.

Is there anyway to change the selected processor but leave all the pin assignments and IP setups as-is?

Currently configured for STM32L011K4Tx, going to an STM32L031K6Tx

-Matt

#stm32l031 #cubemx #stm32l011
1 REPLY 1
mattreed9
Associate II
Posted on July 25, 2016 at 22:09

While waiting for a response thought I'd play with it.

Yes - it's easy!

1) Setup a new project with the new processor

2) Before doing any assignments, click on ''File -> Import Project'' (This is grayed out if anything is changed).

3) Select the project for the smaller processor

Everything that is ''compatible'' is brought into the new project (even the clock settings).

The only thing that was not compatible is the BOOT0 pin, which cannot be reassigned on the 031 part.

-Matt