Skip to main content
scottSD
Senior III
November 4, 2019
Solved

What causes an "Invalid project path: Missing project folder or file: \PROJECT_NAME\GRAPHICS for Source path"

  • November 4, 2019
  • 3 replies
  • 10060 views

This is a warning listed under the "Problems" tab in STM32CubeIDE (1.1.0). I am seeing some strange behavior and am wondering if this is the cause.

The strange behavior I am seeing is that often when I change something in the TouchGFX Designer and click "Generate Code" then do a Run > Debug in STM32CubeIDE, the change does not take effect. What runs on the target is some previous build (without the changes).

Sometimes if I disconnect the target and reconnect it, the latest code is correctly running on the target.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

No problem, Scott.

What a nice little evening exchange we're having here on multiple threads. This definitely looks like something is broken in the project generation from CubeMX/IDE. Those "entries" refer to source paths as you can obviously tell, but there's no such thing as a "GRAPHICS" folder. Not sure where that comes from - I'll have to verify tomorrow at the office.

You can remove it by going to project settings. There's a list of source entries probably in the compiler settings.

/Martin

3 replies

Martin KJELDSEN
Principal III
November 5, 2019

Are you sure that "Run->Debug" will also build your current project (and thus the changes made through the designer?)

If you're compiling the new changes then the conclusion must be that the target isn't programmed properly.

/Martin

scottSD
scottSDAuthor
Senior III
November 5, 2019

But if the target isn't correctly being programmed, why does disconnecting/reconnecting showing the most recent build?

And...what causes the warning "Invalid project path: Missing project folder or file: \PROJECT_NAME\GRAPHICS for Source path"?

I will start fresh and create yet again (a tedious task =) ) a new project in STM32CubeIDE and see if I can replicate this warning message.

Cartu38 OpenDev
Graduate II
November 5, 2019

Most probably issue is the one pointed by Martin. As far as TouchGFX Designer is doing, out of CubeIDE context, file system update, Eclipse cannot be aware of.

Have a try to refresh your project tree (F5 key once project selected or right click > Refresh on project selection) prior initiating a new debug session. Doing such Eclipse will resync. its workspace content according file system material and so initiate proper processes prior flashing target device. One of possible inititaed process would be a project compilation if some file update detected vs. prior compilation task.

scottSD
scottSDAuthor
Senior III
November 5, 2019

I believe the two issues I am seeing are not related.

I am still wondering what causes the warning "Invalid project path: Missing project folder or file: \PROJECT_NAME\GRAPHICS for Source path"

I created a new project in STM32CubeIDE 1.1.0 , and followed the steps to create a simple design in the TouchGFX designer.

It is a simple project with an imageProgress widget in it. Below is what the Project Explorer shows (yes, I did Right Click > Refresh):

0690X00000ArifOQAR.png

Below is the warning:

0690X00000ArifTQAR.png

Should there be a GRAPHICS folder in the project?

Martin KJELDSEN
Principal III
November 5, 2019

Can you try to inspect the .cproject file or .project file for where this reference is coming from and paste it here? It looks strange.

/Martin

ArekM
Visitor II
March 1, 2024

 

Hi,
I have a similar situation for the "RTOS2" folder
The entry with the RTOS folder can be found in the .cproject file. CubeMx is responsible for this.

Simply adding the missing folder from the file manager solves the problem.

Additionally, this folder can be deleted from the file project tree in STM32CubeIDE, which will remove the folder from the file system and from the .cproject file to...

ArekM_3-1709304347190.png

 

--
Arkadiusz M.