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

undefined reference to `nrf_pwr_mgmt_init

hello,

       i am using the Nrf52840 , SDK version 15 with segger embedded studio.

i am developing simple application but i got this issue. i already add the reference in the following location 

project-> edit option -> common-> Preprocessor-> user includes dic.

i already used some  custom library which is working fine but not power management  library.

.c file is also included. the error is coming from the linker 

here is the output 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Building ‘SmartID’ from solution ‘SmartID’ in configuration ‘Debug’
1> 'Output/SmartID Debug/Obj/thumb_crt0.o' is up to date
2> 'Output/SmartID Debug/Obj/main.o' is up to date
3> 'Output/SmartID Debug/Obj/boards.o' is up to date
1> 'Output/SmartID Debug/Obj/app_error_handler_gcc.o' is up to date
2> 'Output/SmartID Debug/Obj/app_error_weak.o' is up to date
1> 'Output/SmartID Debug/Obj/app_error.o' is up to date
4> 'Output/SmartID Debug/Obj/app_timer.o' is up to date
1> 'Output/SmartID Debug/Obj/app_util_platform.o' is up to date
2> 'Output/SmartID Debug/Obj/ble_conn_state.o' is up to date
1> 'Output/SmartID Debug/Obj/nrf_assert.o' is up to date
3> 'Output/SmartID Debug/Obj/nrf_atflags.o' is up to date
1> 'Output/SmartID Debug/Obj/nrf_atomic.o' is up to date
2> 'Output/SmartID Debug/Obj/nrf_balloc.o' is up to date
1> 'Output/SmartID Debug/Obj/nrf_memobj.o' is up to date
1> 'Output/SmartID Debug/Obj/nrf_section_iter.o' is up to date
2> 'Output/SmartID Debug/Obj/nrf_strerror.o' is up to date
1> 'Output/SmartID Debug/Obj/nrfx_twim.o' is up to date
3> 'Output/SmartID Debug/Obj/nrf_pwr_mgmt.o' is up to date
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

thank you