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

Building ble_ant_app_hrm: unknown field 'accuracy'

Hello,

I'm trying to build the ble_ant_app_hrm (multiprotocol) example, using SDK v14.1.0

Here is the output I get, after running make:

Makefile:216: Cannot find include folder: ../config
Compiling file: app_error_weak.c
Compiling file: app_scheduler.c
Compiling file: app_timer.c
Compiling file: app_util_platform.c
Compiling file: crc16.c
Compiling file: fds.c
Compiling file: nrf_assert.c
Compiling file: nrf_atfifo.c
Compiling file: nrf_balloc.c
Compiling file: nrf_fprintf.c
Compiling file: nrf_fprintf_format.c
Compiling file: nrf_fstorage.c
Compiling file: nrf_fstorage_sd.c
Compiling file: nrf_memobj.c
Compiling file: nrf_pwr_mgmt.c
Compiling file: nrf_section_iter.c
Compiling file: nrf_strerror.c
Compiling file: sdk_mapped_flags.c
Compiling file: sensorsim.c
Compiling file: nrf_drv_common.c
Compiling file: nrf_drv_gpiote.c
Compiling file: nrf_drv_uart.c
Compiling file: ant_channel_config.c
Compiling file: ant_hrm.c
Compiling file: ant_hrm_page_0.c
Compiling file: ant_hrm_page_1.c
Compiling file: ant_hrm_page_2.c
Compiling file: ant_hrm_page_3.c
Compiling file: ant_hrm_page_4.c
Compiling file: ant_key_manager.c
Compiling file: bsp.c
Compiling file: bsp_nfc.c
Compiling file: main.c
Compiling file: SEGGER_RTT.c
Compiling file: SEGGER_RTT_Syscalls_GCC.c
Compiling file: SEGGER_RTT_printf.c
Compiling file: ble_advdata.c
Compiling file: ble_advertising.c
Compiling file: ble_conn_params.c
Compiling file: ble_conn_state.c
Compiling file: ble_srv_common.c
Compiling file: gatt_cache_manager.c
Compiling file: gatts_cache_manager.c
Compiling file: id_manager.c
Compiling file: nrf_ble_gatt.c
Compiling file: peer_data_storage.c
Compiling file: peer_database.c
Compiling file: peer_id.c
Compiling file: peer_manager.c
Compiling file: pm_buffer.c
Compiling file: pm_mutex.c
Compiling file: security_dispatcher.c
Compiling file: security_manager.c
Assembling file: gcc_startup_nrf52.S
Compiling file: system_nrf52.c
Compiling file: ble_bas.c
Compiling file: ble_dis.c
Compiling file: ble_hrs.c
Compiling file: nrf_sdh.c

/home/dev-box/code/c/nrf/nrf-sdk/components/softdevice/common/nrf_sdh.c: In function 'nrf_sdh_enable_request':
/home/dev-box/code/c/nrf/nrf-sdk/components/softdevice/common/nrf_sdh.c:225:9: error: unknown field 'accuracy' specified in initializer
         .accuracy      = NRF_SDH_CLOCK_LF_XTAL_ACCURACY

The way I've set up my project, is by copying main.c, the *.ld file, and the sdk_config.h all from the example I'm interested in using as my starting point. So my project structure is as follow:

app/
..../ble_ant_app_hrm_gcc_nrf52.ld
..../config <------- Addedd to INC_FOLDERS section of Makefile.
........sdk_config.h
....main.c
....Makefile

The Makefile itself contains references to the SDK files, as provided by Nordic. I just set the path variables in the Makefile to point to the SDK and to my project directory.

Finally, I plan to use this softdevice (S332) for the nRF52832, with the intention of having BLE peripheral functionality and ANT. Is this fine?

Thank you.

Parents Reply Children
No Data
Related