Skip to content

Chrome 143 breaks ESP32-S2 #227

@MatzElectronics

Description

@MatzElectronics

Chrome 143 on MacOS and Windows appears to break ESPTool-js when trying to connect to an ESP32-S2.
I was able to solve it by placing a 100ms delay between lines 436 and 437:

esptool-js/src/esploader.ts

Lines 420 to 439 in 84ff8a9

/**
* Write a serial command to the chip
* @param {number} op - Operation number
* @param {Uint8Array} data - Unsigned 8 bit array
* @param {number} chk - channel number
* @param {boolean} waitResponse - wait for response ?
* @param {number} timeout - timeout number in milliseconds
* @returns {Promise<[number, Uint8Array]>} Return a number and a 8 bit unsigned integer array.
*/
async command(
op: number | null = null,
data: Uint8Array = new Uint8Array(0),
chk = 0,
waitResponse = true,
timeout = this.DEFAULT_TIMEOUT,
): Promise<[number, Uint8Array]> {
if (op != null) {
if (this.transport.tracing) {
this.transport.trace(
`command op:0x${op.toString(16).padStart(2, "0")} data len=${data.length} wait_response=${

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions