Are any of the freeRTOS examples Power Optimized? I've looked into other related posts but not sure anyone is seeing the same issues I'm seeing. I'm using a Rigado BMD300 and I can't get it to not draw upwards of 1~2mA at idle.
I've added the FPU code and DCDC in the main loop before the intern_softdevice_events_execute(); function call: static void power_manage(void) { __set_FPSCR(__get_FPSCR() & ~(FPU_EXCEPTION_MASK)); (void) __get_FPSCR(); NVIC_ClearPendingIRQ(FPU_IRQn);
uint32_t err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
nrf_pwr_mgmt_run();
}
During 20msec advertising the radio consumes ~2.75mA During 5sec advertising the radio consumes ~1.85mA
I believe the CPU is not shutting down however I cannot track down why. Is it possible the freeRTOS threading is keeping the CPU on? Either the xTimer thread or the Idle Thread? How would I address this?