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/LAUNCHXL-CC1310: Using CC1310 Launchpad code on reference designed CC1310 4xd RSM package chip

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310, CC2650

Tool/software: Code Composer Studio

Hi, I'm trying to just compile and run some example code that's build for the CC1310 launchpad on the reference design 4x4 RSM provided by TI. I followed

"e2e.ti.com/.../2192653

so far by replacing CC1310_LAUNCHXL_TIRTOS.cmd, .c, and .h with their CC1310DK_4XD.cmd, .c, and .h parts. Then i changed some path files

From: #include <inc/hw_memmap.h>
To: #include <ti/devices/cc13x0/inc/hw_memmap.h>

From: #include <driverlib/ioc.h>
To: #include <ti/devices/cc13x0/driverlib/ioc.h>
and those works just fine. but now i'm faced with inside CC1310DK_4XD.c

Description Resource Path Location Type
#1965 cannot open source file "ti/mw/Display.h" CC1310DK_4XD.c /CC1310_4XD_empty_tester line 311 C/C++ Problem

i tried changing path similar to the ones above but same error

I'm using CCS 7.2.0, with simpleLink CC13x0 SDK1_60_00_21 along with tirtos_builds_CC1310_LAUNCHXL_release_ccs file including tirtos_cc13xx_cc26xx_2_21_00_06

is there a more detail instruction i can follow so i can modify my CC1310 Launchpad setting to adapt to others form factors such as the 4XD,5XD,7XD, etc?

Below is also my build log .


**** Build of configuration Debug for project CC1310_4XD_empty_tester ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 12 all -O
'Building file: ../CC1310DK_4XD.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/Users/jjun/workspace_v7/CC1310_4XD_empty_tester" --include_path="C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/posix/ccs" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" --define=DeviceFamily_CC13X0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="CC1310DK_4XD.d" --cmd_file="C:/Users/jjun/workspace_v7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/Debug/configPkg/compiler.opt" "../CC1310DK_4XD.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'CC1310DK_4XD.obj' failed
"../CC1310DK_4XD.c", line 311: fatal error #1965: cannot open source file "ti/mw/Display.h"
1 catastrophic error detected in the compilation of "../CC1310DK_4XD.c".
Compilation terminated.
gmake: *** [CC1310DK_4XD.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Thanks in advance.

  • Hi,

    Do you have tirtos_cc13xx_cc26xx_2_21_00_06 installed? If so, you can do the following:

    Project -> Properties -> ARM compiler.
    Add the following path to the --include_path: C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\tidrivers_cc13xx_cc26xx_2_21_00_04\packages

    You will also need to change ti/mw/Display.h to ti/mw/display/Display.h

    Let me know if that helps.


    Regards,
    Toby
  • is there a specific syntax that you are suppose to put it in? i modify the Project -> Properties -> ARM compiler with the line and i don't think i put in correctly. Sorry i'm still pretty new to CCS.
  • Does it look like this?

  • I attached a short tutorial on what I did to build a project for CC1310-4XD.

    Let me know your progress.

    CC1310 4XD.pdf

  • Thank you for making that, can you please make one for CC1310 Launchpad TI-RTOS empty example as well?
  • I added the PATH and i have way less error but there is still one for PINCC26XX.h

    i tried modifying the include statement inside PINCC26XX.h from <driverlib/ioc.h> to ti/devices/cc26x0/driverlib/ioc.h but no luck there.

    **** Build of configuration Debug for project CC1310_4XD_empty_tester ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 12 all -O
    'Building file: ../CC1310DK_4XD.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages" --include_path="C:/Users/jjun/workspace_v7/CC1310_4XD_empty_tester" --include_path="C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/posix/ccs" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" --define=DeviceFamily_CC13X0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="CC1310DK_4XD.d" --cmd_file="C:/Users/jjun/workspace_v7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/Debug/configPkg/compiler.opt" "../CC1310DK_4XD.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'CC1310DK_4XD.obj' failed
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages/ti/drivers/pin/PINCC26XX.h", line 53: fatal error #1965: cannot open source file "driverlib/ioc.h"
    1 catastrophic error detected in the compilation of "../CC1310DK_4XD.c".
    Compilation terminated.
    gmake: *** [CC1310DK_4XD.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • Apologies, I forgot that you wanted to transition from LAUNCH-XL.

    The process is nearly the same.

    In "Resource Explorer", instead of selecting "CC1310 Development Kit", select "CC1310 Launchpad" instead. I have tried it this morning, and it builds just as well.

  • So is there anyway to use the code i made using SimpleLink CC13x0 SDK Launchpad examples on the 4x4 RSM package or i would have to make some modification on top of the driver examples ?

  • From what I have tried, it seems that more modifications are needed if you want to use CC13x0 SDK Launchpad examples on the 4x4 RSM package.

    The easiest way would be with the TI-RTOS launchpad examples from resource explorer.


    If you already have application code developed using the CC13x0 SDK, it may be easier to:

    migrate that code over to a fresh TI-RTOS example project (using “Resource Explorer” -> “Software” -> “TI-RTOS for CC2650” -> “Development Tools” -> “CC1310 Launchpad” -> “Driver Examples”) and then copy over the 4x4 specific files,

    rather than:

    trying to copy the 4x4 specific files to your SDK project.
  • Thanks Toby, I'll do that instead.