[STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Discussions about the STM32generic core
User avatar
Pito
Posts: 1531
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Post by Pito » Thu Aug 24, 2017 7:06 pm

@daniel: Interesting! My hypothesis: by running the above test (mersenne CPU stress test) you are heating up the internal temperature in your box such your usb subsystem works better (ie usb clock??, voltages??).
Pukao Hats Cleaning Services Ltd.

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Post by danieleff » Fri Aug 25, 2017 5:11 am

Using this code https://stackoverflow.com/a/6037377/834966, with larger `buffer[1024]`
* original tight loop: all data received
* `Sleep(10/100/1000)` in the loop: losing same amout(!) of data. (The TX timeout in arduino code is commented out, blocking all the way!)

Code from first post on Tennsy 3.5 in TeraTerm: losing some data.

I start to suspect it is usbser.sys. Are there any alternative drivers? I will need to run a linux live CD on this machine.

(I also get 128/256 buffer 3sec problem, but that will be something else entirely.)

User avatar
Pito
Posts: 1531
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Post by Pito » Fri Aug 25, 2017 6:43 am

In a discussion I've seen they recommend WinUSB instead of usbser.sys..
Pukao Hats Cleaning Services Ltd.

Post Reply