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/TMS320F28379D: usb communication

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hallo,

1. I am trying to run arduino code in code composer studio. So I am trying to find how to write 

serial.write

serial.read

serial.print these functions in code composer studio .

2. I am trying to implenment usb communication.I found the pins and had a problem with functions and header files. Which  have to use exactly

(I came across USBBUFFERWRITE,USB_EVENT_RX_AVAILABLE,USB_EVENT_TX_COMPLETE)

My goal is to do usb communication by writing digital data to the buffer and once buffer is filled have to initiate an serialEventusb() (serialeventusb is from arduino but have to implent it in code composer studio.)

Thanking you

With regards

Eswar kommi

  • Hi Eswar kommi,

    eswar kommi said:
    1. I am trying to run arduino code in code composer studio. So I am trying to find how to write 

    Arduino code will not run on c2000 MCUs directly. Are you meaning you're trying to port code over to a C2000 device?

    You can get started with the USB software examples provided in C2000ware. Located in the below default folder after installation:

    C:\ti\c2000\C2000Ware_2_00_00_03\driverlib\f2837xd\examples\cpu1\usb

    Best,

    Kevin

  • Hi Kevin,

    Thanks for the reply.I am aware that arduino code does not run in code composer studio. I am trying to grab the same logic from arduino and writing as anew code in ccs.In the process i am trying to find the exact functions and header files for usb communication and spi communication separately.

    Thanking you 

    regards

    eswar

  • Hi Eswar kommi,

    OK, I see.The SW examples in C2000ware should be a good starting point then, with USB drivers and a SW stack being provided.

    Please let us know if you have any questions specific to the SW examples or C2000 USB peripheral.

    Best,

    Kevin