2025-03-11 6:49 AM
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.
Thanks
Brady
2025-03-12 2:15 AM
@Ouadi
Hopefully you can help me with this!
Thanks
Brady
2025-03-12 2:24 AM
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
2025-03-12 3:13 AM
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.
Thanks
Brady
2025-03-12 5:39 AM
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 :
This allows to update all references and makes the links properly.
Please restart with new project to check this.
Best regards,
Ouadi
2025-03-12 5:55 AM
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.
Thanks
Brady
2025-03-12 7:51 AM
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
2025-03-12 8:04 AM
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