Skip to content

Commit 92f5836

Browse files
committed
flash last fix
1 parent faf3bea commit 92f5836

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

docs/janos_flash.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ <h2>Browser support</h2>
387387
</div>
388388
<footer>
389389
Product of <a href="https://github.com/C5Lab/projectZero/">C5Lab/projectZero</a> -
390-
<span id="pageVersion" class="mono">Web flasher v1.0.8</span>.
390+
<span id="pageVersion" class="mono">Web flasher v1.0.10</span>.
391391
</footer>
392392

393393
<script type="module">
394-
import { ESPLoader, Transport } from "https://unpkg.com/esptool-js@0.6.0/bundle.js";
394+
import { ESPLoader, Transport } from "https://unpkg.com/esptool-js/bundle.js";
395395

396396
const ui = {
397397
status: document.getElementById("statusText"),
@@ -438,7 +438,7 @@ <h2>Browser support</h2>
438438
monitorConnected: false,
439439
};
440440

441-
const PAGE_VERSION = "1.0.9";
441+
const PAGE_VERSION = "1.0.10";
442442
const FLASH_BAUD = 115200;
443443
const monitorEncoder = new TextEncoder();
444444

@@ -966,15 +966,14 @@ <h2>Browser support</h2>
966966
if (!flashingFromStub) {
967967
log("ROM bootloader mode active. Stub is disabled for ESP32-C5 compatibility.");
968968
if (ui.eraseAll?.checked) {
969-
setStatus("Erasing flash from ROM bootloader");
970-
log("Erase requested. Running full flash erase before writes.");
971-
await state.esploader.eraseFlash();
969+
setStatus("ROM bootloader will erase only the regions being flashed.");
970+
log("Erase-all requested, but ESP32-C5 ROM mode cannot use stub-only full-chip erase. Proceeding with per-region erase during flash begin.");
972971
}
973972
}
974973
const flashOptions = {
975974
fileArray: files,
976975
flashSize: "8MB",
977-
eraseAll: !!ui.eraseAll?.checked,
976+
eraseAll: flashingFromStub && !!ui.eraseAll?.checked,
978977
compress: true,
979978
reportProgress: (fileIndex, written, total) => {
980979
const pct = Math.min(100, Math.round((written / total) * 100));

0 commit comments

Comments
 (0)