This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Does nRF51_SDK_8.0.0 work with gcc ?

Hi,

I just updated to nRF51_SDK_8.0.0_5fc2c3a.zip and try to compile ble_app_hrs example (with S110 and DFU) with gcc 4.9. I have couple of problems, first is that some of the header files tries to find the headers from component folder and some from Include folder: For example: nrf.h: "#include "../../Include/device/compiler_abstraction.h"

Also I find that there are some variables that are not #define:ed, like: ./sdk/components/libraries/bootloader_dfu/dfu_app_handler.c: In function 'bootloader_start': ./sdk/components/libraries/bootloader_dfu/dfu_app_handler.c:131:42: error: 'BLE_GATTS_SYS_ATTR_FLAG_SYS_SRVCS' undeclared (first use in this function) BLE_GATTS_SYS_ATTR_FLAG_SYS_SRVCS);

Compiling file: device_manager_peripheral.c ./sdk/components/ble/device_manager/device_manager_peripheral.c: In function 'gatts_context_store': ./sdk/components/ble/device_manager/device_manager_peripheral.c:1035:36: error: 'BLE_GATTS_SYS_ATTR_FLAG_SYS_SRVCS' undeclared (first use in this function) uint32_t attr_flags = BLE_GATTS_SYS_ATTR_FLAG_SYS_SRVCS | BLE_GATTS_SYS_ATTR_FLAG_USR_SRVCS;

And I am also wondering why there are some references to S310 even I am using S110 ?

In file included from c:\users\juha\git\identearfirmware\sdk\components\softdevice\s130\headers\ble_gap.h:48:0,

Is there some problems with my SDK installation ?

Juha

Related