Hi,
I had an idea for a hobby project and that's how i got into the whole MCU world. Please keep in mind, that i am fairly new.
I bought an evaluation/development board for a UWB sensor (https://www.qorvo.com/products/p/DWM1001-DEV#overview), that has a nRF52832 at it's core.
I am using Segger Embedded Studio 4.12 (SES), with which I got the examples to work on the board (with some minor difficulties).
(Examples if relevant: https://github.com/Decawave/dwm1001-examples/tree/master/examples, ss_twr_init is the one I am having trouble with)
Now I want to change some minor stuff in the example. I want to print out a timestamp. In arduino IDE there is the millis() function, so I googled if there is some sort of easy equivalent, but it seems not. I got to this post: Milliseconds since startup? and read and googled a bit more and ended up on this guide: nRF5 SDK Application Timer Tutorial .
In the section "Add required files and includes" there isn't much explanation on how to add the app_timer.c to the project. In SES I just right clicked on the nRF_libraries folder in the ss_twr_init example project and clicked "add existing file", and chose the app_timer.c from the nRF SDK 17.1 zip-file I downloaded. Sadly I am still getting the same errors from before I added the app_timer.c to the project, namely "undefined reference to 'app_timer_init'" and "app_timer_cnt_get".
Was this whole "copy from nRF SDK, paste into project"-procedure the right way? Is the error unrelated to the existence of the app_timer.c file in the project?
Thank you!