Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using nrf BLE with DWM1001-DEV

I'm using DWM1001-DEV, which has UWB and nrf BLE features, and my ultimate goal is replicating Apple's Airtag with DWM1001-DEV. For this, I have to ensure the power consumption is small, and a coin battery should be enough for a year just like the Airtag. Therefore, I thought having the UWB feature sleep until woken up would be a good strategy. I thought I'd have the nrf listen to beacons at all times, and only activate the UWB when needed.

I downloaded DWM1001-DEV's example folder from https://github.com/Decawave/dwm1001-examples that includes the 14.2.0 nrf SDK folder as well. I'm using the example ss_twr_resp, and I'm trying to integrate BLE scanning into the board. However, I'm having some issues. 

I copied the main file source code from the ble_app_beacon example from nrf SDK to a new file in ss_twr_resp example to integrate BLE with UWB and give a demonstration (I haven't advanced to the scanning yet just trying to get BLE and UWB working together). I added all necessary files through SEGGER using "add existing file". Furthermore, for every file I added, I also went to the options of the project, into preprocessor, and added the folder path to "User included Directories". When I build the project, I get the following:

Mainly, I see two errors. Error 1 indicates there are two definitions of specific functions. I'm quite sure I did not define them twice. However, I don't know how to approach this problem.

Error 2 indicates undefined references, which are functions that cannot be found. Although I included the necessary file in SEGGER through "add existing file", and preprocessing, I still get this error (for instance app_timer.h is added, but app_timer_init() still is undefined, according to SEGGER). This is how I solved the same other errors I was getting, but these ones seem to persist.

Can anyone help me with this issue, please? I'd appreciate any comments or suggestions. Let me know if you need any other information. I hope my question was clear.

Related