2023-07-12 12:12 AM
Hi,
i want to clone my project. I did the following steps:
1) Edit > Copy.
2) Edit > Paste.
3) Rename the ioc files.
4) Delete the Debug.launch file.
5) Project > Clean.
the next step is to generate the CubeMX. But when I try to open the .ioc file this error message occurs:
Invalid Input: Must be project's active .ioc file.
can anybody help me please?
2023-07-12 12:20 AM - edited 2023-07-12 12:20 AM
The name of the project is also in the IOC itself (a normal text file) under the item ProjectManager.ProjectFileName and must also be changed. However, since the IOC should not actually be changed manually, care must be taken not to damage the IOC structure.
Hope that helps?
Regards
/Peter
2023-07-12 12:52 AM
Do you know how to fix that problem.I tried to chance the item ProjectManager.ProjectFileName in the .ioc file but it didnt work.
2023-07-12 08:16 AM
Unfortunately, your description was not precise enough, but I think I have found your problem.
First of all the summary of my investigation:
However, the error message is completely correct because there can only be one IOC within a project. If another IOC were allowed, you would otherwise create a completely different directory structure with different parameters, which would mercilessly overwrite your existing structure and thus destroy it - including your own code in the USER CODE segments.
If you want to clone a project, then not only the IOC, but please the entire project, which can also be done in the STM32CubeIDE.
Hope that helps?
Regards
/Peter
2023-07-12 11:16 PM
Yes I want to clone the project. I copy and paste the entire project folder in STM32CubeIDE. I renamed the project folder and the .ioc file to the same name. After this I deleted the Debug.launch file and cleaned my project. For the next step to clone the project I have to generate the CubeMX. For this step I have to open the .ioc file but this error message occurs:
Invalid Input: Must be project's active .ioc file.
2023-07-13 12:56 AM - edited 2023-07-13 12:56 AM
Well, I have unsuccessfully tried to recreate the problem with a test project and the current CubeIDE version. Copying the project TEST0 to TEST1 and renaming the IOC to TEST1.ioc worked without problems with the CubeIDE, also CubeMX was able to open the new TEST1.ioc without any difficulties.
If you attach your IOC here, could I try it with your IOC?
2023-07-13 02:54 AM
Hi Peter,
I am not able to attach the .ioc file (see the attached error message)
2023-07-13 03:25 AM
OK, we need to check again why IOC files are blocked. As an interim measure, could you please try renaming the IOC file to *.IOC.TXT?
2023-07-13 03:59 AM
2023-07-13 04:59 AM
Your project is still based on CubeMX 6.8.0, 6.9.0 has been available for a few days, additonally you are using the old L4 firmware 1.7.2.
But OK, that probably doesn't matter much at the moment. So I have:
Everything is fine and as expected.
Please try to install the latest STM32CubeIDE (can be installed parallel to the old one, but of course in a separate directory) and try again.
If it still doesn't work, you should send me your complete project directory as a ZIP via PM, after you have deleted the redundant and bulky data and directories (Drivers, Ddebug and Release if applicable).
Regards
/Peter