Hello. Using SDK16 on my NRF52840 board
I'm stuck here on my product development - trying to make my device have longer "sleep" battery life.
when I call a simple function that tries to sleep the SD:
void bluetooth_sleep(void)
{
uint32_t err_code;
// If connected, disconnect
if (m_conn_handle != BLE_CONN_HANDLE_INVALID)
{
err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);}
// Stop advertising
//if (err_code != NRF_SUCCESS) {sprintf(outputString,">>ble adv stop failed\r\n");SEGGER_RTT_WriteString(0,outputString);}
//embeddedcentric.com/.../
NRF_LOG_INFO(">>attempting power management run....."); NRF_LOG_FLUSH();
nrf_pwr_mgmt_run(); // this causes an error...why?
//err_code = sd_ble_gap_adv_stop(m_conn_handle); // this causes an error...also so it is currently commented out
}
I assume that there is something wrong in my sdk_config.h but I don't know what.
Has anyone else seen this problem?

