cancel
Showing results for 
Search instead for 
Did you mean: 

STMCubeIDE how to include github source code?

SWenn.1
Senior III

I have downloaded source / header files from github and placed them in the /Driver folder on my existing project. I included them in the project properties. as you can see from pic it shows up under Project Explorer Includes section but it is greyed out. I also notice underneath the Project Explorer Drivers the folder Note_C_Drivers does not show up.....

Can someone show me where I need to go within the Project Properties to get this code to show up???

If I do this with TI and in Code Composer Studio this way the folder shows up and appears black not greyed out.....

 0693W00000YAOLiQAP.png 

Thank you

5 REPLIES 5
AScha.3
Principal III

no....try: import !

so : click on your project, gets selected (blue) . here right mouse click -> import -> file system ->

next ->

0693W00000YAONKQA5.pngselect directory - files you want to import (.h in inc here in my download, then same procedure again for .c source files)

-> finish.

now they are in your project and the IDE knows about them. just include in your main ...

0693W00000YAOOcQAP.png

If you feel a post has answered your question, please click "Accept as Solution".
SWenn.1
Senior III

I'm close here but Finish is greyed out???

0693W00000YAOU1QAP.png

AScha.3
Principal III

only (!) in right window are the files to select...choose directory with matching files and select them; left window is the directory, you choose.

+ see the warning : source is in your target directory. thats impossible to "move" or copy.

If you feel a post has answered your question, please click "Accept as Solution".
SWenn.1
Senior III

Dumb follow up...But I seem to notice you have forward slashes whereas my system is showing backslashes on THIS particular item??? (Other folder pointers are forward slashes)

AScha.3
Principal III

so seems you on Win and i on Linux system. 🙂

0693W00000YAOe1QAH.png0693W00000YAOYJQA5.png( but at work i have same IDE on Win also . )

If you feel a post has answered your question, please click "Accept as Solution".