-
Notifications
You must be signed in to change notification settings - Fork 122
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
ESP32 S2 Mini / Adafruit ESPTool #515
Comments
This is linked to the #375 and esptool-js issue. Consol log output:
Consollog output of Version 8.0.6
|
Thank you for your workaround. I've also confirmed that I'm unable to flash any Wemos D1 Mini S2 using version 9.x or 10.x of esp-web-tools. Downgrading to 8.0.6 is a good workaround. |
@spuder I'm having the same issue. How did you get the downgrade to work? I ran the server locally with version 8.0.6 but the web page keeps saying : The demo is not available because your browser does not support Web Serial. Open this page in Google Chrome or Microsoft Edge instead. even if I'm using Chrome or edge EDIT : I did fix it, that was a issue with typescript. However with my Wemos Lolin S2 mini ESP32-S2 board on version 8.0.6 it simply says that your ESP32-S2 board is not supported |
You can see my working 0.8.6 code here. It is a Jekyll site |
You can test the S2 board upload using this link |
For tracking, this is related to the block size in USB-OTG mode: the ESP32-S2 and ESP32-S3 using the internal USB-OTG serial adapter accept only smaller block sizes. This was relatively silently fixed last week (but not released yet) via espressif/esptool-js@3a01130, which added the missing |
I confirmed that flashing an WEMOS LOLIN S2 works with espressif/esptool-js@3a01130. There is only one small code change required: --- a/src/flash.ts
+++ b/src/flash.ts
@@ -74,7 +74,7 @@ export const flash = async (
chipFamily = esploader.chip.CHIP_NAME as any;
- if (!esploader.chip.ROM_TEXT) {
+ if (!esploader.chip) {
fireStateEvent({
state: FlashStateType.ERROR,
message: `Chip ${chipFamily} is not supported`, (But this whole block probably needs to be removed: as far as I can tell |
Any idea when a release is coming? There are a lot of S2 minis waiting to be flashed at the moment. |
ESP32 S2 Mini uses dual UART USB and changes active USB port when switching to firmware upload mode. ESP Web Tool breaks with this board:
Connecting via Web Serial works well, selection menu shows "ESP32-S2" (when in firmware upload mode), else "TinyUSB".
"Prepare for First Use" and "INSTALL" both raise "Failed to initialize" after a few seconds of spinning wheel.
Browser-based "Adafruit ESPTool" (https://adafruit.github.io/Adafruit_WebSerial_ESPTool/) works like a charm. Apparently, this tool correctly handles the S2 Mini.
I'd like to either
a) understand how "Prepare For First Use" works and where the ESP Web Tools gets the four bin files that are mentioned in its manifest so I can use the Adafruit tool to provision S2 Mini with these files in the same way that "Prepare For First Use" would do if it worked correctly with S2 Mini.
b) better yet, get the ESP Web Tools to work with S2 Mini by adopting the technique used by Adafruit ESPTool
I cannot create ESPHome configuration and download its firmware, then upload with the Adafruit tool (which does works beautifully) since I need to provision 100s of boards. I need a generic reusable firmware that triggers "ADOPT" in ESPHome.
Any help or suggestion greatly appreciated. Many thanks.
The text was updated successfully, but these errors were encountered: