Hi,
If you use the "STM32Cube" project type inside CubeIDE, then CubeMX will require that the project name is not changed, and that the project structure is not modified in any significant way.
Yes, you can add new folders. But you cannot re-arrange any folders/files which are managed by CubeMX.
Moving or renaming the ioc-file is not allowed, this will break the project.
I think you have two options:
- Use STM32Cube projects and respect the contraints about folder/file organisation and naming.
- Rely on CDT project instead. CubeMX is not at all used. --> No files are generated into this project at all. But, you have full control of this project yourself.
I tend to use the STM32Cube project as a playground to test various peripheral configurations and generate the code.
Then I copy files and peripheral initialization code from the STM32Cube project into a CDT project. I consider the CDT project to be my real development/production project.