Closed dmelliot closed 2 years ago
Unfortunately, the USB-USB converter (probably most if not all of the x-to-USB converters) is very AVR-specific, as it requires code that comes from this project: https://github.com/felis/USB_Host_Shield_2.0. The Proton C, being an Arm-based board, simply will not understand the AVRisms of it, so it's likely not possible short of rewriting the whole thing for STM32. Sorry :(
usb host shield lib supports stm32f4 through the st’s HAL lib。I have ported to chibios, also tested against an custom hardware. But this lib uses hard coded configuration and hardware specific codes, it was hard to integrated into qmk(also potential license conflict?). If you really want to use it with proton C, you’d better to fork the official lib, grep all the stm32f4 related code, replace them as needed.
Thanks both of you for the responses. Sounds like it would be possible, but there is potentially a fair bit of work to get there...
I came across this: https://github.com/MichaelTien8901/STM32-with-Arduino-USB-Host-Shield which initially sounded promising, but I'm not sure what is actually being documented there (and to which lib the documented updates would be applied).
Anyway, taking a step back, is there an easier solution to this problem (i.e. running out of flash space on a Pro-Micro when building the USB-USB converter)?
Would a AT90USB1286 based board (e.g. a Teensy++2.0) work with QMK and the USB HID code?
It seems to compile for me, by copying the pro_micro
directory & files to teensy_pp
, setting MCU
and BOOTLOADER
accordingly, and adding a config.h with #define CORE_TEENSY
(the USB HID code wants that). I don't have a Teensy to test with, but looks promising 👍
And on avr-gcc 8.3.0 I get: 26168/130048 (20%, 103880 bytes free)
Thanks @fauxpark that looks promising. I'll source a Teensy and give it a shot (although I think it will need converting to 3.3v too).
Building the USB-USB converter for Proton-C fails.
Describe the Bug
I am trying to build the Pro-Micro based USB-USB converter code but for the Proton-C (as I need the additional storage space - see #7285) but it is failing.
The docs suggest any Pro-Micro board can be converted to use the Proton-C, but perhaps the USB-USB converter with it's HID code is an exception?
Please let me know if there is any chance this might work in the future as I bought a couple of Proton-C boards specifically for this.
Thanks, Duncan
System Information
Additional Context