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.

Compiler/LAUNCHXL-F28379D: Serial communication via USB (Virtual COM Port)

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE,

Tool/software: TI C/C++ Compiler

Hey everyone,

I am trying to communication with PC over USB.

 

Actually, I am trying to understand the usb_dev_bulk example which located in C2000 examples (C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2837xd\examples\cpu1\usb_dev_bulk\cpu01).

 

Even I reconfigured the GPIO_Init routine (for LAUNCHXL-28379D, SCIA-RX: GPIO43, Mux val. 15 and SCIA-TX: GPIO42, Mux val. 15), still I can't get any messages but only 0x00 at the beginning. (By the way I worked on the sci_echoback example first and it works fine, I can read and write messages over USB connection)

 

Thanks for reading, any suggestions will be appreciated

  • Hi,

    The USB bulk device example only communicates with the over USB. It looks like you are configuring GPIO42/43 for SCI pins. These are the USB D+/- pins used for USB communication.

    We have a usb_dev_serial example which uses USB to act as a CDC class device. That example also uses SCI to communicate to the PC as well. I would begin to look at that example and understand what it is doing first.

    sal
  • Hello Sal,

    Thank you for your reply and sorry for my late.

    After your message, I started to work with usb_dev_serial example but I could not communicate in any way.

    As I understand it from User's Manual, GPIO28 and GPIO29 (which are implemented pins in the example) are not used in LAUNCHXL-F28379D, therefore I changed the initilization codes to GPIO42 and GPIO43. But still cant communicate.

    Also, as I understand from the datasheet, the usb_dev_serial example have a communication structure like this:

    Microcontroller SCIA - [FTDI] - USB - PC


    Actually, I was looking for a virtual USB communication in the form of:
    Microcontroller SCI - USB - PC
    (But I couldn't get it does the launchpad supporting a communication like this?)

    As you can understand easily, I am quite confused. I am open to any documentation advice also.

    Thank you very much in advance.

  • GPIO 42/43 must be used for USB communication. GPIO 28/29 was being used for SCI communication. YOu need to change 28/29 to other SCI GPIO pins to communicate over SCI and leave 42/43 for USB communication.

    usb_dev_serial uses both SCI and USB to communicate to the PC.
    SCI - FTDI - USB connector - PC
    USB - USB connector - PC

    You can achieve what you want by using the USB communication directly to the PC. Unfotunately, the launchpad you are using does not have a USB connector tied to the USB peripheral. The controlCard evaluation board does have this. So you may need a controlCard or you will have to connect to the USB pins yourself without an on board connector.

    sal