This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I was looking for steps or advise on cloning a CCS project that is on Github.
I would like to be able to Clone a repository and then perform Push and Pulls when required.
Github has become an essential tool for those of us who are working in distributed teams, so steps on how to do this would be very useful.
It would also be great to provide a simple mechanism for others to get involved in my TI based open source projects.
I am using EGit inside CCS, and have everything working well when I create a project and then push. But how do others then clone my projects and in the process create a local CCS project. My efforts so far have been unsuccessful....and am forced to create a project, an then just copy the files to the project, which ends up breaking the Git versioning and causes all sorts of problems.
Glenn.
I have personally not used Github, however a web search seems to indicate that one should be able to clone a repository and then be able to import the project into CCS. Here is one references I found:
http://2lemetry.com/2014/08/04/connecting-thingfabric-texas-instruments-cc3200/
Perhaps others in the community that have personal experience would be able to add additional comments.
Thanks AartiG,
When I get a chance I will run through the steps and see if they will work with Github...and perhaps document any additional steps required.
Thanks 2lemetry, or should I say Amazon 2lemetry.....Amazon announced today that they bought 2lemetry to assist them competing in the IoT space.
If anyone else has experience to add about using Github and CCS, please let us know.
Glenn.
I can't address your situation directly because I don't use Github or EGit. But I have used Git repositories with Code Composer Studio projects.
On your GitHub project page, there should be a URL that git clients can access to perform the clone from, e.g. https://github.com/username/projname.git. Any git client should work, it doesn't need to be the one bundled with Eclipse.
Once you have cloned the repo to your hard-drive, open CCS to your desired workspace, and choose File > Import... > Code Composer Studio > Existing CCS Eclipse Projects > Select search-directory: Browse...
Navigate to the directory containing your project (i.e. the one with a .project, .cproject, and .ccsproject file). Check the project in the "Discovered projects" list, Finish, etc.
Now the other question might be "what should I add to the repo"? Your source code (we'll count linker command files, sys/bios config files, etc. as source code), the .project, .cproject, and .ccsproject. Also, I think the official stance is things in the .settings folder should be added also, although I find that these change quite a lot and usually don't seem that important. I think what I did was added the intial contents of .settings, and after working with it over time and learned which files changed a lot and which weren't important for cross-machine portability, I eventually added those items to my .gitignore.
The other thing is the concept of CCS "workspaces" don't apply well to source control. They have too much user and/or machine-specific info in them. I suggest just checking in the "project", and then each user will import that project into their workspace (as previously described).
TI description of using source control.
Thanks everyone for your help, with this advise I have put together a step by step process for cloning a Github repository and then be able to pull and push to Github.
Please note these instructions were made while using CCS 6.1
Cloning a Github Repository to use in CCS
Using Git and GitHub in CCS
Note: Migrating your existing projects to Git and then publishing to Github will involved another set of steps, I will update this post when those steps are available.
To practice this process, you could use the following Github Repository for the CC3200 (requires TI-RTOS for SimpleLink installed) - https://github.com/remixed123/startproject_cc3200_ti-rtos
Glenn.