WiFiDuck icon indicating copy to clipboard operation
WiFiDuck copied to clipboard

`serial.serialutil.SerialTimeoutException: Write timeout` when flashing ESP-12E on CJMCU-3212/DM-3212

Open didymus opened this issue 4 years ago â€ĸ 5 comments

I just followed the directions given. ATMEGA flashed fine. COM is there.

Expected behavior Honestly, after ATMEGA flashed perfectly fine I expect this to work.

Executable segment sizes:
IROM   : 386384          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 28600   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1316  )         - initialized variables (global, static) in RAM/HEAP 
RODATA : 3920  ) / 81920 - constants             (global, static) in RAM/HEAP 
BSS    : 26664 )         - zeroed variables      (global, static) in RAM/HEAP 
Sketch uses 420220 bytes (40%) of program storage space. Maximum is 1044464 bytes.
Global variables use 31900 bytes (38%) of dynamic memory, leaving 50020 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM11
Connecting...
Traceback (most recent call last):
  File "C:\Users\didymus\Documents\ArduinoData\packages\wifiduck\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 475, in connect
    last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 455, in _connect_attempt
    self.sync()
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 394, in sync
    timeout=SYNC_TIMEOUT)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 337, in command
    self.write(pkt)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 300, in write
    self._port.write(buf)
  File "C:/Users/didymus/Documents/ArduinoData/packages/wifiduck/hardware/esp8266/2.6.3/tools/pyserial\serial\serialwin32.py", line 323, in write
    raise writeTimeoutError
serial.serialutil.SerialTimeoutException: Write timeout
the selected serial port serial.serialutil.SerialTimeoutException: Write timeout
 does not exist or your board is not connected

Environment (please complete the following information):

  • OS: Win11 Pro 22000.120
  • Arduino IDE 1.8.15
  • CJMCU/DM-3212

Attempts

  • Downgraded the ESP-12E Wifi Duck boards version (previous edit shows this, updated with 2.6.3 output)
  • Tried as Generic ESP8266 instead of Node MCU ESP-12E (which it is) All of these changes still produce same error posted above.

Additional context I went on the 8266 forum and maybe the module itself is bad? I'm not sure. This is the first Arduino thing I've messed with.

Maybe there is supposed to be some timeout specified in the code that ArduinoIDE looks for? I will look into this further after an unrelated appointment I have in a few minutes.

  • https://www.lemonsys.cn/tech_110/ (documentation for device)

didymus avatar Aug 06 '21 18:08 didymus

Thanks for opening your first issue here! 🎉
👉 Be sure to:
1. 📖 Have a look at the Wiki and README for information
2. 🔍 Search for similar issues (open and closed)
3. âœī¸ Provide enough information to understand, recreate and help out with your problem
4. â„šī¸ Let us know if you find a solution
5. 📕 Close the issue when your problem has been solved

welcome[bot] avatar Aug 06 '21 18:08 welcome[bot]

same lmao

TQMatvey avatar Sep 29 '21 07:09 TQMatvey

Hi, sorry that the board you linked is working. It's a board that's not supported for this project. You can try following the instructions on their site but if they don't work, I can't help 🤷

spacehuhn avatar Oct 20 '21 11:10 spacehuhn

Hi! this is talked about in this discussion #30

Tapity04 avatar Jan 27 '22 13:01 Tapity04

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 19:07 stale[bot]