TinyUSB

Post here first, or if you can't find a relevant section!
Post Reply
mcu8484
Posts: 13
Joined: Tue Oct 20, 2020 1:11 am

TinyUSB

Post 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.
ag123
Posts: 1656
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: TinyUSB

Post 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
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: TinyUSB

Post 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.
mcu8484
Posts: 13
Joined: Tue Oct 20, 2020 1:11 am

Re: TinyUSB

Post 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.
mcu8484
Posts: 13
Joined: Tue Oct 20, 2020 1:11 am

Re: TinyUSB

Post 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?
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: TinyUSB

Post by fpiSTM »

L1, L4, L5, G0, G4, WB,WL, U5
MGeo
Posts: 38
Joined: Thu Dec 19, 2019 10:29 am
Answers: 2

Re: TinyUSB

Post by MGeo »

Looks like F0, F1, F2, F3, F4, F7, H7, G4, L0, L1, L4, L5, U5, WB now included.
Post Reply

Return to “General discussion”