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.

MSP432 with cc2650 module pack: add new characteristic for led

Other Parts Discussed in Thread: SYSBIOS, CC2650

Hi!

Right now I'm trying to learn on adding characteristic on the LED. I followed steps from link below:

software-dl.ti.com/.../ble_snp_sap_intro.html

However, I got error.

**** Build of configuration Debug for project tirtos_builds_MSP_EXP432P401R_release_ccs ****

@ccs/utils/bin/gmake -k all

making ../src/sysbios/sysbios.aem4f ...
gmake[1]: Entering directory '@workspace/tirtos_builds_MSP_EXP432P401R_release_ccs/src/sysbios'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '@workspace/tirtos_builds_MSP_EXP432P401R_release_ccs/src/sysbios'
gmake[1]: Nothing to be done for 'configPkg/linker.cmd'.
making ../src/sysbios/sysbios.aem4f ...
gmake[2]: Nothing to be done for 'all'.

**** Build Finished ****

**** Build of configuration Debug for project project_zero_MSP_EXP432P401R_tirtos_ccs ****

@ccs/utils/bin/gmake -k all

Building file: "../project_zero.c"
Invoking: ARM Compiler
"@ccs/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="@workspace/project_zero_MSP_EXP432P401R_tirtos_ccs" --include_path="@ti-rex-content/simplelink_msp432_sdk_bluetooth_plugin_1_25_00_42/source" --include_path="@ti-rex-content/simplelink_msp432p4_sdk_1_60_00_12/source/third_party/CMSIS/Include" --include_path="@ti-rex-content/simplelink_msp432p4_sdk_1_60_00_12/source/ti/posix/ccs" --include_path="@ccs/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" --advice:power=none --define=__MSP432P401R__ --define=DeviceFamily_MSP432P401x -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="project_zero.d_raw" --diag_error=66 --set_error_limit=10 --cmd_file="@workspace/tirtos_builds_MSP_EXP432P401R_release_ccs/Debug/configPkg/compiler.opt" "../project_zero.c"

>> Compilation failure
subdir_rules.mk:28: recipe for target 'project_zero.obj' failed
"../project_zero.c", line 815: warning #225-D: function "SENSOR_ID_CREATE" declared implicitly
"../project_zero.c", line 815: error #20: identifier "SENSOR_VALUE" is undefined
1 error detected in the compilation of "../project_zero.c".
gmake: *** [project_zero.obj] Error 1
Building file: "../Profile/led_service.c"
Invoking: ARM Compiler
"@ccs/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="@workspace/project_zero_MSP_EXP432P401R_tirtos_ccs" --include_path="@ti-rex-content/simplelink_msp432_sdk_bluetooth_plugin_1_25_00_42/source" --include_path="@ti-rex-content/simplelink_msp432p4_sdk_1_60_00_12/source/third_party/CMSIS/Include" --include_path="@ti-rex-content/simplelink_msp432p4_sdk_1_60_00_12/source/ti/posix/ccs" --include_path="@ccs/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" --advice:power=none --define=__MSP432P401R__ --define=DeviceFamily_MSP432P401x -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="Profile/led_service.d_raw" --obj_directory="Profile" --diag_error=66 --set_error_limit=10 --cmd_file="@workspace/tirtos_builds_MSP_EXP432P401R_release_ccs/Debug/configPkg/compiler.opt" "../Profile/led_service.c"

>> Compilation failure
Profile/subdir_rules.mk:21: recipe for target 'Profile/led_service.obj' failed
"../Profile/led_service.c", line 246: warning #225-D: function "Log_info2" declared implicitly
"../Profile/led_service.c", line 246: error #20: identifier "IArg" is undefined
"../Profile/led_service.c", line 246: error #18: expected a ")"
"../Profile/led_service.c", line 293: warning #225-D: function "Log_info2" declared implicitly
"../Profile/led_service.c", line 293: error #20: identifier "IArg" is undefined
"../Profile/led_service.c", line 293: error #18: expected a ")"
"../Profile/led_service.c", line 350: warning #225-D: function "SENSOR_ID_CHARTYPE" declared implicitly
"../Profile/led_service.c", line 352: error #20: identifier "SENSOR_VALUE" is undefined
"../Profile/led_service.c", line 356: warning #225-D: function "Log_info3" declared implicitly
"../Profile/led_service.c", line 357: error #20: identifier "IArg" is undefined
"../Profile/led_service.c", line 357: error #18: expected a ")"
"../Profile/led_service.c", line 418: warning #225-D: function "SENSOR_ID_CREATE" declared implicitly
"../Profile/led_service.c", line 418: error #20: identifier "SENSOR_VALUE" is undefined
"../Profile/led_service.c", line 430: warning #225-D: function "SENSOR_ID_CHARTYPE" declared implicitly
"../Profile/led_service.c", line 432: error #20: identifier "SENSOR_VALUE" is undefined
"../Profile/led_service.c", line 437: warning #225-D: function "SENSOR_ID_CREATE" declared implicitly
"../Profile/led_service.c", line 440: warning #225-D: function "Log_info3" declared implicitly
"../Profile/led_service.c", line 441: error #20: identifier "IArg" is undefined
Error limit reached.
10 errors detected in the compilation of "../Profile/led_service.c".
Compilation terminated.
gmake: *** [Profile/led_service.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Janna,

    Let me look into this a bit and get back to you. I expect to get back to you Monday or Tuesday, but it may be sooner.
  • Janna,

    Actually, can you please actually use this SimpleLink Academy to interface the CC2650 with the MSP432.

    dev.ti.com/.../

    {EDIT} Looking into this a bit more, it seems you were using the same stuff. I'm trying to look more into this as I go as well and will keep you updated. 

  • Janna,

    Looking through the error log, it looks like there is a number of syntax errors that you've run into as well as I believe you may have added your own code. You would have to share that so we can look deeper into it.

    This simplelink academy as well as the new project zero code included in the MSP432BLE Plugin 1.25 has the ability to already control the three LEDs.

    dev.ti.com/.../
  • Janna,

    After asking around a little bit as well, it actually looks like that the SimpleLink Academy that you linked is out of date and in-fact, not the same as what I linked above. i'm not sure how you got a hold of that lab. Where did you find it? For instance, in the plugin, we no longer have the macro SENSORS_ID_CREATE, we call it PROFILE_ID_CREATE. Since this was written to an old version of the plugin, that lab is no longer valid. Please use the new lab with the new plugin, which I've linked above and again here: dev.ti.com/.../
  • I can't find example to change led behavior on the website you gave.
  • Janna,

    I realize that. Unfortunately we don't have updated documentation currently that walks through that that I'm aware of right now. The best place to move forward is to use the old one that you referred to, but when you're given code that produces errors like SENSORS_ID_CREATE, name it PROFILE_ID_CREATE instead. There was some name changes to macros and variables that the base code underwent and this lab didn't get updated which is why this lab is no longer included in the most up to date training.

    #define LS_LED0_ID              SENSOR_ID_CREATE(LED_CHAR0,SENSOR_VALUE)
    #define LS_LED1_ID              SENSOR_ID_CREATE(LED_CHAR1,SENSOR_VALUE)
    #define LS_LED2_ID              SENSOR_ID_CREATE(LED_CHAR2,SENSOR_VALUE)

    Could be changed to

    #define LS_LED0_ID              PROFILE_ID_CREATE(LED_CHAR0,SENSOR_VALUE)
    #define LS_LED1_ID              PROFILE_ID_CREATE(LED_CHAR1,SENSOR_VALUE)
    #define LS_LED2_ID              PROFILE_ID_CREATE(LED_CHAR2,SENSOR_VALUE)
    

    and so on. 

    Also, you could maybe look into the simple_peripheral example to see more examples of characteristics. 

**Attention** This is a public forum