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

SDK 12.2 build errors using BDS

Using SDK 12.2 and BDS plugin version 1.2.2 Module nrf52832_xxaa

  • Copied plugin output to nRF5_SDK_12.2.0/examples/ble_peripheral/experimental_bluetoothds_template/
  • cd pca10040/s132/armgcc/
  • make

Compiling file: softdevice_handler.c

../../../service_if.c:5:24: fatal error: app_trace.h: No such file or directory compilation terminated.

../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_service_if.c.o' failed

make: *** [_build/nrf52832_xxaa_service_if.c.o] Error 1

  • I attempted to add the APPL_LOG define, as mentioned in the Readme but that didn't help. There seems to be some references to APPL_LOG but nothing hopeful.

$ ag APPL_LOG examples/ble_peripheral/ble_app_template/main.c

301: APPL_LOG("[APPL]: charact written with value %s. \r\n", p_evt->params.char_xx.value.p_str);

examples/ble_peripheral/experimental_ble_app_buttonless_dfu/main.c

338: APPL_LOG("[APPL]: charact written with value %s. \r\n", p_evt->params.char_xx.value.p_str);

examples/ble_peripheral/experimental_bluetoothds_template/Readme.txt

23: #define APPL_LOG app_trace_log

33: APPL_LOG("[APPL]: charact written with value %s. \r\n", p_evt->params.rx.value.p_data);

I'm not entirely clear what its supposed to be set to.

[Edit]

  • Added the following:

#define NRF_LOG_MODULE_NAME "SERVICE"

#include "nrf_log.h"

#include "nrf_log_ctrl.h"

#define app_trace_log NRF_LOG_DEBUG

  • Next had to rename 'float_t' to 'float'
  • Added the characteristic .c file to the Makefile
  • There doesn't appear to be any bds_float_encode/decode

[Edit 2]

  • Implemented bds_float_encode/decode functions.
  • Project builds, however after programming I am flooded by APP_ERROR:ERROR:Fatal on the serial port...

[Edit 3]

My APP_ERROR:ERROR:Fatal messages seem related to having too many characteristics.

devzone.nordicsemi.com/.../

devzone.nordicsemi.com/.../

devzone.nordicsemi.com/.../

Parents
  • Hi jcormier,

    The last official release of BDS was for SDK 11. It’s to some degree also “compatible” with SDK 12, but I would generally recommend using SDK 11 if you plan to use BDS. There are some bugs in the BDS plugin, and we are working on updating the BDS plugin to support the latest SDK, but for the moment, you should use SDK 11 if you want to use BDS.

Reply
  • Hi jcormier,

    The last official release of BDS was for SDK 11. It’s to some degree also “compatible” with SDK 12, but I would generally recommend using SDK 11 if you plan to use BDS. There are some bugs in the BDS plugin, and we are working on updating the BDS plugin to support the latest SDK, but for the moment, you should use SDK 11 if you want to use BDS.

Children