I got a nRF51822 based module and I loaded a slightly modified application based on "ble_app_beacon" example in nRF51 SDK via SWD interface using J-Link. The code has been pasted in this link http://pastebin.com/7FSE3HzA, which was same to the original code except I used the internal RC oscillator, enabled by
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION, false);
in the main function. However, I was measuring the background current draw of ~4mA between BLE advertising events when the device was on 3.3V battery. I calibrated the current sensor with known 30uA and 3mA current sources, and the results agreed with the calibration values. It confused me because:
- I was not using any peripheral and on-board debugger. It was a bare board with only nRF51822 module and a couple of header pins on it.
- According to this link, using the internal RC oscillator calibrated every 4 s should only add up ~ 10uA current. The 4 mA current was way off.
I am just wondering if it is something inherent to the firmware, or it is more likely otherwise (e.g., board, testing, etc.).