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/CC2640R2F: Linked file resources / Copying projects?

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hello,

I made an 'initial' project by importing the 'Micro BLE Broadcaster Scanner' to CCS from GitHub.  I made edits to the main thread found in 'uble_bcast_scan.c'  I then copied that project (by following the instructions in the documentation) by right-clicking, copying and pasting with a new project name.  I then edited the file 'uble_bcast_scan.c' in the new project, and discovered it had made changes to the original .c file in the original project.

Looking at the file properties (in CCS), I now see that 'uble_bcast_scan.c' is actually a linked file resource that points to example app folder structure I imported. 

My question is: is there any way at all I can recover the previous version of 'uble_bcast_scan.c' from my initial project?

And if I am SOL, is there a way to change CCS's config such that when I make a copy of a project, it breaks all linked file references and actually just makes a copy of a project?

  • Hi Michael,

    When making a copy of a project you can choose to export it as an archive file, in this case you should be able to resolve and export all linked resources in order to export a "full" copy. You should then be able to import this as any other CCS project (remember to change name before exporting). There is no way to configure CCS to simply break links when making copy->paste that I'm aware of.

    In terms of recovering the file, I would suggest checking out the file in question from the github repository again. If the previous version was not the original file there is no way of recovering this unless you are running some kind of version control.
  • Thank you for the instructions on exporting/importing to duplicate a project. 

    Luckily, I was able to find the previous version of the file.  It turns out if you right-click on the file in CCS project viewer, hover over 'Team' and select revision history, it then shows you a series of auto-saved previous versions, roughly every couple hours it looked like.  The version I needed prior to making edits to the linked file were all still there.

  • Nice find, thanks for sharing!