Page 1 of 1

TinyUSB

Posted: Sat Aug 28, 2021 12:38 am
by mcu8484
Has anyone used the TinyUSB for Arduino (https://github.com/adafruit/Adafruit_TinyUSB_Arduino) with stmd32duino?

The built-in USB stack is pretty bad.

Re: TinyUSB

Posted: Sat Aug 28, 2021 8:28 am
by ag123
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

Posted: Sat Aug 28, 2021 1:32 pm
by fpiSTM
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.

Re: TinyUSB

Posted: Sat Aug 28, 2021 9:32 pm
by mcu8484
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
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.

Re: TinyUSB

Posted: Sat Aug 28, 2021 9:37 pm
by mcu8484
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.
Really? The TinyUSB docs indicate support for:

ST: STM32 series: L0, F0, F1, F2, F3, F4, F7, H7 both FullSpeed and HighSpeed

Which STM32 series are missing?

Re: TinyUSB

Posted: Sun Aug 29, 2021 6:06 am
by fpiSTM
L1, L4, L5, G0, G4, WB,WL, U5

Re: TinyUSB

Posted: Thu Oct 20, 2022 10:48 am
by MGeo
Looks like F0, F1, F2, F3, F4, F7, H7, G4, L0, L1, L4, L5, U5, WB now included.