esp32tool 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apple-touch-icon.png +0 -0
- package/dist/esp_loader.d.ts +11 -29
- package/dist/esp_loader.js +244 -288
- package/dist/web/index.js +1 -1
- package/icons/icon-128.png +0 -0
- package/icons/icon-144.png +0 -0
- package/icons/icon-152.png +0 -0
- package/icons/icon-192.png +0 -0
- package/icons/icon-384.png +0 -0
- package/icons/icon-512.png +0 -0
- package/icons/icon-72.png +0 -0
- package/icons/icon-96.png +0 -0
- package/js/modules/esptool.js +1 -1
- package/js/script.js +19 -10
- package/package.json +1 -1
- package/screenshots/desktop.png +0 -0
- package/screenshots/mobile.png +0 -0
- package/src/esp_loader.ts +275 -366
- package/sw.js +1 -1
package/apple-touch-icon.png
CHANGED
|
Binary file
|
package/dist/esp_loader.d.ts
CHANGED
|
@@ -204,16 +204,6 @@ export declare class ESPLoader extends EventTarget {
|
|
|
204
204
|
* This is an alias for rtcWdtResetChipSpecific() for backwards compatibility
|
|
205
205
|
*/
|
|
206
206
|
watchdogReset(): Promise<void>;
|
|
207
|
-
/**
|
|
208
|
-
* Check if current chip is using USB-OTG
|
|
209
|
-
* Supports ESP32-S2 and ESP32-S3
|
|
210
|
-
*/
|
|
211
|
-
usingUsbOtg(): Promise<boolean>;
|
|
212
|
-
/**
|
|
213
|
-
* Check if current chip is using USB-JTAG/Serial
|
|
214
|
-
* Supports ESP32-S3 and ESP32-C3
|
|
215
|
-
*/
|
|
216
|
-
usingUsbJtagSerial(): Promise<boolean>;
|
|
217
207
|
/**
|
|
218
208
|
* Get chip revision for ESP32-C3
|
|
219
209
|
* Reads from EFUSE registers and calculates revision
|
|
@@ -226,25 +216,10 @@ export declare class ESPLoader extends EventTarget {
|
|
|
226
216
|
*/
|
|
227
217
|
rtcWdtResetChipSpecific(): Promise<void>;
|
|
228
218
|
/**
|
|
229
|
-
* Helper:
|
|
219
|
+
* Helper: USB-based WDT reset
|
|
230
220
|
* Returns true if WDT reset was performed, false otherwise
|
|
231
221
|
*/
|
|
232
222
|
private tryUsbWdtReset;
|
|
233
|
-
/**
|
|
234
|
-
* Chip-specific hard reset for ESP32-S2
|
|
235
|
-
* Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
|
|
236
|
-
*/
|
|
237
|
-
hardResetS2(): Promise<void>;
|
|
238
|
-
/**
|
|
239
|
-
* Chip-specific hard reset for ESP32-S3
|
|
240
|
-
* Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
|
|
241
|
-
*/
|
|
242
|
-
hardResetS3(): Promise<void>;
|
|
243
|
-
/**
|
|
244
|
-
* Chip-specific hard reset for ESP32-C3
|
|
245
|
-
* Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
|
|
246
|
-
*/
|
|
247
|
-
hardResetC3(): Promise<void>;
|
|
248
223
|
hardReset(bootloader?: boolean): Promise<void>;
|
|
249
224
|
/**
|
|
250
225
|
* @name macAddr
|
|
@@ -401,11 +376,10 @@ export declare class ESPLoader extends EventTarget {
|
|
|
401
376
|
/**
|
|
402
377
|
* @name detectUsbConnectionType
|
|
403
378
|
* Detect if device is using USB-JTAG/Serial or USB-OTG (not external serial chip)
|
|
404
|
-
*
|
|
379
|
+
* Uses USB PID (Product ID) for reliable detection - does NOT require chipFamily
|
|
405
380
|
* @returns true if USB-JTAG or USB-OTG, false if external serial chip
|
|
406
|
-
* @throws Error if detection fails and chipFamily is not set
|
|
407
381
|
*/
|
|
408
|
-
|
|
382
|
+
detectUsbConnectionType(): Promise<boolean>;
|
|
409
383
|
/**
|
|
410
384
|
* @name enterConsoleMode
|
|
411
385
|
* Prepare device for console mode by resetting to firmware
|
|
@@ -419,6 +393,14 @@ export declare class ESPLoader extends EventTarget {
|
|
|
419
393
|
* Detects USB-JTAG/Serial and USB-OTG devices and performs appropriate reset
|
|
420
394
|
* @returns true if reconnect was performed, false otherwise
|
|
421
395
|
*/
|
|
396
|
+
/**
|
|
397
|
+
* @name _clearForceDownloadBootIfNeeded
|
|
398
|
+
* Read and clear the force download boot flag if it is set
|
|
399
|
+
* This should ONLY be called when on ROM (not stub) and before WDT reset
|
|
400
|
+
* Clearing it on every connect causes issues with flash operations
|
|
401
|
+
* Returns true if the flag was cleared, false if it was already clear
|
|
402
|
+
*/
|
|
403
|
+
private _clearForceDownloadBootIfNeeded;
|
|
422
404
|
private _resetToFirmwareIfNeeded;
|
|
423
405
|
/**
|
|
424
406
|
* @name reconnectAndResume
|