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

Adding ANT+ bpwr profile to ble_ant_app_hrm_pca10040_S332 example and removing ANT+ hrm

SDK: 14.2

64-bit Segger Studio 3.34b

PCA10040 Rev. 1.2.4.

64bit Windows 10

SD: S332

I'm trying to add the bpwr Tx profile to the ble_ant_app_hrm_pca10040_S332  example. I've first compiled the ble_ant_app_hrm_pca10040_S332  succesfully, before changing the sdk_config and project files to include the bpwr sdk_config and project configurations. I've removed most of the ANT+ hrm receiver and replaced it with the bpwr code from the ANT+ examples. When I compile, the compilation fails for all files due to the following reason:

-target arm-none-eabi -nostdinc -isystemC:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 3.34b/include -isystemC:/Users/name/AppData/Local/SEGGER/SEGGER Embedded Studio/v3/packages/include -I../config 
-I../../components 
-I../../components/ant/ant_channel_config 
-I../../components/ant/ant_key_manager 
-I../../components/ant/ant_key_manager/config 
-I../../components/ant/ant_profiles/ant_bpwr 
-I../../components/ant/ant_profiles/ant_bpwr/pages 
-I../../components/ant/ant_profiles/ant_bpwr/simulator 
-I../../components/ant/ant_profiles/ant_bpwr/utils 
-I../../components/ant/ant_profiles/ant_common/pages 
-I../../components/ant/ant_state_indicator 
-I../../components/boards 
-I../../components/device 
-I../../components/ble/ble_advertising 
-I../../components/ble/ble_services/ble_bas 
-I../../components/ble/ble_services/ble_dis 
-I../../components/ble/ble_services/ble_hrs 
-I../../components/ble/common 
-I../../components/ble/nrf_ble_gatt 
-I../../components/ble/peer_manager 
-I../../components/boards 
-I../../components/device 
-I../../components/drivers_nrf/common 
-I../../components/drivers_nrf/delay 
-I../../components/drivers_nrf/gpiote 
-I../../components/drivers_nrf/hal 
-I../../components/drivers_nrf/uart 
-I../../components/libraries/atomic 
-I../../components/libraries/balloc 
-I../../components/libraries/bsp 
-I../../components/libraries/atomic_fifo 
-I../../components/libraries/button 
-I../../components/libraries/experimental_log 
-I../../components/libraries/experimental_log/src 
-I../../components/libraries/crc16 
-I../../components/libraries/experimental_memobj 
-I../../components/libraries/experimental_section_vars 
-I../../components/libraries/hardfault 
-I../../components/libraries/hardfault/nrf52 
-I../../components/libraries/mutex 
-I../../components/libraries/fds 
-I../../components/libraries/fstorage 
-I../../components/libraries/mutex 
-I../../components/libraries/pwr_mgmt 
-I../../components/libraries/scheduler 
-I../../components/libraries/sensorsim 
-I../../components/libraries/strerror 
-I../../components/libraries/timer 
-I../../components/libraries/util 
-I../../components/softdevice/common 
-I../../components/softdevice/s332/headers 
-I../../components/softdevice/s332/headers/nrf52 
-I../../components/toolchain 
-I../../components/toolchain/cmsis/include 
-I../../external/fprintf 
-I../../external/segger_rtt 
-I../config -D__SIZEOF_WCHAR_T=4 -D__ARM_ARCH_7EM__ -D__SES_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__SES_VERSION=33402 -DDEBUG -D DEBUG_NRF -DANT_STACK_SUPPORT_REQD -DBOARD_PCA10040 -DCONFIG_GPIO_AS_PINRESET -DFLOAT_ABI_HARD -DINITIALIZE_USER_SECTIONS -DNO_VTOR_CONFIG -DNRF52 -DNRF52832_XXAA -DNRF52_PAN_74 -DNRF_SD_BLE_API_VERSION=5 -DS332 -DSOFTDEVICE_PRESENT -DSWI_DISABLE0 -mcpu=cortex-m4 -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -x c -std=gnu99 -working-directory=E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/ses E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/main.c

The compiler gives the following output for the compilation of main.c:

Parsing E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/main.c
  -target arm-none-eabi -nostdinc -isystemC:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 3.34b/include -isystemC:/Users/name/AppData/Local/SEGGER/SEGGER Embedded Studio/v3/packages/include 
-I../config 
-I../../components 
-I../../components/ant/ant_channel_config 
-I../../components/ant/ant_key_manager 
-I../../components/ant/ant_key_manager/config 
-I../../components/ant/ant_profiles/ant_bpwr 
-I../../components/ant/ant_profiles/ant_bpwr/pages 
-I../../components/ant/ant_profiles/ant_bpwr/simulator 
-I../../components/ant/ant_profiles/ant_bpwr/utils 
-I../../components/ant/ant_profiles/ant_common/pages 
-I../../components/ant/ant_state_indicator 
-I../../components/boards 
-I../../components/device 
-I../../components/ble/ble_advertising 
-I../../components/ble/ble_services/ble_bas 
-I../../components/ble/ble_services/ble_dis 
-I../../components/ble/ble_services/ble_hrs 
-I../../components/ble/common 
-I../../components/ble/nrf_ble_gatt 
-I../../components/ble/peer_manager 
-I../../components/boards 
-I../../components/device 
-I../../components/drivers_nrf/common 
-I../../components/drivers_nrf/delay 
-I../../components/drivers_nrf/gpiote 
-I../../components/drivers_nrf/hal 
-I../../components/drivers_nrf/uart 
-I../../components/libraries/atomic 
-I../../components/libraries/balloc 
-I../../components/libraries/bsp 
-I../../components/libraries/atomic_fifo 
-I../../components/libraries/button 
-I../../components/libraries/experimental_log 
-I../../components/libraries/experimental_log/src 
-I../../components/libraries/crc16 
-I../../components/libraries/experimental_memobj 
-I../../components/libraries/experimental_section_vars 
-I../../components/libraries/hardfault 
-I../../components/libraries/hardfault/nrf52 
-I../../components/libraries/mutex 
-I../../components/libraries/fds 
-I../../components/libraries/fstorage 
-I../../components/libraries/mutex 
-I../../components/libraries/pwr_mgmt 
-I../../components/libraries/scheduler 
-I../../components/libraries/sensorsim 
-I../../components/libraries/strerror 
-I../../components/libraries/timer 
-I../../components/libraries/util 
-I../../components/softdevice/common 
-I../../components/softdevice/s332/headers 
-I../../components/softdevice/s332/headers/nrf52 
-I../../components/toolchain 
-I../../components/toolchain/cmsis/include 
-I../../external/fprintf 
-I../../external/segger_rtt 
-I../config -D__SIZEOF_WCHAR_T=4 -D__ARM_ARCH_7EM__ -D__SES_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__SES_VERSION=33402 -DDEBUG -D DEBUG_NRF -DANT_STACK_SUPPORT_REQD -DBOARD_PCA10040 -DCONFIG_GPIO_AS_PINRESET -DFLOAT_ABI_HARD -DINITIALIZE_USER_SECTIONS -DNO_VTOR_CONFIG -DNRF52 -DNRF52832_XXAA -DNRF52_PAN_74 -DNRF_SD_BLE_API_VERSION=5 -DS332 -DSOFTDEVICE_PRESENT -DSWI_DISABLE0 -mcpu=cortex-m4 -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -x c -std=gnu99 -working-directory=E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/ses E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/main.c
  unknown register name 'vfpcc' in asm
  comparison of constant 64 with expression of type 'IRQn_Type' is always true
  'ant_hrm.h' file not found

The transcript output reports the following error on multiple files:

can't delete E:/nRF/nRF5_SDK_14.2/ble_ant_app_hrm/ses/Output/ble_ant_app_hrm_pca10040_s332 Debug/Obj/nrf_pwr_mgmt.asm

I found this post which has the same vfpcc error https://devzone.nordicsemi.com/f/nordic-q-a/24806/compiler-error-when-migrating-to-ses-3-and-sdk14 but this is already solved in SDK 14.2, as the app_util.h already has the modification.

I'm not sure why the compilation of main.c also fails because of not being able to find ant_hrm.h, as I've removed that from the project files, sdk_config and the main.c includes etc.

I did move the project from the dephts of the multiprotocol examples to the top of the SDK14.2 files if someone tries to compile the added project with S332 and SDK14.2

ble_ant_app_hrm.zip

I think it's probably a very simple mistake I've made during copying, but I can't find it. So any help would be greatly appreciated

Parents Reply Children
No Data
Related