Skip to content

Commit dc17610

Browse files
joinedclaude
andcommitted
Fix web flasher hard reset by using custom RTS toggle sequence
The default hard_reset mode only sets RTS=false, which is a no-op when RTS is already false after flashing. Use a custom reset sequence that explicitly toggles RTS high then low to guarantee a proper edge transition on the EN/reset pin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6036387 commit dc17610

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/js/flash.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ function initFlash() {
253253
await esploader.writeFlash(flashOptions);
254254

255255
log("Resetting device...");
256-
await esploader.after();
256+
// Use custom reset sequence instead of default hard_reset, which only
257+
// sets RTS=false. After flashing, RTS is already false so that's a
258+
// no-op. Explicitly toggle RTS high then low to guarantee an edge
259+
// transition on the EN/reset pin.
260+
await esploader.after("custom_reset", false, "R1|W100|R0");
257261

258262
setProgress("Done!", 100);
259263
log("Flash complete! Device has been reset and should be booting.");

0 commit comments

Comments
 (0)