Abnormal power consumption is observed after using sd_temp_get to retrieve the MCU temperature on the nrf52840.
**SDK Ver: SDK17
**Source Code:
temperature.c
float get_mcu_temperature(void)
{
float temperature = 0.0f;
int32_t temp;
sd_temp_get(&temp);
temperature = (float)temp/4.0f;
return temperature;
//return (temp*((float)0.25));
}
main.c
mcu_adc_temperature = get_mcu_temperature();
sd_clock_hfclk_release(); /*TODO,测试是否增加时钟释放,可以降低功耗*/
**power data: