My Board PCA10024 (nRF51822 Chip QFAAG0) consumed at least 18mA with external 3V battery. The nRF51822 chip itself consumed only 5uA in sleep mode. What's go wrong? So a real test with coin-cell battery makes no sense. See my question developer.mbed.org/.../ too.
Here is my test program
#include "mbed.h"
#define DEBUG(...) /* nothing */
// Test sleep mode for investigation power consumprtion
// PCA10024
// LED1 - short flash to show program start
// LED2 - should never on
DigitalOut myled1(LED1);
DigitalOut myled2(LED2);
int main()
{
myled1 = 1;
uint32_t i = 0x20FFFF;
while(i--);
{
}
myled1 = 0;
NRF_UART0->POWER = 0;
myled2 = 0;
while(1) {
__NOP();
__SEV();
__WFE();
__WFE();
myled2 = 1;
}
}