This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS: UART of CC2640R2F consumption issue

Tool/software: TI-RTOS

i enable the uart rx_callback mode. Using UART_read() to enable the rx interrput .And then  i call the UART_readcancel() and UART_close().but the consumption is 3.65mA,the means Uart_readcancel  does not  work?  But the strange is that i only enable the uart rx_callback mode.and Use UART_read() to enable the rx interrput. the uart work is fine. But the consumption is only is 0.05mA. 

so i enable the uart rx_blocking mode.and closeUart_close(uart_handle).the consumption is 0.005mA. 

why cant close uart in rx_callback mode ???

please help me !!! please ,please ,please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • What version of the CC2640R2 SDK are you using?

    UART is asynchronous by nature. So, in order to capture input, you must have it's clock running.
    It used to be that UART_read() would power the UART controller with its interrupts enabled, but this was moved into UART_open() so that you don't have a race condition between your application and the UART controller in calling UART_read().

    As a result, your power consumption will go up whenever you call UART_open(). If you know that you aren't going to receive any data, then you can call UART_close() to conserve power. But in any case, if power consumption doesn't go down after calling UART_close(), that that is a bug.

    Any source to replicate this?
  • simplelink_cc2640r2_sdk_1_35_00_33 is version,and this the newest in TI website. The above you talk is right . i know how the uart works . U know, in rx_callbackmode if u dont call the UART_read(),and ur interrput will not entry. i dont know how the TI completes.
    In the initing ,i call UART_readcancel() and UART_close(),but the consumption is 3.65mA. But the uart works and the the consumption is only is 0.05mA. how to explain it ???