Open sblantipodi opened 1 year ago
I am flashing C3/S2 and S3 just fine using my setup As you can see in the source of my page, I am using 8.0.6 So maybe you can try using my setup, and/or switching to that version to test yourself.
@TD-er I'm a fan of ESPEasy and I have tried your setup already, it does not work even with your setup. Does it works with Lolin boards for you?
I have Lolin ESP32-S3 boards with 1 and 2 USB-C ports. On the 2 USB port board, I can flash them both via the "UART" and the "JTAG" port. However for the UART port, I sometimes need to keep the "IO0" button pressed and press RST to force it into flash mode like all other boards.
My SEED Studio C3 mini board was also a bit hard to get it initially flashed as I needed to press those boot and RST buttons to force it into flash mode too.
I also have an older C3 board with a typical "NodeMCU" board layout, which has the CH340 on board. That one is by far the easiest to flash.
N.B. I'm not sure if you have something like the Cura slicer software installed on your PC? My father also had lots and lots of unexplainable flashing issues, which appeared to be caused by the Cura slicer software polling quite aggressively on each serial port. So maybe also try on another computer too with different software being installed?
That trick of pressing the IO0 button then the RST one worked for the S3...
Still no way to flash the S2.
You keep the "IO0" button pressed, until the flashing starts?
thanks again for the answer. yes I tried that but same result.
The strange thing is that as soon as I connect the ESP it shows as COM20
if I press the IO0 button, then the RST one, I hear the ding dong sound in windows, esp web tools see the device as COM19. this thing happens on platformio too. it starts with COM20 but then it flashes on COM19.
I think that ESP Web Tools struggles in this part, S2 is the only device that does this...
This is the PlatformIO output.
CURRENT: upload_protocol = esptool
Looking for upload port...
Using manually specified: COM20
Forcing reset using 1200bps open/close on port COM20
Waiting for the new upload port...
Uploading .pio\build\glowwormluciferinfull_esp32s2\firmware.bin
esptool.py v4.5.1
Serial port COM19
Connecting...
Chip is ESP32-S2FNR2 (revision v0.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V1
Crystal is 40MHz
MAC: 84:f7:03:d7:d8:1a
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000effff...
Compressed 13600 bytes to 9549...
Writing at 0x00001000... (20 %)
Writing at 0x00001c2d... (40 %)
Writing at 0x00002799... (60 %)
Writing at 0x000031a7... (80 %)
Writing at 0x00003d2c... (100 %)
Wrote 13600 bytes (9549 compressed) at 0x00001000 in 0.2 seconds (effective 570.7 kbit/s)...
The Wemos S2 mini I have here (USB-C, no separate USB to serial chip) is a bit tricky to flash via the web flasher. I really need to press the "0" button, keep it pressed, press "RST", release "RST" and then reload the web flasher page, then select the flash procedure, select com port, etc. and when it is showing the progress meter with at least a few % I can release the "0" button.
@TD-er if I press the button until the end as per your suggestion it works, thank you very much, this is much appreciated.
I think that the issue can be closed but I have a last answer before closing it.
Do you think that esp web tools can by-pass these problems and flash this devices smoothly as PlatformIO does?
It would be difficult. platformio is switching serial devices half-way through. The browser web serial is going to have a problem with that.
ok, closing the issue then, thanks for the help TD-er and ssieb.
I reopen this issue because the web installer is seriously compromised by this problem, the entire purpose of the web installer is to make the installation process user friendly and it is not with ESP32-S2 and S3.
I think that this needs some attention...
I don't know what happened but there is no way to install the firmware on my ESP32-S2 from Lolin and on my Tiny S2.
I have tried by pressing the IO button, then reset button, listen for a ding when I press the rst btn, listen for a dong when I release the rst btn, then leaving the IO button pressed until the flash start but this is the results
@TD-er I'm sorry if I quote you, I downgraded ESP Web Tools from 9.2.1 to 8.0.6 and now it works since it starts by erasing the device.
Why newer version of ESP Web Tools works worse than the older one? :)
Why newer version of ESP Web Tools works worse than the older one? :)
No idea :)
v8.0.6 is not using espressif esptool.js under the hood. All later use espressif esptool.js. It is a (until now not found) bug in espressif esptool.js
@TD-er can you please walk me through the process you described for successfully flashing the Wemos S2 Mini in more detail? I tried to follow it:
I believe I am following your steps correctly but in my case I always end up with an error at the end of this procedure. Did I misunderstand your steps? Or maybe the procedure is flaky - does it work for you every time with these steps?
what works for me is:
if you accidentaly leave the 0 button before the loading progress, you need to start all over again
it's a very bad experience right now
Thanks for the steps! Unfortunately it seems that in my board's case it just doesn't want to work. I get an error the moment it should start flashing even though I believe I am following the steps correctly. I am new to ESP32 so I am not sure this is the key but I think I will give it a shot with a non-S2 board to see if it works better for me.
@TomasHubelbauer can you try flashing Luciferin? https://sblantipodi.github.io/glow_worm_luciferin
it uses a fork from tasmota "that should work better"
@sblantipodi Much better! I was able to flash the board with no special tricks, just by following the instructions for S2:
The flashing procedure went through successfully. I was not prompted to set a wi-fi password after the flash so I reset the board and clicked the Install button again. At this point I did see an option to set the wi-fi and I put in my SSID and password, but I got an error message that said "Disconnected". My SSID has a space in it which I think might be causing issues. This is unrelated to the flasher I think so probably not relevant?
@TomasHubelbauer yes that flasher is still not that stable with S2. hope to see a better support in the future for both versions.
currently, the web installer from esp-home is the one that works worse... the one from tasmota, works better but not 100% great.
I also use the one put together by @Jason2866 See here my flasher page: https://td-er.nl/ESPEasy/
After the flashing has started, you can let go of the '0' button.
Sometimes you need to power cycle the ESP32-S2 in order to get it to work.
Got a Wemos S2 mini and still cannot get it working with esphome or wled. The adafruit tool worked immediately as did luciferin interestingly.
Could this be a case of the individual projects not updating their esp-web-tools version?
@espilioto The use the esphome web tools, which have espressif esptool.js under the hood. My Web tools uses a fork of Adafruit Web serial esptool which i have enhanced for supporting C2 and C6. There are some small changes in reset timing and sequence for the USB port too. The changes are provided via a PR upstream to Adafruit and are merged. So the the Tasmota Web tool is totally different to the esphome Web tool.
Oh ok, that makes sense. Thanks for the reply.
@espilioto just for reference, Luciferin is now using the web tools from Jason2866 under the hood, that's why it works.
Hi everyone,
I have the same problem with S3 variants in my implementation. I'm using the last version, and it works fine for esp32 and esp32c3. I did also a test with the ESPHome installer and it works fine over my testing board. I think that maybe I have some issue with the merge binary generation? Maybe I have a mistake in this line?
/usr/bin/python3 ${PIO_HOME}/packages/tool-esptoolpy/esptool.py --chip esp32s3 merge_bin -o $FIRMDIR/${NAME}_${1}_rev${SRC_REV}_merged.bin --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0000 $OUTDIR/$1/bootloader.bin 0x8000 $OUTDIR/$1/partitions.bin 0xe000 ${PIO_HOME}/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 $OUTDIR/$1/firmware.bin
My implementation is here: https://canair.io/installer
And I'm using the ESP32S3 boards: TTGO T7 S3 and ESP32S3 Freenove (ESP32S3 CAM)
Thanks in advance.
Sorry, I found my mistake. In my CI script that write the manifest files, I forget add a rule for the ESP32-S3 family. That was the problem. Right now is working my new two variants for ESP32S3 🎉. Thanks.
As regards mini s2......In a nutshell tasmota/weld installed and working but not esphome for reasons explained here.
https://community.home-assistant.io/t/cant-install-esphome-on-s2-mini/621559/6?u=dkebler
it seems that the latest release 10.0.1 improved this problem. I don't know if it was improved previously but 10.0.1 works better now on ESP32-C3, S2, S3.
ESPs can be flashed without problems by setting them in flash mode, improv-wifi does not work always and you need to retry and retry before getting the "change wifi" option.
I've successfully setup my s2 mini following this : https://www.reddit.com/r/Esphome/comments/11a08za/comment/j9pes7c/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Basically using Adafruit ESPTool to upload the first firmware. And then I can see it in ESPhome and update OTA
As title. I have some errors when trying to flash on Lolin ESP32-S2 mini and Lolin ESP-S3 mini.
It works well on Lolin ESP32-C3 mini.,
I have tried on TinyS2 and TinyS3 from UM and same errors.
Are you sure that this web tool support S2 and S3?
The installer can be found here: https://sblantipodi.github.io/glow_worm_luciferin/