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/TIDA-010024: CC1312/ UART1 Pins and Debug Error

Part Number: TIDA-010024
Other Parts Discussed in Thread: CC1312R,

Tool/software: TI-RTOS

Hello,

I try the use UART0 and UART1 at the same the but I got a this error message in debug mode:

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

I want the use both debug and peripheral control. How can I define UART1 pins for CC1312 launchpad? In code configurations made for only cc1352 launchpad. Please help me about for this situtiation. 

Best Regards ,

  • Hi,

    I guess your question is to configure UART1 on CC1312R device. You can also find some examples to activate UART in the SDK. Since this question is related to the device driver configuration, I would recommend you to create another E2E question with the part number of CC1312R . With that, you would get a better answer.

    In the TIDA-010024 example, you can also find some example codes to open UART0. In the similar way, you can also open UART1.

    UART_Params params;
    UART_Params_init(&params);
    params.baudRate = 115200;
    params.writeMode = UART_MODE_BLOCKING;
    params.readMode = UART_MODE_BLOCKING;
    params.writeDataMode = UART_DATA_BINARY;
    params.readDataMode = UART_DATA_BINARY;
    params.readEcho = UART_ECHO_OFF;

    handle = UART_open(Board_UART0, &params);


    Board.h defines the UART macro for 0 and 1.

    #define Board_UART0 CC1312R1_LAUNCHXL_UART0
    #define Board_UART1 CC1312R1_LAUNCHXL_UART1

    Regards,
    Wonsoo