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

nrf_mtx.h: No such file or directory (required by "nrf_pwr_mgmt.h" )

Hello,

I have included nrf_pwr_mgmt.h to the gpiote_pca10040 SES example to able to run  "nrf_pwr_mgmt_init();" function. 

I have added nrf_pwr_mgmt.c file under the nRF_Libraries and this lines to the sdk_config file, but I still get nrf_mtx.h: No such file or directory Error and I couldn't find how to add it by sdkConfig. 

1-) How can i solve this specific problem ? 

2-) How do you follow all these add/remove things, is there any automatic wizard to create all these projects?

// <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
//==========================================================
#ifndef NRF_PWR_MGMT_ENABLED
#define NRF_PWR_MGMT_ENABLED 1
#endif

Related