Skip to main content
Associate III
Oct 21, 2026 7:01 AM UTC
Solved

existing stm32 project to new project importing

Hi,

we are currently using STM32H745BIT6 208 Pin package, now this package is not recommended by ST for new designs, so we are changing to STM32H745II LQFP 176 pin package.

is there a way to import the current project IOC file MCU to new MCU. how to do this. 

if I do again by creating new project it is a huge work. since we are in a production stage this change in new MCU will cause us several software related problem and it will consume again more time.

please suggest how to import current project to new MCU

 

Regards,

srinath

ozammoBest answer
Associate
Oct 22, 2026 8:53 AM UTC

So there is another way I can think of but might be a bit unpredictable.

  1. Make a full copy of your IOC file
  2. Create a new blank IOC project using the STM32H745IIT6.
  3. Open the IOC in a text editor and copy the hardware definition lines (MCU.name , MCU.Package)
  4. Open your copied IOC file in a text editor and replace the hardware definition lines with the relevant STM32H745IIT6. Save file.
  5. Open the project in MXCube and resolve any conflicts.

13 replies

Associate
Oct 21, 2026 7:22 AM UTC

Hi,

Please follow these steps, I have just ran through them on one of my projects successfully.

  1. Back up your IOC file!
  2. Open your IOC project in MXCube.
  3. In the Pinout & Config view press ALT + L to get a list of compatible MCUs, you may have to change the package part of the filter.
  4. Select the desired MCU.
  5. Review pins, because you are changing footprint sizes there will likely be some issues so check all pin assignments.
  6. Done!

 

Andrew Neil
Super User
Oct 21, 2026 9:11 AM UTC
  1. Review pins, because you are changing footprint sizes there will likely be some issues so check all pin assignments.

​@Srinath_03 if you need to move pins around, this may help:

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate III
Oct 21, 2026 12:17 PM UTC

​@Andrew Neil 

 

Hi sir, this ALT+L (list pinout compatible MCUs) this option is not able to do in this MCU.

 

Andrew Neil
Super User
Oct 21, 2026 12:58 PM UTC

It was ​@ozammo who suggested that - not me.


Have you seen this:

 

BTW: you haven’t said what version of CubeMX you’re using.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate III
Oct 21, 2026 1:06 PM UTC

I'm using cube Mx version 6.18.1 latest, 

i have tried above but I'm getting import failed and multiple context error

 

Associate
Oct 21, 2026 1:12 PM UTC

Would you be willing to share your IOC so i could give it a go?

Associate III
Oct 22, 2026 6:09 AM UTC

​@ozammo  sorry sir if it's my personal work I can share the IOC, this is office file. thanks for your help. I have tried by importing the project in cube mx, but multiple context error is coming

ozammoBest answer
Associate
Oct 22, 2026 8:53 AM UTC

So there is another way I can think of but might be a bit unpredictable.

  1. Make a full copy of your IOC file
  2. Create a new blank IOC project using the STM32H745IIT6.
  3. Open the IOC in a text editor and copy the hardware definition lines (MCU.name , MCU.Package)
  4. Open your copied IOC file in a text editor and replace the hardware definition lines with the relevant STM32H745IIT6. Save file.
  5. Open the project in MXCube and resolve any conflicts.
Associate III
Oct 22, 2026 9:28 AM UTC

​@Andrew Neil 

​@ozammo

actually, ChatGPT has given an idea.

open the IOC file in text editor, change MCU.name alone to new part number (i.e. stm32h745II), save the text file. 

then open the IOC file,do require changes and conflicts.

 

this is actually working, now my package changed to LQFP 176, all the ports which ever I used still same only, same configurations and only pin number is changed, and I have cleared all the conflicts and errors.

this is very easy do, but I don't know how this change of package happened in background, 

 

Regards,

srinath

 

 

Associate
Oct 22, 2026 10:57 AM UTC

Hi, Great sounds like the method I suggested.

 

Glad its all working.