Build for rp2040 without the sdk? #2894
-
|
Would it be possible to build a static library of tinyusb that I could call into from an rp2040 chip but without depending on the pico sdk? I'd like to build a rust wrapper for it that I can include in an embassy-rs project and initialize and then manually call the interrupt tasks. I've made it as far as linking in the existing 2040 library into my embassy project and I can call into it but when I call init I get failed assertions from within pico_sdk code and feel like I'm working against the grain by both having the embassy runtime and pico sdk runtime trying to manage interrupts. Rather than trying to give pico_sdk everything it needs via link scripting gymnastics perhaps I can make a new target that is just more bare bones. Is there anything that would be prohibitively |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I don't know if it helps. But I have tinyusb working on a RP2040 without the sdk. Code is here: https://github.com/JustAnother1/nomagic_probe/tree/main/src/tinyusb |
Beta Was this translation helpful? Give feedback.
-
|
I found myself wanting to build tinyusb for the RP2350 without the SDK, so created https://github.com/piersfinlayson/pico-sdkless It contains a complete working bare-metal example of using tinyusb to implement a CDC device on an RP2350 without the Pico SDK. No edits are required to the tinyusb source to make this work - it essentially provides the Pico SDK header file names tinyusb expects, and the information needed. |
Beta Was this translation helpful? Give feedback.
I don't know if it helps. But I have tinyusb working on a RP2040 without the sdk. Code is here: https://github.com/JustAnother1/nomagic_probe/tree/main/src/tinyusb