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: Can the JTAG-TDO / TDI IOID_PIN be used for UART CTS / RTS

Part Number: CC2640R2F
Other Parts Discussed in Thread: UNIFLASH

Hello,

I'm out of I/O pins on my 5X5 CC2640r2. I want to implement UART flow control in my project. The only unused pins are DIO5 & DIO6. These are also used for JTAG-TDO & JTAG-TDI. The user guide suggests that these pins can be used for I/O. However when I define these pins:

// UART Board
#define Board_UART_RX                       IOID_1
#define Board_UART_TX                       IOID_0
//#define Board_UART_CTS                      IOID_5
//#define Board_UART_RTS                      IOID_6

in the board.h file, and:

UARTCC26XX_Object uartCC26XXObjects[CC2640R2_SABLEXR2_UARTCOUNT];

const UARTCC26XX_HWAttrsV2 uartCC26XXHWAttrs[CC2640R2_SABLEXR2_UARTCOUNT] = {
    {
        .baseAddr       = UART0_BASE,
        .powerMngrId    = PowerCC26XX_PERIPH_UART0,
        .intNum         = INT_UART0_COMB,
        .intPriority    = ~0,
        .swiPriority    = 0,
        .txPin          = Board_UART_TX,
        .rxPin          = Board_UART_RX,
        //.ctsPin         = Board_UART_CTS,
        //.rtsPin         = Board_UART_RTS
    }
};

and,

 Board_UART_TX    | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN   | PIN_PULLUP,                       /* UART TX pin at inactive level */
    Board_UART_RX    | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN   | PIN_PULLUP,                       /* UART RX pin at inactive level */
    //Board_UART_CTS   | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN   | PIN_PULLUP,                       /* UART CTS pin at inactive level */
    //Board_UART_RTS   | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN   | PIN_PULLUP,                       /* UART RTS pin at inactive level */
    PIN_TERMINATE

in the board.c file. (CTS & RTS are currently commented out)

When I run this code, it initially downloads and runs. After the first UART transmission, the device disconnects and is no longer recoverable. That is, it is no longer possible to connect to the board to load BIM, Stack or App. To recover the board from the trash can, I have to completely rebuild it - load Stack.out within CCS, App.bin from uniflash, and finally bim.out via CCS. After reloading it works.

My question is, can I use IOID 5 & 6 for UART CTS & RTS?

Thanks for your help,

Patrick