Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save YuuichiAkagawa/1fe8790026af469732ebdc22ad1d9964 to your computer and use it in GitHub Desktop.
Save YuuichiAkagawa/1fe8790026af469732ebdc22ad1d9964 to your computer and use it in GitHub Desktop.
esptool.py for GR-LYCHEE CDC ACM
$ diff -up esptool.py.orig esptool.py
--- esptool.py.orig 2017-04-23 23:17:06.861069200 +0900
+++ esptool.py 2017-05-01 00:42:24.731308500 +0900
@@ -125,7 +125,9 @@ class ESPLoader(object):
# Maximum block sized for RAM and Flash writes, respectively.
ESP_RAM_BLOCK = 0x1800
- FLASH_WRITE_SIZE = 0x400
+ #workaround for GR-LYCHEE CDC ACM
+# FLASH_WRITE_SIZE = 0x400
+ FLASH_WRITE_SIZE = 32
# Default baudrate. The ROM auto-bauds, so we can use more or less whatever we want.
ESP_ROM_BAUD = 115200
@@ -319,6 +321,8 @@ class ESPLoader(object):
time.sleep(0.05)
self._port.setDTR(False) # IO0=HIGH, done
+ #workaround for GR-LYCHEE CDC ACM
+ self._port.setDTR(True)
self._port.timeout = 0.1
for _ in range(5):
try:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment