2020-10-28 03:34 AM
I have a Nucleo-G071RB and GFX01M1 display board.
I'm using TochGFX 4.15.0 to generate the project. It generated the files and I then when into CubeIDE, the code compiled and managed to downloaded into the board and all working ok.
I now want to add some GPIO pins to the project. I tried to open the .IOC file by double clicking it but it won't open and it give me an error of:
Invalid Input: Must be project's active .ioc file.
Project's 'STM32G071_test_28-10-20' active one is 'STM32G071_test_28-10-20.ioc' file
How can I fix this ?
CubeIDE is version 1.4.2
Solved! Go to Solution.
2020-10-30 03:42 AM
Maybe you confused STM32CubeIDE by manually renaming the project folder name after creating it from STM32G071_NUCLEO to STM32G071_NUCLEO_30-10-20, right?
The error message means that CubeIDE can no longer find the original IOC. Please rename it to the new name and use a text editor to change the content as well, as the previous name is also there.
2020-10-29 01:45 PM
Please try to open the project in CubeIDE using
File > Open Projects from File System...
enter or navigate to the path of your project, but only select the line with the Eclipse project.
(alternatively you can also import the IOC using File > Import, but this might take a bit longer)
When your question is answered, please close this topic by choosing Select as Best.
Good luck!
/Peter
2020-10-29 02:16 PM
I can't do a File > Open Projects from File System...because the project is already imported. I had to create a new workspace to do it but I can't find any option on "only select the line with the Eclipse project." Where is this ?
I did tried the " import the IOC using File > Import, " but that created a new project. I can open the IOC file but all the files that were generated by TouchGFX was not there. I then tried to open TouchGFX designer to re-create the GUI and regenerate the files but back at CubeIDE it won't compile after that.
2020-10-30 01:03 AM
Interesting that you can't open the IOC of a project that has already been imported.
But you can give it a try: right-click and delete the already imported project from workspace (don't tick the box Delete project contents on disk) and then try my first proposal again.
Explanation for "only select the line with the Eclipse project": while importing a file structure the CubeIDE tries to import everything it finds. In case of the path of your project it should propose two folders to import: the <project root folder> and the <project root folder>\STM32CubeIDE, while the latter one is marked with Eclipse project. Please remove the tick mark at the <project root folder> and just keep the 2nd one, then start the import using Finish.
2020-10-30 02:40 AM
When I tried the import, there is only one project shown.
It imported and compiled sucessfully but when I double the IOC file I get this error.
2020-10-30 03:42 AM
Maybe you confused STM32CubeIDE by manually renaming the project folder name after creating it from STM32G071_NUCLEO to STM32G071_NUCLEO_30-10-20, right?
The error message means that CubeIDE can no longer find the original IOC. Please rename it to the new name and use a text editor to change the content as well, as the previous name is also there.
2020-10-30 04:00 AM
Renaming it back seems to fix the problem.
I was following this video:
https://www.youtube.com/watch?v=eiPtQp4chG0
At 3:30 it says edit the .project file and change the <name>
Thanks for your help.
2024-08-06 12:57 AM
That was exactly my problem. Renaming the file solved it for me. Thanks.
(Being so usual a problem, maybe pass a suggestion to the STM32CubeIDE development team to check for this and alert the user).