cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a file (Inc)

chriskuku
Senior II

Somehow I'm blinded at the moment. How do I simply add a file from the filesystem into the project ?

I created a header file "times.h", put it into ~/STM32CubeIDE/workspace_1.4.0/project/Core/Inc. Now it sits there. Opening the tree view, I don't see it. Clicking "New" I don't see an option to import a file. Only create new ones.

Ah, now, I tried "Refresh" and it's there. Soemhow counterintuitive. But probably this is owed to Eclipse?

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @chriskuku 

First let me thank you for posting.

In order to import a file you need to follow those steps:

- Click on File -->Import

GhofraneGSOURI_0-1690206761651.png

- Under General , select File System  then next 

GhofraneGSOURI_1-1690206847911.png

- Choose the directory where the file exist and then select the file and finally click on finish 

GhofraneGSOURI_2-1690206947314.png

GhofraneGSOURI_3-1690207010201.png

Thx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Ghofrane GSOURI
ST Employee

Hello @chriskuku 

First let me thank you for posting.

In order to import a file you need to follow those steps:

- Click on File -->Import

GhofraneGSOURI_0-1690206761651.png

- Under General , select File System  then next 

GhofraneGSOURI_1-1690206847911.png

- Choose the directory where the file exist and then select the file and finally click on finish 

GhofraneGSOURI_2-1690206947314.png

GhofraneGSOURI_3-1690207010201.png

Thx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Pavel A.
Super User

Yes, Eclipse. Live and learn ))

chriskuku
Senior II

Thanks for the detailed tour. Yes, import from file system is the solution. I forgot.