cancel
Showing results for 
Search instead for 
Did you mean: 

View Src and Inc files in Project explorer

FJB2069
Associate III

I have read through a couple posts on this but did not get a clear answer.

I have two projects in a workspace.  One shows the tree as:  (This is how I want to see it!)

FJB2069_0-1733868134096.png

The other just shows Core with only .c files.

FJB2069_1-1733868290939.png

I can't see what is the difference as far as settings between the two projects that is causing this?

How do I show the Src and Inc as separate directories with all the .c and .h files listed?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Karl Yamashita
Lead III

In Windows Explorer, copy the Src and Inc folders (assuming those folders exist).

Then in STM32CubeIDE, paste them to the Core folder in the Project tree.

You'll see duplicate main.c and some other files with a link icon. You can delete those linked files. But quadspi.c and globe.c can't be deleted, but you should be able to drag them into the src folder. 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

View solution in original post

2 REPLIES 2
Karl Yamashita
Lead III

In Windows Explorer, copy the Src and Inc folders (assuming those folders exist).

Then in STM32CubeIDE, paste them to the Core folder in the Project tree.

You'll see duplicate main.c and some other files with a link icon. You can delete those linked files. But quadspi.c and globe.c can't be deleted, but you should be able to drag them into the src folder. 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

Thanks, that worked!