Operating System: macOS 10.15.7
Arduino IDE : 2.0.3
Board: Wemos Lolin ESP32 S2 mini
I am struggeling to get a Wemos Lolin ESP32 S2 mini board working. What is working so far is uploading any sketch with the Arduino IDE v2.0.3. But manually reseting the board to enter the working mode will result in a disabled USB connection.
Uploading a sketch is working. Doing so, entering the DFU mode you need to hold GPIO0 button while short press RST button, then release GPIO0 button. This changes the USB address to /dev/tty.usbmodem01
. In DFU mode I can upload any sketch.
After successfully uploading the sketch the output message is:
"""
Wrote 259472 bytes (149454 compressed) at 0x00010000 in 2.8 seconds (effective 746.3 kbit/s)...
Hash of data verified.
Leaving...
WARNING: ESP32-S2FNR2 chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
"""
Resetting the chip manually means pressing the RST button again, which changes the USB address to /dev/tty.usbmodem14101
.
But this final USB modem connection is losing its connection periodically within a few seconds. This can be seen at the selection window of the Arduino IDE (the board appears and disappears periodically). As a result you cannot select the ESP32 board anymore. Only entering the DFU mode again will provide a stable USB connection (but in DFU mode you cannot get any Serial Monitor outputs).
Briefly summarizing the problem:
DFU mode enabled:
- stable USB connection
- successfully uploading any code
- USB address
/dev/tty.usbmodem01
DFU mode disabled:
- periodically losing connection
- failed to get any Serial monitor output
- USB address
/dev/tty.usbmodem14101
Does anyone have any suggestions, any ideas what the problem is and what I could try next?