This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 disabling UARTs

Hi,

I'm using nRF52840 with two UARTs on SDK15.2.

I made some changes from the post below

https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14/99170#99170

My question is I couldn't bring down the sleep current, and I hunted down to the following lines of code:

ret_code_t ret = nrf_serial_init(&serial_uart, &m_uart0_drv_config, &serial_config);
APP_ERROR_CHECK(ret);                                                         
                                                                                
ret = nrf_serial_uninit(&serial_uart);                                        
APP_ERROR_CHECK(ret);

__WFE();

After this, the current draw on nRF52840 is around 900 uA. I'm wondering how can I disable the UART completely to reduce the current draw.

Thanks,

Related