esp32tool 1.3.2 → 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.
Binary file
package/css/style.css CHANGED
@@ -179,36 +179,7 @@ div.clear {
179
179
  display: none;
180
180
  }
181
181
 
182
- /* Console Container */
183
- .console-container {
184
- height: 500px;
185
- overflow: hidden;
186
- transition: height 0.3s ease-in-out, visibility 0.3s ease-in-out;
187
- margin: 0;
188
- padding: 0;
189
- visibility: visible;
190
- }
191
-
192
- .console-container.hidden {
193
- height: 0;
194
- visibility: hidden;
195
- max-height: 0;
196
- }
197
-
198
- /* Mobile console optimization */
199
- @media (max-width: 768px) {
200
- .console-container {
201
- height: 350px;
202
- font-size: 13px;
203
- }
204
- }
205
-
206
- @media (max-width: 480px) {
207
- .console-container {
208
- height: 300px;
209
- font-size: 12px;
210
- }
211
- }
182
+ /* Console Container - OLD DEFINITION REMOVED - See bottom of file for new fullscreen version */
212
183
 
213
184
  .notSupported {
214
185
  padding: 1em;
@@ -2189,11 +2160,7 @@ div.clear {
2189
2160
  padding-right: 10px;
2190
2161
  }
2191
2162
 
2192
- /* Console optimization for small screens */
2193
- .console-container {
2194
- height: 300px;
2195
- font-size: 12px;
2196
- }
2163
+ /* Console optimization for small screens - REMOVED - Using fullscreen console now */
2197
2164
 
2198
2165
  /* Filesystem manager for small screens */
2199
2166
  .littlefs-manager {
@@ -2257,3 +2224,48 @@ div.clear {
2257
2224
  -webkit-tap-highlight-color: transparent;
2258
2225
  }
2259
2226
  }
2227
+
2228
+ /* Console Container Styling */
2229
+ .console-container {
2230
+ position: fixed;
2231
+ top: 0;
2232
+ left: 0;
2233
+ right: 0;
2234
+ bottom: 0;
2235
+ z-index: 1001; /* Above header and main content */
2236
+ background-color: #1c1c1c;
2237
+ margin: 0;
2238
+ padding: 0;
2239
+ }
2240
+
2241
+ .console-container.hidden {
2242
+ display: none;
2243
+ }
2244
+
2245
+ /* Ensure console wrapper fills the container */
2246
+ .console-container .esp32tool-console-wrapper {
2247
+ position: absolute;
2248
+ top: 0;
2249
+ left: 0;
2250
+ right: 0;
2251
+ bottom: 0;
2252
+ }
2253
+
2254
+ /* Hide header and commands when console is active */
2255
+ body.console-active .header {
2256
+ display: none !important;
2257
+ }
2258
+
2259
+ body.console-active #commands {
2260
+ display: none !important;
2261
+ }
2262
+
2263
+ body.console-active #notSupported {
2264
+ display: none !important;
2265
+ }
2266
+
2267
+ /* Remove padding from main when console is active */
2268
+ body.console-active .main {
2269
+ padding-top: 0 !important;
2270
+ overflow: hidden !important;
2271
+ }
package/dist/const.js CHANGED
@@ -128,7 +128,7 @@ export const ESP32S3_UARTDEV_BUF_NO_USB_OTG = 3; // The above var when USB-OTG i
128
128
  export const ESP32S3_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 4; // The above var when USB-JTAG/Serial is used
129
129
  export const ESP32C2_SPI_REG_BASE = 0x60002000;
130
130
  export const ESP32C2_BASEFUSEADDR = 0x60008800;
131
- export const ESP32C2_MACFUSEADDR = 0x60008800 + 0x044;
131
+ export const ESP32C2_MACFUSEADDR = ESP32C2_BASEFUSEADDR + 0x040;
132
132
  export const ESP32C2_SPI_USR_OFFS = 0x18;
133
133
  export const ESP32C2_SPI_USR1_OFFS = 0x1c;
134
134
  export const ESP32C2_SPI_USR2_OFFS = 0x20;
@@ -19,6 +19,10 @@ export declare class ESPLoader extends EventTarget {
19
19
  currentBaudRate: number;
20
20
  private _maxUSBSerialBaudrate?;
21
21
  private _reader?;
22
+ private SLIP_END;
23
+ private SLIP_ESC;
24
+ private SLIP_ESC_END;
25
+ private SLIP_ESC_ESC;
22
26
  private _isESP32S2NativeUSB;
23
27
  private _initializationSucceeded;
24
28
  private __commandLock;
@@ -200,16 +204,6 @@ export declare class ESPLoader extends EventTarget {
200
204
  * This is an alias for rtcWdtResetChipSpecific() for backwards compatibility
201
205
  */
202
206
  watchdogReset(): Promise<void>;
203
- /**
204
- * Check if current chip is using USB-OTG
205
- * Supports ESP32-S2 and ESP32-S3
206
- */
207
- usingUsbOtg(): Promise<boolean>;
208
- /**
209
- * Check if current chip is using USB-JTAG/Serial
210
- * Supports ESP32-S3 and ESP32-C3
211
- */
212
- usingUsbJtagSerial(): Promise<boolean>;
213
207
  /**
214
208
  * Get chip revision for ESP32-C3
215
209
  * Reads from EFUSE registers and calculates revision
@@ -222,25 +216,10 @@ export declare class ESPLoader extends EventTarget {
222
216
  */
223
217
  rtcWdtResetChipSpecific(): Promise<void>;
224
218
  /**
225
- * Helper: Check if USB-based WDT reset should be used for S2/S3
219
+ * Helper: USB-based WDT reset
226
220
  * Returns true if WDT reset was performed, false otherwise
227
221
  */
228
222
  private tryUsbWdtReset;
229
- /**
230
- * Chip-specific hard reset for ESP32-S2
231
- * Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
232
- */
233
- hardResetS2(): Promise<void>;
234
- /**
235
- * Chip-specific hard reset for ESP32-S3
236
- * Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
237
- */
238
- hardResetS3(): Promise<void>;
239
- /**
240
- * Chip-specific hard reset for ESP32-C3
241
- * Checks if using USB-JTAG/Serial and uses watchdog reset if necessary
242
- */
243
- hardResetC3(): Promise<void>;
244
223
  hardReset(bootloader?: boolean): Promise<void>;
245
224
  /**
246
225
  * @name macAddr
@@ -397,11 +376,10 @@ export declare class ESPLoader extends EventTarget {
397
376
  /**
398
377
  * @name detectUsbConnectionType
399
378
  * Detect if device is using USB-JTAG/Serial or USB-OTG (not external serial chip)
400
- * This helper extracts the detection logic from initialize() for reuse
379
+ * Uses USB PID (Product ID) for reliable detection - does NOT require chipFamily
401
380
  * @returns true if USB-JTAG or USB-OTG, false if external serial chip
402
- * @throws Error if detection fails and chipFamily is not set
403
381
  */
404
- private detectUsbConnectionType;
382
+ detectUsbConnectionType(): Promise<boolean>;
405
383
  /**
406
384
  * @name enterConsoleMode
407
385
  * Prepare device for console mode by resetting to firmware
@@ -415,6 +393,14 @@ export declare class ESPLoader extends EventTarget {
415
393
  * Detects USB-JTAG/Serial and USB-OTG devices and performs appropriate reset
416
394
  * @returns true if reconnect was performed, false otherwise
417
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;
418
404
  private _resetToFirmwareIfNeeded;
419
405
  /**
420
406
  * @name reconnectAndResume