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.

CC2538 How to use 2 UART at the same time

Other Parts Discussed in Thread: CC2538, Z-STACK, CC2530, TIMAC

From the datasheet of CC2538 we know that it has 2 UART ports. However, it seems I cannot use them at the same time. I can use them separately in Z-stack 1.2.0, but not together. The reason may be when I use IOCPinConfigPeriphInput twice, the first UART input fails.

I have also tried to use 2 ISR by modifying _hal_uart_isr.c and hal_uart.c, but the problem still exists.

Is it wise to continue on this thing? What if I change my chip to CC2530, which I heard can use 2 UART port, would it cost much time on transplanting the project?

  • Hi Jay,

    2 UARTs on CC2538 should be able to run at the same time. Which software installation(for examle, Z-Stack, TIMAC, ...) is your work based on? Can you share with us the part of your code relevant to pin/interrupt configurations?

    - Cetri