Support usb with cherryusb #1057

Open
opened 2022-10-11 08:07:46 -05:00 by sakumisu · 14 comments
sakumisu commented 2022-10-11 08:07:46 -05:00 (Migrated from github.com)

Dear raspberrypi friends,

I have ported rp2040 usb ip with cherryusb, and provide all the device class demos, see rp2040 device demo, and host driver and demo is on going.

But i do not know if i have the chance to pr cherryusb lib in pico-sdk, can someone review and tell me? If no , i will add the custom cmake script in my repo. Thank you!

Dear raspberrypi friends, I have ported rp2040 usb ip with cherryusb, and provide all the device class demos, see [rp2040 device demo](https://github.com/sakumisu/CherryUSB/tree/master/demo/rp2040/cherryusb), and host driver and demo is on going. But i do not know if i have the chance to pr cherryusb lib in pico-sdk, can someone review and tell me? If no , i will add the custom cmake script in my repo. Thank you!
kilograham commented 2022-10-21 08:50:56 -05:00 (Migrated from github.com)

nice. we might consider adding a wrapper library that uses CherryUSB if a CMake var is set (or via find_package) (if not as a submodule) ... it will be a while before we get a chance to look at it though.

nice. we might consider adding a wrapper library that uses CherryUSB if a CMake var is set (or via find_package) (if not as a submodule) ... it will be a while before we get a chance to look at it though.
kilograham commented 2022-10-21 08:52:36 -05:00 (Migrated from github.com)

@liamfraser fyi

@liamfraser fyi
sakumisu commented 2022-10-21 09:00:14 -05:00 (Migrated from github.com)

Thanks a lot.This can be a slow thing to do, just use your free time.

Thanks a lot.This can be a slow thing to do, just use your free time.
kilograham commented 2025-01-16 23:18:38 -06:00 (Migrated from github.com)

Hey @sakumisu ... we tend to have a lot going on, so sometimes it takes us a while to get back to things! We would like to add CherryUSB support to the Pico SDK in an upcoming release if you still have interest

Hey @sakumisu ... we tend to have a lot going on, so sometimes it takes us a while to get back to things! We would like to add CherryUSB support to the Pico SDK in an upcoming release if you still have interest
sakumisu commented 2025-01-17 02:10:42 -06:00 (Migrated from github.com)

Hey @sakumisu ... we tend to have a lot going on, so sometimes it takes us a while to get back to things! We would like to add CherryUSB support to the Pico SDK in an upcoming release if you still have interest

Really? Yeah, i have interest. We will reschedule support for pico sdk, our pico sdk support is too old, and we will consider how to add cmake easily, now way is that we have the cherryusb.cmake and set some cmake variables to use.

> Hey [@sakumisu](https://github.com/sakumisu) ... we tend to have a lot going on, so sometimes it takes us a while to get back to things! We would like to add CherryUSB support to the Pico SDK in an upcoming release if you still have interest Really? Yeah, i have interest. We will reschedule support for pico sdk, our pico sdk support is too old, and we will consider how to add cmake easily, now way is that we have the cherryusb.cmake and set some cmake variables to use.
kilograham commented 2025-01-17 11:20:07 -06:00 (Migrated from github.com)

Yeah, feel free to share a branch as you go on the CMake front - we had some similar fun with TinyUSB, because both.

  • TinyUSB wants to build standalone with SDK, and run its examples
  • SDK wants to include TinyUSB, and pico-examples wants to pull in the tests
Yeah, feel free to share a branch as you go on the CMake front - we had some similar fun with TinyUSB, because both. - TinyUSB wants to build standalone with SDK, and run its examples - SDK wants to include TinyUSB, and pico-examples wants to pull in the tests
sakumisu commented 2025-01-19 06:55:15 -06:00 (Migrated from github.com)

I build a simple project, could you have a time to review? About demo position and library position? If you think LGTM, i will pr for them, thank you!

https://github.com/CherryUSB/pico-examples
https://github.com/CherryUSB/pico-sdk

I build a simple project, could you have a time to review? About demo position and library position? If you think LGTM, i will pr for them, thank you! https://github.com/CherryUSB/pico-examples https://github.com/CherryUSB/pico-sdk
kilograham commented 2025-01-19 11:15:01 -06:00 (Migrated from github.com)

Excellent; thank you - i will have a little play offline to get the feel of things

Excellent; thank you - i will have a little play offline to get the feel of things
matsobdev commented 2025-01-19 14:20:17 -06:00 (Migrated from github.com)

So now I know, it is 0 rather that USBCTRL_REGS_BASE as a reg_base like here: https://github.com/CherryUSB/pico-examples/blob/master/usb/cherryusb/device/cdc_msc/main.c#L15. Didn't try, but maybe this was holding RISC-V back.

PS. Nope :D Time tu use "debugprobe" finally for the first time :D

So now I know, it is `0` rather that `USBCTRL_REGS_BASE` as a `reg_base` like here: https://github.com/CherryUSB/pico-examples/blob/master/usb/cherryusb/device/cdc_msc/main.c#L15. Didn't try, but maybe this was holding RISC-V back. PS. Nope :D Time tu use "debugprobe" finally for the first time :D
sakumisu commented 2025-01-19 19:46:31 -06:00 (Migrated from github.com)

So now I know, it is 0 rather that USBCTRL_REGS_BASE as a reg_base like here: https://github.com/CherryUSB/pico-examples/blob/master/usb/cherryusb/device/cdc_msc/main.c#L15. Didn't try, but maybe this was holding RISC-V back.

PS. Nope :D Time tu use "debugprobe" finally for the first time :D

Because regbase is fixed in port, so init with rebase is useless.

> So now I know, it is `0` rather that `USBCTRL_REGS_BASE` as a `reg_base` like here: https://github.com/CherryUSB/pico-examples/blob/master/usb/cherryusb/device/cdc_msc/main.c#L15. Didn't try, but maybe this was holding RISC-V back. > > PS. Nope :D Time tu use "debugprobe" finally for the first time :D Because regbase is fixed in port, so init with rebase is useless.
sakumisu commented 2025-01-25 05:22:55 -06:00 (Migrated from github.com)
https://github.com/raspberrypi/pico-sdk/pull/2212
sakumisu commented 2025-01-25 05:25:17 -06:00 (Migrated from github.com)
https://github.com/raspberrypi/pico-examples/pull/603
kilograham commented 2025-07-02 10:00:49 -05:00 (Migrated from github.com)

move to 2.1.2 as i may add it as "pre-release" there

move to 2.1.2 as i may add it as "pre-release" there
kilograham commented 2025-07-22 16:35:28 -05:00 (Migrated from github.com)

moving to 2.2.1 as more work is needed on the pico_stdio_usb stuff and picking between TinyUSB and CherryUSB for that

moving to 2.2.1 as more work is needed on the pico_stdio_usb stuff and picking between TinyUSB and CherryUSB for that
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#1057
No description provided.