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.

MSP-EXP432E401Y: Configuring the second USB port, U7, to be a serial port

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

Can I use the USB port that is connected directly to the MSP432E401Y on the MSP-EXP432E401Y development board to be a serial port? If so, I have a couple of questions:

1. It looks like the USB port is connected to PL6 and PL7. Is it possible to just configure these pins to be Tx and Rx of one of the UARTS? Any information on how to do that would be very helpful.

2. I'd like to set the baud rate to be 38400 and it would be very helpful if I knew which values for UARTIBRD and UARTFBRD I should use.  Or, I could calculate them myself if I knew the value for the system clock for the board.

Thank you.

  • Hi 

    1. No you can't, you need to configure it to be a USB CDC devices. Here is the code example:https://dev.ti.com/tirex/explore/node?node=APA8GVMfbzDe568TA7T76w__J4.hfJy__LATEST

    2. If you only want to send some data from MSP432 to PC. The easy way will be use the XDS110 backchannel uart.

    Eason

  • Actually it looks like this might be exactly what I'm looking for.  When I looked up USB CDC it said it was a virtual COM port and when I went to the code example it said usb_serial_device.  It also said that to test it I should open a terminal program set to 115200 baud.  I assume they mean that I will be talking directly to the MSP432E401Y through the USB Port U7 which is what I'm trying to do.  

    Now I would like to download it and run the code example to see how it sets everything up for communicating over U7.  I have CCS installed on another computer that is not connected to the internet so it would be best if I could download the example to a flash drive and copy it to that computer for testing. 

    I'm sure it is a simple thing to do but I haven't done it in a while and I don't remember the procedure so any help in getting that done would be very helpful.

    Thank you so much.

  • I think you just need to download a SDK:www.ti.com/.../SIMPLELINK-MSP432-SDK

  • Now I have the "usb_serial_device_MSP_EXP432E401Y_tirtos_ccs" code example working.  It is successfully sending a string of characters to a terminal program through the USB port U7 so it looks like this is what I am looking for.  Thank you.

    The problem now is figuring out how it works so I can use port U7 for my application.  I can see some of the settings in the USB register bank at 0x40050000 and I can see the values of USBIE and USB FIFOs changing randomly while it is running but I have no idea what any of those changes mean.  They don't seem to corelate with any of the characters being sent and they are being sent in an interrupt routine which I also can't locate.

    Any help in figuring out how this works so I can use USB port U7 in my application would be much appreciated.

  • Nice to hear that it works.

    Sorry, I am not an expert of the USB, I think you can get help from these two documents: