Skip to content

Support usb with cherryusb #1057

Open
Open

Description

@sakumisu

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!

Activity

  1. kilograham commented on Oct 21, 2022

    @kilograham
    Contributor

    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.

  2. kilograham commented on Oct 21, 2022

    @kilograham
    Contributor
  3. sakumisu commented on Oct 21, 2022

    @sakumisu
    Author

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

  4. kilograham commented on Jan 17, 2025

    @kilograham
    Contributor

    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

  5. sakumisu commented on Jan 17, 2025

    @sakumisu
    Author

    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.

  6. kilograham commented on Jan 17, 2025

    @kilograham
    Contributor

    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
  7. reopened this on Jan 18, 2025
  8. sakumisu commented on Jan 19, 2025

    @sakumisu
    Author

    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

  9. added this to the 2.2.0 milestone on Jan 19, 2025
  10. kilograham commented on Jan 19, 2025

    @kilograham
    Contributor

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

  11. matsobdev commented on Jan 19, 2025

    @matsobdev

    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

  12. sakumisu commented on Jan 20, 2025

    @sakumisu
    Author

    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.

  13. sakumisu commented on Jan 25, 2025

    @sakumisu
    Author
  14. sakumisu commented on Jan 25, 2025

    @sakumisu
    Author
  15. modified the milestones: 2.2.0, 2.1.2 on Jul 2, 2025
  16. kilograham commented on Jul 2, 2025

    @kilograham
    Contributor

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

  17. kilograham commented on Jul 22, 2025

    @kilograham
    Contributor

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

  18. modified the milestones: 2.2.0, 2.2.1 on Jul 22, 2025
  19. modified the milestones: 2.2.1, 2.3.0 on May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions