Page 1 of 1

TinyUSB

Posted: Fri Aug 07, 2020 7:57 pm
by networkfusion
Just wondering what people think about https://github.com/hathach/tinyusb/ and perhaps of benefit if someone were to create a port for ChibiOS. I notice they have a port for FreeRTOS, and think it would unlock a lot of possibilities for ChibiOS (e.g. USB Host and Ethernet over USB) without major maintenance requirements...

Re: TinyUSB

Posted: Fri Aug 07, 2020 8:02 pm
by Giovanni
Well, it would be interesting, OSAL requirements look pretty easy to implement on top of our API.

Giovanni

Re: TinyUSB

Posted: Mon Nov 23, 2020 11:54 pm
by mobyfab
I'm working on a port, I'll do a pull request with one or two examples, but if you find any mistakes below let me know:
https://github.com/hathach/tinyusb/comp ... in:chibios

Re: TinyUSB

Posted: Tue Nov 24, 2020 11:26 pm
by mobyfab
I'm adding support in the Contrib repo:
https://github.com/ChibiOS/ChibiOS-Contrib/pull/228

Untested so far but it compiles :)
Will try on my F4 disco board when I have the time.

Re: TinyUSB

Posted: Wed Nov 25, 2020 8:42 am
by Giovanni
Great, if it works we could include it as an extension under /ext like FatFS and lwIP.

If possible try to create all the glue code as "bindings" to be placed under /os/various.

Giovanni

Re: TinyUSB

Posted: Wed Jan 27, 2021 3:48 pm
by Ludeks
mobyfab wrote:I'm working on a port, I'll do a pull request with one or two examples, but if you find any mistakes below let me know:
https://github.com/hathach/tinyusb/comp ... in:chibios


Did you open any PR there?

Re: TinyUSB

Posted: Tue Feb 09, 2021 1:35 am
by mobyfab
no, the TinyUSB code is too "dirty" and it's much simpler to do it the other way around
I did 95% of the work but there's still a few bugs, it's here: https://github.com/ChibiOS/ChibiOS-Cont ... SB-CDC-MSC

If anyone has some time to debug it, that would be great :)