Availability machine.USBDevice on stm32 #16060
Replies: 2 comments 16 replies
-
|
The machine.USBDevice API is built on top of the TinyUSB library, whereas the stm32 port currently uses stm's native USB stack. I've been working towards migrating stm32 over to TinyUSB in #15592 in my personal time, once that's finished the runtime USB support should just work. Before I can finish that though, the stm32 port has some other more advanced USB features like the CDC / VCP interface being exposed to python with the default repl being configured via dupterm. This provides the ability at runtime to disconnect the USB CDC from repl and use it for custom data. Once that's in I can finish migrating stm32 to TinyUSB without losing the existing features. |
Beta Was this translation helpful? Give feedback.
-
|
@andrewleech I am back at this project now and am trying to get the TinyUSB stack working on a stm32h743. I am glad your fantastic work got merged in the official MP repo! Using your fork with the old stm32_tinyusb branch worked for me before the merge but using the same build settings on the official repo does not compile: gives me: error: #error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use to solve this I add: but this give me: any idea what I do wrong? (i did a fresh repo clone, built the submodules recursively etc. but no luck) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Are there plans to make the USBDevice class available on the stm32 platforms?
If needed, I would like to contribute but I am not a specialist in USB stuff. Is it easy to port from the rp2040 code to the stm32?
Beta Was this translation helpful? Give feedback.
All reactions