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/MSP432P401R: SimpleLink RTOS UART examples - UART_write() writes one character then hangs

Part Number: MSP432P401R


Tool/software: TI-RTOS

I'm trying to use the UART module with the latest SimpleLink TI-RTOS release 1.40.01.00
I have an existing example that I ported from tirtos_msp43x_2_20_00_06 to that new release, and noticed that the UART_write hangs after outputting one character.
To check if it's my code or something else, I tried the uartecho example for the new SimpleLink TI-RTOS via Resource Explorer:
->  TI DRIVERS  / uartecho / TI-RTOS / CCS 

There I have the same issue. When connecting a terminal with the right connection settings, it doesn't behave correctly.

I have a black MSP432P401R LaunchPad. It would be good if someone with the new version of the LaunchPad can try out the uartecho example

Code snippet:

    char        input;
    const char  echoPrompt[] = "Echoing characters:\r\n";
    UART_Handle uart;
    UART_Params uartParams;

    /* Call driver init functions */
    GPIO_init();
    UART_init();

    /* Turn on user LED */
    GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);

    /* Create a UART with data processing off. */
    UART_Params_init(&uartParams);
    uartParams.writeDataMode = UART_DATA_BINARY;
    uartParams.readDataMode = UART_DATA_BINARY;
    uartParams.readReturnMode = UART_RETURN_FULL;
    uartParams.readEcho = UART_ECHO_OFF;
    uartParams.baudRate = 115200;

    uart = UART_open(Board_UART0, &uartParams);

    if (uart == NULL) {
        /* UART_open() failed */
        while (1);
    }

    UART_write(uart, echoPrompt, sizeof(echoPrompt)); // here it blocks after sending the first character E

    /* Loop forever echoing */
    while (1) {
        UART_read(uart, &input, 1);
        UART_write(uart, &input, 1);
    }

  • Hello,

    Jan Cumps said:
    I have a black MSP432P401R LaunchPad. It would be good if someone with the new version of the LaunchPad can try out the uartecho example

    The SimpleLink MSP432 SDK only supports Revision C silicon and above (RED Launch Pad). That is the reason of the behavior you are describing.

    Please get in touch with us offline and we can point you in the right direction (you can click on my profile and send me a private message that way).

      Best regards,

        David

**Attention** This is a public forum