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.

How to create Virtual Folder and set source files linked into Virtual Folder?

Part Number: CC2652R
Other Parts Discussed in Thread: CC1352P

I have modified znp_CC1352P_2_LAUNCHXL_tirtos_ticlang.projectspec and make the ".c" files and ".h" files in my project are linked to SDK folder. But in my project folder there are many empty folder are created. Can I creat these folder as virtual folder that only appear in workspace of my project?

Fullscreen
1
2
3
4
5
6
<file path="${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_initiator.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack/bdb">
</file>
<file path="${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_initiator.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack/bdb">
</file>
<file path="${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_target.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack/bdb">
</file>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hello,

    set the "createVirtualFolders" attribute to "true"

    For example (make sure you horizontal scroll to the end):

     <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_initiator.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack_virtual/bdb_virtual" createVirtualFolders="true">
    </file>
    <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_initiator.h" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack_virtual/bdb_virtual" createVirtualFolders="true">
    </file>
    <file path="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/zstack/stack/bdb/bdb_touchlink_target.c" openOnCreation="false" excludeFromBuild="false" action="link" targetDirectory="Stack_virtual/bdb_virtual" createVirtualFolders="true">
    </file>

    This created new virtual folders "Stack_virtual" and "bdb_virtual" and linked the desired source files inside the folder.

    (Note that I am likely using a different version of the SDK since the name of directory variable being used is slightly different for me (COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR) )

      

    Thanks

    ki