cool tech zone zone
Flash lua only - Printable Version

+- cool tech zone zone (https://forum.cooltech.zone)
+-- Forum: Tangara (https://forum.cooltech.zone/forumdisplay.php?fid=3)
+--- Forum: Firmware Development (https://forum.cooltech.zone/forumdisplay.php?fid=7)
+--- Thread: Flash lua only (/showthread.php?tid=134)



Flash lua only - yosthum - 2025-02-04

Is there an easy way to just reflash the lua partition when fiddling with the front end?


RE: Flash lua only - jacqueline - 2025-02-04

There is, yes! It's not something I do a lot of, but that's more out of habit than anything else.

The ESP-IDF docs have some useful tips on port selection and stuff: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#flashing-with-ninja-or-make

But TL;DR is that it *should* just be as simple as navigating into your build/ directory and running `ninja lua-flash`. Possibly another target as well to force a rebuild of the lua partition image? Not sure! Do LMK if you get a good workflow for it going.


RE: Flash lua only - yosthum - 2025-02-16

Gave this a whirl, and it seemed to work - thanks Smile
It does cycle through ports until it finds a device without any additional args set, so probably iffy if you have multiple esp32s connected (but that's not often the case for me :])