VanceVagell / kv4p-ht

Open source handheld ham radio project KV4P-HT
GNU General Public License v3.0
329 stars 37 forks source link

[Android] Add ESP32 stub loader support for much faster firmware flashing #97

Open VanceVagell opened 1 week ago

VanceVagell commented 1 week ago

FirmwareUtils and CommandInterfaceESP32 need to be updated to install the ESP32 stub loader into RAM, then increase the baud to 921600 and increase packet size once the stub loader is successfully installed.

The stub loader bytes are already bundled with the Android app in the raw/ directory, they just need to be installed.

VanceVagell commented 1 week ago

Whomever works on this can start by seeing what I was trying to do, to see how it should roughly fit into the flow.

See FirmwareUtils.flashFirmware() where loadStubFromFile() is commented out, and see the unused implementation of that method. This does not work as-is, but might give a hint as to a working direction.