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.

CCS/MSP432P401R: UART_open() not working at 115200 baud

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hello, 

this is my first time posting to the forums. 

I am working on a project that will have 3 devices connected via i2c, and a bluetooth module on uart pins. Using the basic TI-rtos echo code as reference, I have been able to setup the uart to transmit data at 9600 baud, however no matter what I change the device will not work at any faster baud rate. I have looked at other forums and followed suggestions that changed the table in UARTMSP432_BaudrateConfig uartMSP432Baudrates[]  in the MSP_EXP432P401R.c to different values


but this also has not solved my issue. I am suspecting it is the clock source, but after changing uartMSP432HWAttrs EUSCI_A0_BASE to use SMCLK in the MSP_EXP432P401R.c it did not work

  • Dear customer,

    Thank you for your inquiry related to the MSP432 product. We recommend that you consult the many resources at dev.ti.com, including SDK user’s guides, libraries, utilities, software examples and SimpleLink Academy training modules.  

    Thank you for your time and consideration,

    Seong

  • To help narrow down the issue a little further,

    When setting a breakpoint and stepping through the UART_open() call, it will return null after checking if (index >= UART_count)

    I have referenced the MSP432P4 SDK software folder in the resource explorer for RTOS examples, and when running those examples the 115200 baud works fine.

    None of the other files in my project open or use a UART, however I2c is used with config: 

     

    EUSCI_B_I2C_CLOCKSOURCE_SMCLK, // SMCLK Clock Source
    48000000, // SMCLK = 48MHz
    EUSCI_B_I2C_SET_DATA_RATE_400KBPS, // Desired I2C Clock of 100khz
    0, // No byte counter threshold
    EUSCI_B_I2C_NO_AUTO_STOP // No Autostop

     


    Any help would be much appreciated, we are stuck on this uart issue and need the sample rate to be higher

**Attention** This is a public forum