Skip to content

fix: release DTR in hardReset so chip boots the application#38

Merged
deadprogram merged 1 commit intotinygo-org:mainfrom
jgangemi:jae/hardreset-dtr
Apr 24, 2026
Merged

fix: release DTR in hardReset so chip boots the application#38
deadprogram merged 1 commit intotinygo-org:mainfrom
jgangemi:jae/hardreset-dtr

Conversation

@jgangemi
Copy link
Copy Markdown
Contributor

When the prior operation left DTR=true (IO0 held LOW on typical UART
bridges), hardReset only toggled RTS and released the chip from reset
with IO0 still LOW, sending it back into the download-mode bootloader
instead of the application.

esptool.py's HardReset explicitly deasserts DTR between the EN=LOW and
EN=HIGH transitions. Mirror that: set DTR(false) before the final
RTS(false) on the non-USB path.

@deadprogram
Copy link
Copy Markdown
Member

@jgangemi can you please resolve the merge conflict? Thank you.

@jgangemi jgangemi force-pushed the jae/hardreset-dtr branch from 430aa8b to 0eba7d6 Compare April 24, 2026 18:19
When the prior operation left DTR=true (IO0 held LOW on typical UART
bridges), hardReset only toggled RTS and released the chip from reset
with IO0 still LOW, sending it back into the download-mode bootloader
instead of the application.

esptool.py's HardReset explicitly deasserts DTR between the EN=LOW and
EN=HIGH transitions. Mirror that: set DTR(false) before the final
RTS(false) on the non-USB path.
@jgangemi jgangemi force-pushed the jae/hardreset-dtr branch from 0eba7d6 to 16047e1 Compare April 24, 2026 18:21
@jgangemi
Copy link
Copy Markdown
Contributor Author

done

@deadprogram
Copy link
Copy Markdown
Member

Thanks for the fix @jgangemi now merging.

@deadprogram deadprogram merged commit 28646c3 into tinygo-org:main Apr 24, 2026
3 checks passed
@jgangemi jgangemi deleted the jae/hardreset-dtr branch April 25, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants