Skip to main content
chriskuku
Senior II
July 24, 2023
Solved

Adding a file (Inc)

  • July 24, 2023
  • 3 replies
  • 1806 views

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?

    This topic has been closed for replies.
    Best answer by Ghofrane GSOURI

    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

    3 replies

    Ghofrane GSOURI
    Ghofrane GSOURIBest answer
    ST Technical Moderator
    July 24, 2023

    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.
    July 24, 2023

    Yes, Eclipse. Live and learn ))

    chriskuku
    chriskukuAuthor
    Senior II
    July 24, 2023

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