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-CC2650: INPIN with Bluetooth Developer Studio

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

Tool/software: Code Composer Studio

Dear Sir or Madam,

In the course of my development of BLE Services for the LaunchPad CC2650 I use the Bluetooth Developer Studio of Bluetooth Inc. with the necessary plugin as well as the BLE Stack 2.2.0.

For my development purposes I would like to use three GPIO as Input with Read and Notificate marked as Mandatory

For this I set INPIN as a property according to the Simple Link Academy tutorial. If I now try to integrate the generated code into the Code Composer Studio, the following error messages appear. These have proven to do with the property INPIN, since the error does not appear with INBUTTON.

"../Application/project_zero.c", line 497: error # 20: identifier "user_DigitalInputService_clockSwiHandler" is undefined
"../Application/project_zero.c", line 1849: error # 20: identifier "Liquid" is undefined
"../Application/project_zero.c", line 1849: error # 167: too few arguments in function call
"../Application/project_zero.c", line 1849: error # 18: expected a ")"
"../Application/project_zero.c", line 1856: error # 167: too few arguments in function call
"../Application/project_zero.c", line 1856: error # 18: expected a ")"
"../Application/project_zero.c", line 1863: error # 167: too few arguments in function call
"../Application/project_zero.c", line 1863: error # 18: expected a ")"

The affected lines are the following automatically created code using the Bluetooth Developer Studio:

switch (pinId)
  {
    case IOID_27:
      // Send message to application that it should update the value of the characteristic from Task context.
      user_enqueueCharDataMsg(APP_MSG_UPDATE_CHARVAL, 0xFFFF,
                              DIGITAL_INPUT_SERVICE_SERV_UUID,
                              Liquid error: TypeError_Liquid error: TypeError_ID,
                              &pinVal, 1);
      break;
    case IOID_28:
      // Send message to application that it should update the value of the characteristic from Task context.
      user_enqueueCharDataMsg(APP_MSG_UPDATE_CHARVAL, 0xFFFF,
                              DIGITAL_INPUT_SERVICE_SERV_UUID,
                              Liquid error: TypeError_Liquid error: TypeError_ID,
                              &pinVal, 1);
      break;
    case IOID_29:
      // Send message to application that it should update the value of the characteristic from Task context.
      user_enqueueCharDataMsg(APP_MSG_UPDATE_CHARVAL, 0xFFFF,
                              DIGITAL_INPUT_SERVICE_SERV_UUID,
                              Liquid error: TypeError_Liquid error: TypeError_ID,
                              &pinVal, 1);
      break;
}

clockParams.arg = DIS_IN1_ID;
  Clock_construct(&dis_IN1_clock,
                  user_DigitalInputService_clockSwiHandler,
                  0,
                  &clockParams);
  clockParams.arg = DIS_IN2_ID;
  Clock_construct(&dis_IN2_clock,
                  user_DigitalInputService_clockSwiHandler,
                  0,
                  &clockParams);
  clockParams.arg = DIS_IN3_ID;
  Clock_construct(&dis_IN3_clock,
                  user_DigitalInputService_clockSwiHandler,
                  0,
                  &clockParams);

Could you please help me? The best thing to do without making any direct changes to the C code is to specify the possible steps in the Bluetooth Developer Studio, if possible. Thank you!

----------------------------

Edit:

If you set the text: Liquid error: TypeError_Liquid error: TypeError_ID, to 1, then there isn't the Syntax error. Therfore i get a Linker Error. user_generic_clockSwiHandler(DATA_SERVICE_SERV_UUID, paramID); had no Declaration.

---------------------------

Edit 2:

Bluetooth Developer Studio INPIN Error.zipBDS Project with Plugin Code Output added

  • M G10,

    Can you share your BDS project so we can reproduce? It looks like there is an error in the plugin or the c-code template is uses.

    Best regards,
    Aslak

  • I have added the files to my above post. Thanks already in advance
  • MG10,

    It was a problem with the template. There will be an update, but not for another couple weeks at least. So to fix it, you can open C:\Program Files (x86)\Bluetooth SIG\Bluetooth Developer Studio\Plugins\Texas Instruments -- Embedded Profiles\project_zero_3_x_bds.c and change line 1624 so it looks like this:

          user_enqueueCharDataMsg(APP_MSG_UPDATE_CHARVAL, 0xFFFF,
                                  {{ pin.service.name | upcase }}_SERV_UUID,
                                  {{ pin.service.nameAbbr | upcase }}_{{ pin.char.name | upcase }}_ID,
                                  &pinVal, 1);

    Basically, there should have been pin. in front of the two variables. Similarly for the non 3_x file, except there it's line 1598.

    Best regards,
    Aslak