How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#51 Post by TD-er » 03 Feb 2023, 13:01

I will order those boards too, to have a test here and see why it may not enable the USB serial interface again.
I know the ESP32-S2 does have native USB support, so it may need to be set to announce itself as a serial device again to show logs etc.
I saw on AliExpress this board may have been pre-flashed using some MicroPython firmware, so I have no idea what that firmware may have done with some low level settings on the board.

Oetsch
Normal user
Posts: 195
Joined: 13 Jul 2020, 12:10

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#52 Post by Oetsch » 03 Feb 2023, 13:41

yes I recognized this "firmware" and the device was not empty/blank at delivery. It also opened a drive in windows where some files are stored and can be seen.

send you a message

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#53 Post by TD-er » 03 Feb 2023, 14:01

Already did some research and made an issue for it: https://github.com/letscontrolit/ESPEasy/issues/4493

bidrohini
Normal user
Posts: 101
Joined: 03 Nov 2022, 16:24

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#54 Post by bidrohini » 09 Feb 2023, 13:15

Was it a ready-made ESP32-S2 board or a custom-made board based on the ESP32-S2 chip? In case you've designed a custom-made board, there may be a hardware issue. You can post your design here for a review: https://www.pcbway.com/project/questionpublish

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#55 Post by Ath » 09 Feb 2023, 13:29

bidrohini wrote: 09 Feb 2023, 13:15 Was it a ready-made ESP32-S2 board or a custom-made board based on the ESP32-S2 chip?
There are some ESP32-S2 boards that only activate the serial port when in Flash-mode. That is also the case with the OP of this thread, AFAICS.
An issue was opened at the Github repo to be able to enable/activate that serial port from ESPEasy.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#56 Post by TD-er » 09 Feb 2023, 13:38

The ESP32-S2 does have the option to start an USB device.
As a matter of fact, there are several possible.
But as described in the linked issue, it needs to actually start this USB device from within the firmware.
Other firmwares like Tasmota, do appear to have different builds for ESP32-S2 units which do need this and also for units that have an external USB to serial port on it.

klrock
New user
Posts: 1
Joined: 09 Jul 2023, 04:12

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#57 Post by klrock » 09 Jul 2023, 04:23

I flashed the S2 mini with ESPEASY which indicated it was successful. However, when reconnecting the mini with button pressed, Device Manager shows the the device on COM7, yet the AP never appears in the wifi list. It apparently disconnects and reconnect frequently based on the beeps heard.
Not sure whaT TO DO NOW.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#58 Post by Ath » 09 Jul 2023, 09:13

Smells like a poor power source, as the unit seems to be rebooting constantly, probably when it tries to activate the WiFi. Can you try with a different cable or better power supply?

I assume you have installed an ESP32s2 with _CDC build? As that CDC part is required to get the usb-serial connection working properly on those type of boards, and other CPU type builds can't run on this CPU (that's one of the reasons there are so many .bin files).
And the initial flash upload has to be a .factory.bin file, as that includes the flash-partitioning and boot code. Later OTA updates require the regular .bin file.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to Flash ESP32-S2 / Wemos S2 mini v1.0.0 purple pcb with usb-c

#59 Post by TD-er » 09 Jul 2023, 11:11

Maybe also power cycle the unit after flashing.
The S2 is a bit strange and more often than not it doesn't get out of flash mode when toggling the GPIO-0/RST pins.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests