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

mesure current for BLE advertising with UART service

Hi,

I want to mesure the current consumption for BLE advertising with my nRF52 DK kit. I did the right thing as in the document(section "Using an ampere-meter for current measurement").

I want to get the average about 3-5uA result. when I disable this function:

 static void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
        .baud_rate    = UART_BAUDRATE_BAUDRATE_Baud115200
    };

    APP_UART_FIFO_INIT(&comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
} 

I can't get advertising anymore, it's because there are some important initializations for BLE_nus service. How can I seperate this function to still get my advertising and service work.(the current consumption should be around 5uA)

Thanks,

Related