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.

USB Receiver Buffer not flushing. tiva

Other Parts Discussed in Thread: TM4C123GE6PZ

hi all,

I am working on a USB Device application on ARM M4(TM4C123GE6PZ).

 I am using USB Device Class Device protocol for USB Communication on Arm m4.

Details as follows:

1. Here Computer is Host and my PCB with M4 controller is Device and communication is through Hyper Terminal Window of Computer.

2. I am able to transmit data from Hyper Terminal Window of Computer to USB Buffer of my PCB.

3. Also the received data in my PCB is transmitted successfully back to Hyper Terminal Window of Computer.

4. Here after receiving data from Hyper Terminal Window of Computer into USB buffer of my PCB, I am

trying to Flush the USB Receive Buffer, so that new data shall be stored from starting pointer.

5. But although Flushing Function I had used and tried to check back, I find that Flushing of USB Receive Buffer is not done.

6. I am not able to find out why USB Receiver Buffer not flushing.

 Kindly help me to resolve the issue.

Thanks ,

utpal

  • hi ,
    Please share your valuable suggestions.
  • Suggest to refer to the Tivaware 12573 Bulk USB example.  Bulk echo's characters without need of virtual DCL serial driver. Possibly try the USB virtual serial example; asserts a serial CDL forward relay into virtual pipe. each well written and documented working examples. The Bulk UART character example includes a Windows console msi, readme said includes VS2k8 source yet we only find the msi in the folder.

    http://software-dl.ti.com/tiva-c/SW-TM4C/latest/index_FDS.html

     

  • Hi,
    Thanks for your reply.
    Can you please explain in some simplified language ,i am not able to understand properly.

    Thanks
    utpal
  • The CDL example show a proper method to flush receive data from the UART buffer when invoked by a CDL serial USB virtual COM pipe into Windows.

    Load the examples from down loaded Tivaware version and import into CCS. Tivaware TMC123 download may have same USB examples?

    The USB Bulk client TM4C for Windows is separate download should work ok with both TM4C1294/123. If you install the Bulk windows client you must also install the Windows drivers provided in the Tivaware. Same thing for USB virtual CDL serial driver for windows have to be installed to use Putty or other terminal emulator. Bulk example has very short code length and no CDL passing of COM port settings to virtual pipe client. Seemingly USB Bulk transport layer may work with LM flash to invoked ROM boot loader for TMC device flashing but we have not yet confirmed that being true. 

    Each of these programming examples show proper syntax and method to control USB data transport to the TMC4 embedded device.