PSoC Creator 4.2 is being used to write a BLE test application for a CYBLE-416045-02 in order to try to understand the control of the BLE on the PSoC 6.
The basic test application framework for controlling actions and observing responses is working well. To add BLE funcitonality, the ce22046_gatt_in example was modified to run only on the CM4 core and checked out well, using another CYBLE unit to run the gatt_out application. The the BLE component in the gatt_out example was copied and then pasted into the the new test application. When this application is compiled it produces the error:
Build error: 'CY_BLE_GATTC_COUNT' undeclared here in cy_ble_custom.h
... relevant cy_le_custom.h code section producing the error:
/** Structure with discovered attributes information of Custom Service Descriptors */
/** Custom Descriptor handle */
/** Custom Descriptor 128 bit UUID */
const void *uuid;
/** UUID Format - 16-bit (0x01) or 128-bit (0x02) */
The CY_BLE_GATTC_COUNT is defined in cy_ble_gatt.h:
#define CY_BLE_GATTC_COUNT (CY_BLE_CONFIG_GATTC_COUNT)
The CY_BLE_CONFIG_GATTC_COUNT is defined in BLE_config.h:
/** The number of BLE connections (client). */
#define CY_BLE_CONFIG_GATTC_COUNT (0x01u)
So why is the compiler producing the compile error? Because of this error I cannot proceed with the project.
Attached is a zip file with the relevant generated files.
A second attachment is the archive for the gatt_out example modified to run completely on the CM4 core. The is working properly. This is the project from which the BLE component was copied to paste into the test application.