Skip to main content
Graduate II
July 5, 2024
Solved

Same project, two different ioc files

  • July 5, 2024
  • 1 reply
  • 2094 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.

     

    1 reply

    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.

    Graduate II
    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.

    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.