I am developing my code in a custom nrf52832 breakout board. My code was modified from the example "ble_app_uart".
I find a high current issue with UART. The current is around 58uA as I expected after power startup with RX and TX pins
connected to a USB to TTL dongle.
But if the Rx and Tx pins are not connected and power up nRF52832, the current goes to 2.24mA. At this moment if I connect
the Rx and Tx pins, the current will go to 58uA.
It seems that nRF52832 can`t go into sleep on mode. But I bad disable UART in my code as the following:
#ifndef DEBUG_MODE
/* Disable UART */
// NRF_UART0->ENABLE = 0;
app_uart_close();
nrf_gpio_cfg_default(6);
nrf_gpio_cfg_default(8);
nrf_gpio_cfg_default(5);
nrf_gpio_cfg_default(7);
#endif
In order to go into sleep on mode, my code is as following:
/**@brief Function for placing the application in low power state while waiting for events.
*/
static void power_manage(void)
{
uint32_t err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
}
/**
The detail of my software and hardware are as following:
1. SDK 12.2.0
2. Softdevice S132 3.0.0
3. IDE: Keil V5.25.2.0
4. nRF52832 chip version: CIAAB0
5. Ble advertising interval: 1000ms