BLE_Dongle_CySmart Example Project in CY8CKIT-042-BLE Installer Rev *A Does Not Compile When Upgraded to PSoC® Creator™ 3.2 – KBA97686

Version: **

 

Question:

The BLE_Dongle_CySmart example project available in CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit installer Rev *A does not compile when upgraded to PSoC® Creator™ 3.2. How do you fix this problem?

 

Answer:


The BLE_Dongle_CySmart example project available in the CY8CKIT-042-BLE Pioneer Kit 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, and the compile flag “ATT_SIGNED_WRITE_SUPPORT” is enabled by default. When the existing BLE_Dongle_CySmart 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 */

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

This fix will be available in the next revision of the CY8CKIT-042-BLE installer.