2021-02-26 08:09 AM
Hi,
I am developing a bootloader and an application for a device. Now I have two separate projects and I configure all pins using CubeMX twice. Each project has ist own .ioc file and it is very much work to synch all pins and other settings between the two projects, also because the CubeMX tool is very slow.
So I wonder if there is an elegant way to share a .ioc config between both projects without breaking things?
Thanks in advance,
Anguel
Solved! Go to Solution.
2021-02-26 12:24 PM
I'd try:
I have a base ioc file that I use for many boards that share a common circuit that I do this way, then only have to modify the few different pins each time.
Paul
2021-02-26 12:24 PM
I'd try:
I have a base ioc file that I use for many boards that share a common circuit that I do this way, then only have to modify the few different pins each time.
Paul
2021-02-27 12:09 AM
Hi @Community member ,
Thank you for the helpful answer! One question: You say open in MX, what do you mean by that? Do you mean somehow through CubeIDE or should I additionally install standalone CubeMX?
Now I also looked into the .ioc files and at first glance there seem to be only two parameters related to the specific project name:
ProjectManager.ProjectFileName=SOME_PROJECT.ioc
ProjectManager.ProjectName=SOME_PROJECT
So maybe changing these to to the other (already existing) project's name and then just copying the .ioc over the .ioc of the other project should also work (could use a batch script here that I run each time I make a change to the original .ioc). Or did I overlook something? What do you think?
Anguel
2021-03-01 05:09 AM
I use the standalone STM32CubeMX to configure projects (not sure if any difference from MX in STM32CubeIDE).
I haven't tried editing the ioc file directly, I don't change the ioc often so using the MX to open/modify/save works fine for me.
(Careful if editing a generated file, as sometimes things like line ends, file ends, and special characters can be modified by the editor. Not saying don't do it, just saying be careful and test it well. We all have different skills and styles)
2021-03-01 06:39 AM
Thanks fro the information . Now I use a search and replace command line utility and it seems to work fine. So no need to open the file in CubeMX for converting, only later for generating code for the second project.