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/LAUNCHXL-CC1312R1: CC1312- Launchpad / UART1 Pins

Part Number: LAUNCHXL-CC1312R1


Tool/software: TI-RTOS

Hello,

I am trying to use UART0 and UART1 with same time but I couldn't define the UART1 pins with code composer studio v8. In debug mode I got this error message :

"Cortex_M4_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.0.903.6)
Cortex_M4_0: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.0.903.6)
Cortex_M4_0: Unable to determine target status after 20 attempts
Cortex_M4_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging"

Which pins can I use for the UART1 ?

I want to use debug mode also send data with uart. How can I do that ? 

Best Regards, 

  • In the CC1312R1_LAUNCHXL.h file you will find the following:

    /* UART Board */
    #define CC1312R1_LAUNCHXL_UART0_RX IOID_2 /* RXD */
    #define CC1312R1_LAUNCHXL_UART0_TX IOID_3 /* TXD */
    #define CC1312R1_LAUNCHXL_UART0_CTS IOID_19 /* CTS */
    #define CC1312R1_LAUNCHXL_UART0_RTS IOID_18 /* RTS */
    #define CC1312R1_LAUNCHXL_UART1_RX PIN_UNASSIGNED
    #define CC1312R1_LAUNCHXL_UART1_TX PIN_UNASSIGNED
    #define CC1312R1_LAUNCHXL_UART1_CTS PIN_UNASSIGNED
    #define CC1312R1_LAUNCHXL_UART1_RTS PIN_UNASSIGNED

    You can set these unassigned pins to whatever pin you like as these pins are not used by something else.

    The error message does not give too much information since, for one thing, you have not said anything about the code you are running.

    "I want to use debug mode also send data with uart.": Please elaborate what exactly you want to do.