cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming Project Causing files failed to open

bradyc17
Associate

Hello 

I was trying to follow the matter and thread protocol to create my own project. I was following step 1.2.2.5 where the documentation suggest to rename the project in the Cube IDE from "Lighting-App" to "my_light-app". After this step most of my files are unable to open in the cube IDE, it gave me the following error ( I included a screenshot in this post). The problem didn't go away after I changed the included path according to the last step of the documentation. 

 

 

bradyc17_0-1741700814321.png

bradyc17_1-1741700926352.png

Thanks

Brady 

 

 

7 REPLIES 7
bradyc17
Associate

@Ouadi 
Hopefully you can help me with this!

Thanks
Brady 

 

Ouadi
ST Employee

Hi @bradyc17,

Have you changed the location of the copied project ? It seems this is a link issue, please follow the files location to identify the problem.

Best regards,

Ouadi

Hi @Ouadi 

Yes I copy and paste the whole STM32CubeExpansion_Matter_V1.1.0 folder into my document folder from the download folder. One thing I noticed when comparing the project lighting-app project v.s the my_light-app project ( the difference is that I renamed the latter from the former in cube IDE) is that the location of each file is different. For example, the app_entry.cpp file in the lighting-app has the location of PROJECT_LOC\..... ; however app_entry.cpp in the renamed project ( my_light-app) has the location of copy_parent\Core\....
( I have included two screenshots of the location of the file below) 

I tried to manually copy the file location of the not renamed ones to the file location of the renamed ones, and it seemed to work. 
But is there a more efficient way to fix the problem instead of manually changing them one by one? As basically all the files in the project has the same problem.

bradyc17_0-1741774172516.png

bradyc17_1-1741774196201.png

Thanks
Brady

 

 

Hi,

Did you check "Update references" when renaming the project through STM32CubeIDE ? 

As explained in the Wiki Page you have to copy the template project in the same location \Projects\STM32WB5MM-DK\Applications\Matter\ and rename it to "my_light-app", then you have to open the project with STM32CubeIDE and rename it as follow :

Ouadi_0-1741783068536.png

This allows to update all references and makes the links properly.

Please restart with new project to check this.

Best regards,

Ouadi

Hello, 


I was using the previous version v1.1.0, therefore I copy my template project to that location. Here is my address of the my_light-app:  C:\Users\Windows\Documents\STM32CubeExpansion_MATTER_V1.1.0 -0312_Modified\Projects\STM32WB5MM-DK\Applications\Matter
I also did rename it with update reference checked. Maybe it's the preference in the update reference that is difference?

Below is my preference for the update reference. 

bradyc17_1-1741784118536.png

Thanks

Brady

 

 

Ouadi
ST Employee

Which version of STM32CubeIDE you are using ? I see also that the file path is too long, you can maybe try to use a short path.

Regards,

Ouadi

Hello, 

 

I am using version 1.18.0 for Cube IDE and version 1.1.0 for the matter over thread project.
Can you elaborate on what do you mean by a short path as the resolved location is long and does not exist.

Thanks
Brady