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.

CC2640R2F: UART context call

Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSBIOS

Hello Team,

In my application I have to close the UART driver and the following method performs that.

void Uart_close(void) {
    UART_writeCancel(uartHandler);
    UART_readCancel(uartHandler);
    UART_close(uartHandler);
    uartHandler = NULL;
}

I get call the method above just in Hwi context. When I try to call it in Task or Swi context an exception is released.

ti.sysbios.family.arm.m3.Hwi.ExcContext

I wonder why the exception is being launched. Are there somewhere in documentation that show in what context I can to call the functions above?

Thank you in advance.