Skip to main content
Associate III
July 5, 2024
Solved

Same project, two different ioc files

  • July 5, 2024
  • 4 replies
  • 2157 views

I have a working project with its .ioc file.

Now I need to port the project codebase to another project that uses exactly the same processor, but with different pinout: the peripherals in the project will be the same, mapped on some other pins.

I need to have a complete codebase with its ioc file for both projects.

What is the best course of action to duplicate the original project?

It would be ok if I'll have to mess around with cubeMX to manage both ioc files.

This topic has been closed for replies.
Best answer by Andrew Neil

Within the CubeIDE Project Explorer, you can copy & paste a project - that will duplicate the project, including its .ioc file.

 

4 replies

Andrew Neil
Super User
July 5, 2024

I think you can only have one .ioc per project.

This is how I handled having common code for two (or more) different hardware targets:

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/same-touchgfx-project-for-multiple-cubemx-files-in-the-same/m-p/672534/highlight/true#M37503

It's two projects (each with its own .ioc file) sharing a 'common' code folder.

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
July 5, 2024

I don't want two iocs for one project, I want to duplicate one project and then change its ioc and in the end have two projects.

Andrew Neil
Andrew NeilBest answer
Super User
July 5, 2024

Within the CubeIDE Project Explorer, you can copy & paste a project - that will duplicate the project, including its .ioc file.

 

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.