Has anyone used the TinyUSB for Arduino (https://github.com/adafruit/Adafruit_TinyUSB_Arduino) with stmd32duino?
The built-in USB stack is pretty bad.
TinyUSB
Re: TinyUSB
the built-in usb stack is actually quite good
just that to understand them try attending some open classes, there are very few mcu manufacturers who provide such training materials
https://www.youtube.com/watch?v=rI3yBmn ... nHhQZI4Hxa
as for that in the core, you can try to review the codes & if u figure out how to make it better, you could update your local codes and later commit them as a pr. it is actually built on top of the standard usb core codes from stm
just that to understand them try attending some open classes, there are very few mcu manufacturers who provide such training materials
https://www.youtube.com/watch?v=rI3yBmn ... nHhQZI4Hxa
as for that in the core, you can try to review the codes & if u figure out how to make it better, you could update your local codes and later commit them as a pr. it is actually built on top of the standard usb core codes from stm
Re: TinyUSB
I've evaluate it anyway it does not support all the STM32 series that's why I didn't go further.
Adafruit use it for their cores.
Adafruit use it for their cores.
Re: TinyUSB
How so? I've looked at the source code and it appears to be doing everything inside ISR context. Certainly not best practice and not amenable to easy fix. The main problem I have is for real-time systems where the USB stack is taking too long in ISR context to complete (e.g. some reset from USB host) and watchdog reset is triggered.ag123 wrote: Sat Aug 28, 2021 8:28 am the built-in usb stack is actually quite good
just that to understand them try attending some open classes, there are very few mcu manufacturers who provide such training materials
https://www.youtube.com/watch?v=rI3yBmn ... nHhQZI4Hxa
as for that in the core, you can try to review the codes & if u figure out how to make it better, you could update your local codes and later commit them as a pr. it is actually built on top of the standard usb core codes from stm
Re: TinyUSB
Really? The TinyUSB docs indicate support for:fpiSTM wrote: Sat Aug 28, 2021 1:32 pm I've evaluate it anyway it does not support all the STM32 series that's why I didn't go further.
Adafruit use it for their cores.
ST: STM32 series: L0, F0, F1, F2, F3, F4, F7, H7 both FullSpeed and HighSpeed
Which STM32 series are missing?
Re: TinyUSB
L1, L4, L5, G0, G4, WB,WL, U5
Re: TinyUSB
Looks like F0, F1, F2, F3, F4, F7, H7, G4, L0, L1, L4, L5, U5, WB now included.