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.

MSP432E401Y: SDK question with UART and USB

Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y

Hello,

I'm new to embedded design and I have a few questions. My software application will communicate with the chip through USB.  I currently have the MSP-EXP432E401Y launchpad board and I'm trying to understand some the demoes in order to integrate USB into my application. I'm using the "usbdevcdcserial_MSP_EXP432E401Y_nortos_ccs" CCS project found in the launchpad board's SDK. I've been playing around with it and it seems that I understand for the most part what's going on with the USB portion. However, there seems to be a UART portion to the project as well. What role does UART play in this project? I'm assuming it's utilization is board specific. And furthermore, different USB projects in the SDK are labeled as "usb host" vs "usb device". I think I know the difference but could you give small explanation and maybe an example of each?

Thanks

  • The UART is just there for logging/debugging purposes, as illustrated in the code section below:
    /* Indicate that the CDC device has been detected.*/
    uartBufLen = snprintf(g_pcTXBuf, DATA_SIZE, "\nCDC Device Connected\n");
    UART_writePolling(uartHandle, g_pcTXBuf, uartBufLen);
    USB Host- the MSP432E4 acts as a "Host" (master) controlling certain peripherals (i.e. a mouse)
    USB Device- the MSP432E4 acts as the peripheral (i.e. presenting itself to the PC AS a keyboard).
    Hope that helps.
    -Bob L.

**Attention** This is a public forum