Skip to main content
SWenn.1
Senior III
February 9, 2023
Question

STMCubeIDE how to include github source code?

  • February 9, 2023
  • 5 replies
  • 2954 views

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

This topic has been closed for replies.

5 replies

AScha.3
Super User
February 9, 2023

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
SWenn.1Author
Senior III
February 9, 2023

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

0693W00000YAOU1QAP.png

AScha.3
Super User
February 9, 2023

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
SWenn.1Author
Senior III
February 9, 2023

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
Super User
February 9, 2023

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""."