mikeneiderhauser / CRSFJoystick

Arduino code that runs on a Pi Pico (2040) to emulate a USB HID Joystick
GNU General Public License v3.0
152 stars 33 forks source link

Update ELRS firmware #10

Closed benedikt-bartscher closed 1 year ago

benedikt-bartscher commented 1 year ago

Hey @mikeneiderhauser, thanks you for your awesome work! Is there a way to update the ELRS receiver firmware? Or is it currenty always in USB HID mode?

mikeneiderhauser commented 1 year ago

If tried a few ways to get over usb flashing to work with ELRS configurator but have ran into numerous issues in the process. In order to update the firmware on the ELRS Receiver. It is recommended to flash it over WiFi.

The pi pico itself given current firmware is always in HID mode.

benedikt-bartscher commented 1 year ago

Thanks for your answer. Sadly some ELRS receivers don't have wifi (868mhz ones). Couldn't we just introduce a boot delay in which the user can press for example a button to start in FW update mode? Betaflight allows updating elrs receivers with serial passtrough, i used it many times, works great. Did you try this https://docs.arduino.cc/built-in-examples/communication/SerialPassthrough ?

mikeneiderhauser commented 1 year ago

You can't do just native serial pass through (at least on the ESP based RX's, haven't tried the STM based RX's) as the boot loader does dynamic baud rates for programming. I've tried dedicated bridge / serial pass through firmware that is supposed to do dynamic baud without success.

countofkrakow commented 1 year ago

Just submitted a PR for this

mikeneiderhauser commented 1 year ago

^ ill be taking a look at this PR hopefully this weekend time permitting

mikeneiderhauser commented 1 year ago

PR merged, elrs passthrough flashing is now functional