cancel
Showing results for 
Search instead for 
Did you mean: 

Support relative paths in IOC file

Armandas
Associate III

I fully appreciate that CubeMX is geared towards hobbyists and demo projects.

But let's imagine for a second that someone is trying to use this software professionally.

I have created a template to generate some custom code with CubeMX and it works as expected. However, in the IOC file my settings are stored as shown below:

ProjectManager.TemplateDestinationPath=C\:\\path\\to\\my\\project\\cubemx\\my_project_name
ProjectManager.TemplateSourcePath=C\:\\path\\to\\my\\project\\tools\\cubemx-templates

Now imagine someone else is working on this project. Maybe they have checked out the code to a different directory, or maybe they are using Linux. The IOC file is broken for them. If they fix it on their side and commit it, it will be broken for me.

Please add support for setting these paths relative to the IOC file itself, so that multiple people can work on the project.

By the way, I tried editing the file manually and setting a relative path, but then the file is no longer generated.

I am using CubeMX version 6.6.1

10 REPLIES 10

Hi @Ghofrane GSOURI is there an update on the internal ST ticket?  I was also hoping to use relative paths for template files, and it does not seem to be working in STM32CubeMX version 6.14.1.

Thanks,

Cory