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.
Hi every one, I have modified the usb_dev_bulk from "tiva-ware" in order to generate data from the MCU everytime it receives the specific word "hola", the Visual Studio code generate 1000 times the word "hola" and every time that the MCU receives this word it sends 512 bytes of data to the PC that store it in a buffer "receiverPC". Using the clock function on the visual studio code I can know how much time it takes to receive all this data. and I got that the speed is 1.7 Mbps (aprox.) each time I test it.
So my questions are:
-How can I achieve 12Mbps?
-Is the usb_dev_bulk example working at 12Mbps or it is working at low speed mode (1.5Mbps)?.
-The USB configuration must be changed to achieve full speed?.
-I tougth that using 64 bytes chunks means full speed.
-It is problem of the time out parameter on ReadUSBPacket()?;
Notes:
-The only operation that is made on the visual studio code, after ReadUSBPacket() is executed, is the data storage.
-The data storage on the buffer receiverPC does not affects the time consumption, using it or not using it gives me the same speed rate.
-Some time data is not readed because of the time outs, this is counted and displayed in (Veces mal: ),this occurs rarely in the 1000 times.
-The speed calculation is made only using the data that is received with no problem.
The codes:
If anyone wants to try the codes, overwrite this ones on the codes that are used on the USB bulk example from tivaware.
After the device is recognised by the PC code write the word "vaoarriba", this send 1000 times the word "hola"
MCU: TM4C129e
Code Composer Studio Version: 6.1.3.00033