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.

CCS/MSP430FR5969: More Additions to the GitHub integration info on the TI wiki

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

Hi All,

I found the info on how to clone an existing GitHub repo for use in a CCS project, but in my case, I am starting up my GitHub repo, and want to take some existing MSP430 code that I have and put it into a new project. I'm kicking off this thread to try to capture the best practices, with the hopes that once it is vetted, it could also be added to the TI processors wiki for everyone's benefit.

Here is what I think the process is, please provide feedback!

  1. Install GitHub for Windows as described.
  2. Create your repo (ex: MSP430-Project) either via the GitHub web client or windows client.
  3. In GitHub for Windows, clone the repo
  4. In Code Composer Studio, select your project in the Project Explorer, and go to Files->Export. Select "General->File System".
  5. In the dialog box, confirm that the correct project is selected. Deselect any subfolders that are unwanted, such as Debug. 
  6. To the right of the "To directory:" text box, click Browse, and find the directory that corresponds to the cloned repo.
  7.  Click the Finish button
  8. Go back to GitHub for windows and review the changes that are detected. Select any files that are unwanted, right click, and click "Ignore" or "Ignore all ..." to add these files to the repo's .gitignore file.
  9. Add a commit summary and description of the initial commit, then hit the "Commit to master" button.

I am realtively new to both GitHub and CCS, although I have done other work with version control and embedded software long in the past. Please provide any feedback you can to strengthen this how-to.

Thanks,

Paul

  • Paul,

    For #2 another option is to use the "Git Repositories" view in CCS. It will allow you to create a new repo.

    We have an updated version of the content from the wiki on Resource Explorer.
    dev.ti.com/.../

    However it would be great to add more to it.

    Regards,
    John
  • Paul,

    Your steps seem like they should work fine. An alternative to using File->Export is to use the content menu in CCS Team->Share Project to share the project directly to a Git repo. The link to the article provided by John in the previous post shows the steps to do that.