PlatformIO Community

Cannot upload to LoPy board


After trying to upload my code to my lopy board I get the following errors and I don’t know why.

Memory Usage ->
DATA:    [          ]   4.0% (used 51924 bytes from 1310720 bytes)
PROGRAM: [======    ]  56.8% (used 1117570 bytes from 1966080 bytes) v2.6
Configuring upload protocol...
AVAILABLE: esp-prog, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/ttyACM1
Uploading .pioenvs/lopy4/firmware_lopy4_v1.7.36.bin v2.6
Serial port /dev/ttyACM1
Traceback (most recent call last):
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 2959, in <module>
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 2952, in _main
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 2653, in main
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 463, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=True)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 440, in _connect_attempt
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 379, in sync
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 332, in command
p =
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 277, in read
return next(self._slip_reader)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/", line 1873, in slip_reader
read_bytes = if waiting == 0 else waiting)
File "/home/sicarii-13/.platformio/penv/local/lib/python2.7/site-packages/serial/", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
*** [upload] Error 1
==================================================== [ERROR] Took 123.87 seconds ====================================================

============================================================= [SUMMARY] =============================================================
Environment ebox                [SKIP]
Environment eboxtube            [SKIP]
Environment heltec              [SKIP]
Environment heltecv2            [SKIP]
Environment ttgov1              [SKIP]
Environment ttgov2              [SKIP]
Environment ttgov21old          [SKIP]
Environment ttgov21new          [SKIP]
Environment ttgofox             [SKIP]
Environment ttgobeam            [SKIP]
Environment fipy                [SKIP]
Environment lopy                [SKIP]
Environment lopy4               [ERROR]
Environment lolin32litelora     [SKIP]
Environment lolin32lora         [SKIP]
Environment lolin32lite         [SKIP]
Environment octopus32           [SKIP]
Environment generic             [SKIP]
==================================================== [ERROR] Took 123.87 seconds ==============


Do you have a serial monitor open on /dev/ttyACM1?