PlatformIO Community

Cannot upload to LoPy board


#1

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

Memory Usage -> http://bit.ly/pio-memory-usage
DATA:    [          ]   4.0% (used 51924 bytes from 1310720 bytes)
PROGRAM: [======    ]  56.8% (used 1117570 bytes from 1966080 bytes)
esptool.py 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
esptool.py v2.6
Serial port /dev/ttyACM1
Connecting........_
Traceback (most recent call last):
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 2959, in <module>
_main()
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 2952, in _main
main()
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 2653, in main
esp.connect(args.before)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 463, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=True)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 440, in _connect_attempt
self.sync()
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 379, in sync
timeout=SYNC_TIMEOUT)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 332, in command
p = self.read()
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 277, in read
return next(self._slip_reader)
File "/home/sicarii-13/.platformio/packages/tool-esptoolpy/esptool.py", line 1873, in slip_reader
read_bytes = port.read(1 if waiting == 0 else waiting)
File "/home/sicarii-13/.platformio/penv/local/lib/python2.7/site-packages/serial/serialposix.py", 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 ==============

#2

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