Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement no_reset mode #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/esploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,9 @@ export class ESPLoader {
*/
async _connectAttempt(mode = "default_reset", resetStrategy: ResetStrategy): Promise<string> {
this.debug("_connect_attempt " + mode);
await resetStrategy.reset();
if (mode !== "no_reset") {
await resetStrategy.reset();
}
const waitingBytes = this.transport.inWaiting();
const readBytes = await this.transport.newRead(waitingBytes > 0 ? waitingBytes : 1, this.DEFAULT_TIMEOUT);

Expand Down Expand Up @@ -785,10 +787,10 @@ export class ESPLoader {
throw new ESPError(
`Software loader is resident at 0x${stubStart.toString(16).padStart(8, "0")}-0x${stubEnd
.toString(16)
.padStart(8, "0")}.
.padStart(8, "0")}.
Can't load binary at overlapping address range 0x${loadStart.toString(16).padStart(8, "0")}-0x${loadEnd
.toString(16)
.padStart(8, "0")}.
.padStart(8, "0")}.
Either change binary loading address, or use the no-stub option to disable the software loader.`,
);
}
Expand Down
Loading