TinyUSB

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: utzig, lbednarz, tfAteba, barthess, RoccoMarco

networkfusion
Posts: 18
Joined: Thu May 18, 2017 11:57 am
Been thanked: 6 times

TinyUSB

Postby networkfusion » Fri Aug 07, 2020 7:57 pm

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...

User avatar
Giovanni
Site Admin
Posts: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 times
Contact:

Re: TinyUSB

Postby Giovanni » Fri Aug 07, 2020 8:02 pm

Well, it would be interesting, OSAL requirements look pretty easy to implement on top of our API.

Giovanni

mobyfab
Posts: 471
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 20 times
Been thanked: 28 times

Re: TinyUSB

Postby mobyfab » Mon Nov 23, 2020 11:54 pm

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

mobyfab
Posts: 471
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 20 times
Been thanked: 28 times

Re: TinyUSB

Postby mobyfab » Tue Nov 24, 2020 11:26 pm

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.

User avatar
Giovanni
Site Admin
Posts: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 times
Contact:

Re: TinyUSB

Postby Giovanni » Wed Nov 25, 2020 8:42 am

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

Ludeks
Posts: 9
Joined: Sun Mar 13, 2016 2:52 pm
Has thanked: 3 times

Re: TinyUSB

Postby Ludeks » Wed Jan 27, 2021 3:48 pm

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?

mobyfab
Posts: 471
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 20 times
Been thanked: 28 times

Re: TinyUSB

Postby mobyfab » Tue Feb 09, 2021 1:35 am

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 :)


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 7 guests