Skip to content

Instantly share code, notes, and snippets.

@taf2
Created October 1, 2022 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taf2/cf0cc03d9be63b16cafcd378e9ae90e5 to your computer and use it in GitHub Desktop.
Save taf2/cf0cc03d9be63b16cafcd378e9ae90e5 to your computer and use it in GitHub Desktop.
Linking .pio/build/um_tinys3/firmware.elf
Retrieving maximum program size .pio/build/um_tinys3/firmware.elf
Checking size .pio/build/um_tinys3/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 14.1% (used 46240 bytes from 327680 bytes)
Flash: [== ] 23.6% (used 787149 bytes from 3342336 bytes)
Building .pio/build/um_tinys3/firmware.bin
esptool.py v4.2.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, 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...
Using manually specified: /dev/cu.usbmodem14101
Forcing reset using 1200bps open/close on port /dev/cu.usbmodem14101
Waiting for the new upload port...
Uploading .pio/build/um_tinys3/firmware.bin
esptool.py v4.2.1
Serial port /dev/cu.usbmodem14101
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:4f:a6:90
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000d0fff...
Compressed 15040 bytes to 10362...
Writing at 0x00000000... (100 %)
Wrote 15040 bytes (10362 compressed) at 0x00000000 in 0.3 seconds (effective 411.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 475.2 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 651.4 kbit/s)...
Hash of data verified.
Compressed 787536 bytes to 512652...
Writing at 0x00010000... (3 %)
Writing at 0x0001b77e... (6 %)
Writing at 0x000271d5... (9 %)
Writing at 0x0003520c... (12 %)
Writing at 0x0003b0e5... (15 %)
Writing at 0x000408b8... (18 %)
Writing at 0x00046375... (21 %)
Writing at 0x0004bd20... (25 %)
Writing at 0x000512a9... (28 %)
Writing at 0x000563bc... (31 %)
Writing at 0x0005b404... (34 %)
Writing at 0x000602ec... (37 %)
Writing at 0x000651f9... (40 %)
Writing at 0x0006a189... (43 %)
Writing at 0x0006f2b0... (46 %)
Writing at 0x00074275... (50 %)
Writing at 0x0007923a... (53 %)
Writing at 0x0007dff4... (56 %)
Writing at 0x00083bb3... (59 %)
Writing at 0x000890cf... (62 %)
Writing at 0x0008e359... (65 %)
Writing at 0x000935db... (68 %)
Writing at 0x000984b1... (71 %)
Writing at 0x0009d542... (75 %)
Writing at 0x000a26b0... (78 %)
Writing at 0x000a7b54... (81 %)
Writing at 0x000acf60... (84 %)
Writing at 0x000b2e13... (87 %)
Writing at 0x000b8511... (90 %)
Writing at 0x000c0b87... (93 %)
Writing at 0x000c8fee... (96 %)
Traceback (most recent call last):
File "/usr/local/Cellar/platformio/5.2.2/libexec/lib/python3.9/site-packages/serial/serialposix.py", line 575, in read
buf = os.read(self.fd, size - len(read))
OSError: [Errno 6] Device not configured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 375, in command
p = self.read()
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 307, in read
return next(self._slip_reader)
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 1402, in slip_reader
read_bytes = port.read(1 if waiting == 0 else waiting)
File "/usr/local/Cellar/platformio/5.2.2/libexec/lib/python3.9/site-packages/serial/serialposix.py", line 581, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: [Errno 6] Device not configured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/platformio/5.2.2/libexec/lib/python3.9/site-packages/serial/serialposix.py", line 398, in _reconfigure_port
orig_attr = termios.tcgetattr(self.fd)
termios.error: (6, 'Device not configured')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool.py", line 34, in <module>
esptool._main()
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/__init__.py", line 1004, in _main
main()
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/__init__.py", line 806, in main
operation_func(esp, args)
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/cmds.py", line 502, in write_flash
esp.flash_defl_block(block, seq, timeout=timeout)
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 108, in inner
return func(*args, **kwargs)
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 963, in flash_defl_block
self.check_command(
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 406, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "/Users/taf2/.platformio/packages/tool-esptoolpy/esptool/loader.py", line 393, in command
self._port.timeout = saved_timeout
File "/usr/local/Cellar/platformio/5.2.2/libexec/lib/python3.9/site-packages/serial/serialutil.py", line 372, in timeout
self._reconfigure_port()
File "/usr/local/Cellar/platformio/5.2.2/libexec/lib/python3.9/site-packages/serial/serialposix.py", line 401, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (6, 'Device not configured')
*** [upload] Error 1
================================================= [FAILED] Took 33.30 seconds =================================================
Environment Status Duration
------------- -------- ------------
um_tinys3 FAILED 00:00:33.305
============================================ 1 failed, 0 succeeded in 00:00:33.305 ============================================
--- Terminal on /dev/cu.usbmodem14101 | 115200 8-N-1
@taf2
Copy link
Author

taf2 commented Oct 1, 2022

Here's a picture of the tinys3 - it's in good condition and connected via usb c to my macbook pro in the background

IMG_0900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment