BLE_HID_CySmart_Dongle Example Project in CY5682 Installer Rev *B Does Not Compile When Upgraded to PSoC® Creator™ 3.2 – KBA97912

Version: **

 

Question: The BLE_HID_CySmart_Dongle example project available in CY5682 PRoC™ BLE Touch Mouse Reference Design Kit (RDK) installer Rev *B does not compile when upgraded to PSoC® Creator™ 3.2. How do you fix this problem?

 

Answer:


The BLE_HID_CySmart_Dongle example project available in CY5682 RDK enables the BLE Dongle to be used with the CySmart PC tool.

BLE Component V2.0, available as part of PSoC Creator 3.2, supports the “signed write” feature, which is enabled by default by using the macro “ATT_SIGNED_WRITE_SUPPORT”. When the existing BLE_HID_CySmart_Dongle project (built with PSoC Creator 3.1) is upgraded to PSoC Creator 3.2, this new macro causes the following compilation error in the project:

.\CySmt_InterfaceModule\CySmt_protocol.c:299:12: error: 'Cmd_Signed_Write_Without_Response_Api' undeclared here (not in a function)

0, Cmd_Signed_Write_Without_Response_Api},

To remove the compilation error, change the CySmt_CommandLayer.h file line number “142” as follows:

From

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

//CYBLE_API_RESULT_T Cmd_Signed_Write_Without_Response_Api(Command_Format *currentCmd);

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

To

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

#ifdef ATT_SIGNED_WRITE_SUPPORT

CYBLE_API_RESULT_T Cmd_Signed_Write_Without_Response_Api(Command_Format *currentCmd);

#endif /* ATT_SIGNED_WRITE_SUPPORT */

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