I measure 184 uA of current during WFE. I've read in other posts that the nRF52832 should draw about 1.2 uA during WFE.
I've looked over the project settings many times and everything looks correct. I created a very basic firmware to investigate
this issue, which is posted below. Any help is greatly appreciated.
Nordic SDK: 15.3.0
SES v4.22
Hardware is nRF52 DK
Preprocessor definitions:
NO_FPU_ENABLE
FLOAT_ABI_SOFT
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
NRF52
NRF52832_XXAA
NRF52_PAN_74
Code:
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "nrf.h"
#include "nrf_delay.h"
#include "nrf_gpio.h"
#define LED_1 17
void clocks_start( void )
{
// Start HFCLK and wait for it to start.
NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK->TASKS_HFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
nrf_delay_ms(1);
}
void gpio_init( void )
{
nrf_gpio_cfg_output(LED_1);
}
int main(void)
{
clocks_start();
gpio_init();
while (true)
{
nrf_delay_ms(2000);
__WFE();
}
}