cancel
Showing results for 
Search instead for 
Did you mean: 

Redesign a board with smaller MCU (same family).Want to reuse existing code. Is there a way to update the pinout in

AnnieLLL
Visitor

Redesign a board with smaller MCU (same family).Want to reuse existing code. Is there a way to update reselect the MCU, update the pinout in iMax, then update the code in the same project? Do not want to start another project for the new MCU. 

4 REPLIES 4
TDK
Guru

In standalone STM32CubeMX, you can select Pinout -> List Pinout Compatible MCUs -> choose one -> OK, Import.

You will need to copy over user code, but copying the entire file and then regenerating code will preserve the user code sections while updating the others, so that's pretty easy.

If you feel a post has answered your question, please click "Accept as Solution".
ELABI.1
ST Employee

Hllo @AnnieLLL,

Besides mentioned by @TDK, you can follow the steps shared in this FAQ to export a project configuration to a compatible STM32.

I hope this FAQ can help you.

Thank you.

ELABI.1

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Andrew Neil
Evangelist III

@AnnieLLL wrote:

Do not want to start another project for the new MCU. 


I think you have to have a separate project for each MCU.

But you can share common code between projects:

https://community.st.com/t5/stm32-mcus-products/same-project-two-different-ioc-files/m-p/694254/highlight/true#M254340

 

AnnieLLL
Visitor

I will try and keep you posted. Thank you.