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/CC2650MODA: Starting a project from scratch using an exemple from BLE SDK 2.2.2

Part Number: CC2650MODA
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

I am starting a new project using the Simple_peripheral exemple on a CC2650 Launchpad.

I created a new workspace and imported the simple_peripheral exemple using the "copy project into workspace" option.

Now I realize that although I selected this option all the source files that appear in the project are linked.

I understood that they are linked because in the original exemple they were already linked to files in the ble-sdk\src\exemples 

Looking at the path variables I have an ORIGINAL_PROJECT_ROOT variable still pointing to the SDK exemple directory.

There is also an ORG_PROJ_DIR that is pointing to an IAR/STACK directory (surprising why IAR !???)

Could you please provide us with a clean process to create a fully independant and portable project from a BLE SDK exemple.

PS: This is my second CC2650 project. I started the first one from the Sensortag exemple and ended up in a nightmare trying to manage source files versions.

  • Hello,
    Thank you very much for your answer
    I know this document but it doesn't quite answer my question.

    In all Ti document they recommand to start from a sample application and then to make some changes.
    The way to start from a sample app is to import it from the TiREx or the SDK using the "copy project into workspace".
    As per SWRU393 chapter 10.

    This should be the process ...
    .. however when you do that you get a lot of links to the original project and even to some source files in the SDK Directory as mentionned in my question. Even some links to IAR directories and some PATH variables refering to the original project.

    So my question is what is the 'clean' process to create a fully independant and portable project from a BLE SDK exemple so that all sources and confiiguration files that I have to modify would be in my project directory ?

    Best regards.

    Frederic
  • Hello Frederic,

    We don't have a guide to create a fully portable, but you can modify the .projectspec file to copy all the files you plan to alter instead of linking to them by changing action. For example in simple_peripheral_cc2640r2lp_app.projectspec:

    <file path="SRC_BLE_DIR/icall/app/ble_user_config.c" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="ICallBLE" createVirtualFolders="true" applicableConfigurations="FlashROM, FlashROM_StackLibrary, FlashROM_StackLibrary_RCOSC"/>

    The projects for IAR embedded workbench is directly linked to the source files in the installed SDK folder, where the link to xdctools is given in the custom arguments variable list.