Hello,
I am using SES environment with nRF Connect SDK 1.9, SoftDevice S140 and nRF5_SDK_17.1.0 to clone the nrf52-ble-multi-link-multi-role example on Github (https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role/issues) with the idea of using it a a basis for a new development.
The first step I'm trying to do is just testing the ble_aggregator\pca10056\s140\ses\ble_aggregator_pca10056_s140.emProject. I open this project usign SES environment. When I Build the project I get the next error in the compilation of main.c
nrf_ble_qg.h: No such file or directory
I have added the next line in Project\Options\Common\Preprocessor\User Include Directories:
../../../../../../../components/ble/nrf_ble_gq
When I build the Project again there are the next errors:
So it looks like the NRF_BLE_GQ is not enabled.
I have added in the sdk_config.h file the next lines:
// <e> NRF_BLE_GQ_ENABLED - nrf_ble_gq - BLE GATT Queue Module
//==========================================================
#ifndef NRF_BLE_GQ_ENABLED
#define NRF_BLE_GQ_ENABLED 1
#endif
// <o> NRF_BLE_GQ_DATAPOOL_ELEMENT_SIZE - Default size of a single element in the pool of memory objects.
#ifndef NRF_BLE_GQ_DATAPOOL_ELEMENT_SIZE
#define NRF_BLE_GQ_DATAPOOL_ELEMENT_SIZE 20
#endif
// <o> NRF_BLE_GQ_DATAPOOL_ELEMENT_COUNT - Default number of elements in the pool of memory objects.
#ifndef NRF_BLE_GQ_DATAPOOL_ELEMENT_COUNT
#define NRF_BLE_GQ_DATAPOOL_ELEMENT_COUNT 8
#endif
// <o> NRF_BLE_GQ_GATTC_WRITE_MAX_DATA_LEN - Maximal size of the data inside GATTC write request (in bytes).
#ifndef NRF_BLE_GQ_GATTC_WRITE_MAX_DATA_LEN
#define NRF_BLE_GQ_GATTC_WRITE_MAX_DATA_LEN 2
#endif
// <o> NRF_BLE_GQ_GATTS_HVX_MAX_DATA_LEN - Maximal size of the data inside GATTC notification or indication request (in bytes).
#ifndef NRF_BLE_GQ_GATTS_HVX_MAX_DATA_LEN
#define NRF_BLE_GQ_GATTS_HVX_MAX_DATA_LEN 16
#endif
Rebuilding the Project it appears the next error compiling main.c:
‘NRF_BLE_GQ_QUEUE_SIZE’undeclared here (not in a function)
I have added in the sdk_config.h the next lines:
// <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
//==========================================================
#ifndef NRF_QUEUE_ENABLED
#define NRF_QUEUE_ENABLED 1
#endif
#ifndef NRF_BLE_GQ_QUEUE_SIZE
#define NRF_BLE_GQ_QUEUE_SIZE 10
#endif
Rebuilding the Project it appears a new error compiling the main.c file:
'NRF_BLE_GQ_BLE_OBSERVER_PRIO' undeclared here (not in a function); did you mean 'NRF_BLE_ES_BLE_OBSERVER_PRIO'?
And here I have stopped. What I am losing? I though replicating the example should have been easier. Please, any suggestion?
Thank you in advance.
Regards,
Joel