Upload Problem with Sonoff Touch (ESP8266)

Hi,
full disclaimer: total newb and trying to dig my way into the matter :slight_smile:

After some successful OTAs the Sonoff Touch with Firmware 1.70 should be my first FTDI flash. However, I won’t get arendst’s current tasmota uploaded. I already did

  • by another FTDI (now standard FTDI 232-based)
  • soldered the pins
  • changed the cables
  • switched to current Atom with current platform.io
    but I still receive the following error message after a successful build/compile:

FTDI Device:

/dev/cu.usbserial-A9UV7797

Hardware ID: USB VID:PID=0403:6001 SER=A9UV7797 LOCATION=20-1.1
Description: FT232R USB UART

Anzeige im Terminal-Monitor:

pio device monitor --port /dev/cu.usbserial-A9UV7797 --baud 115200
devname:Sonoff-Tasmota-master username$ pio device monitor --port /dev/cu.usbserial-A9UV7797 --baud 115200
— Miniterm on /dev/cu.usbserial-A9UV7797 115200,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —

Log beim Upload:

Processing sonoff (platform: espressif8266@1.5.0; board: esp01_1m; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
PLATFORM: Espressif 8266 > Espressif Generic ESP8266 ESP-01 1M
SYSTEM: ESP8266 80MHz 80KB RAM (1MB Flash)
Converting sonoff.ino
Library Dependency Finder → deleted link due to forum rules

LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 40 compatible libraries
Scanning dependencies…
Dependency Graph
|-- 1.0.2
| |-- 1.0
|-- 2.0.0
|-- 1.1
| |-- 1.1
| | |-- 1.0
| |-- 1.0
|-- 2.6
|-- 5.11.2
|-- 1.1
| |-- 1.0
|-- 0.5.1
| |-- 1.0
| | |-- 1.0
| |-- 1.0
| |-- 1.0
|-- 1.0
|-- 1.1.0

| |-- 1.0
|-- 2.2.1
|-- 1.0
| |-- 1.0
|-- 2.3.2
|-- 1.0.0
|-- 1.0
| |-- 1.0
| |--
| | |-- 1.0
|-- <Joba_Tsl2561> 2.0.1
| |-- 1.0
|-- 1.0
|-- 1.0
|-- <BME680_driver-bme680_v3.5.9>
|-- 1.0.0
|--
| |--
| | |-- 1.0
|-- <Mutichannel_Gas_Sensor> 0.0.1
| |-- 1.0
|--
| |-- 1.0
|-- 1.0.1
|-- 2.2.9
| |-- 1.0
|-- 1.0
Compiling .pioenvs/sonoff/src/sonoff.ino.cpp.o

Linking .pioenvs/sonoff/firmware.elf
Building .pioenvs/sonoff/firmware.bin
Checking size .pioenvs/sonoff/firmware.elf
Memory Usage → Redirecting...
DATA: [======= ] 66.3% (used 54344 bytes from 81920 bytes)
PROGRAM: [===== ] 51.8% (used 542995 bytes from 1048576 bytes)
Configuring upload protocol…
Looking for upload port…
Use manually specified: /dev/cu.usbserial-A9UV7797
Uploading .pioenvs/sonoff/firmware.bin
Uploading 547136 bytes from .pioenvs/sonoff/firmware.bin to flash at 0x00000000
warning: espcomm_send_command: didn’t receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
error: espcomm_upload_mem failed
*** [upload] Error 255
========================== [ERROR] Took 9.99 seconds ==========================
Environment sonoff [ERROR]
========================== [ERROR] Took 9.99 seconds ==========================

================================== [SUMMARY] ==================================
Environment sonoff-minimal [SKIP]
Environment sonoff-classic [SKIP]
Environment sonoff-knx [SKIP]
Environment sonoff-allsensors [SKIP]
Environment sonoff-BG [SKIP]
Environment sonoff-BR [SKIP]
Environment sonoff-CN [SKIP]
Environment sonoff-CZ [SKIP]
Environment sonoff-DE [SKIP]
Environment sonoff-ES [SKIP]
Environment sonoff-FR [SKIP]
Environment sonoff-GR [SKIP]
Environment sonoff-HU [SKIP]
Environment sonoff-IT [SKIP]
Environment sonoff-NL [SKIP]
Environment sonoff-PL [SKIP]
Environment sonoff-PT [SKIP]
Environment sonoff-RU [SKIP]
Environment sonoff-UK [SKIP]
Environment sonoff-TW [SKIP]

I don’t know how to move on from “Error 255”. Can anybody help me?
Thanks in advance

Here’s some more intel on what might be part of the problem. The Serial Monitor outputs the following as soon as I connect a Sonoff device.

When (physically) connecting to Sonoff Touch or Sonoff POW R2:

Traceback (most recent call last):
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py”, line 810, in __bootstrap_inner self.run()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py”, line 763, in run self.__target(*self.__args, **self.__kwargs)
File “/Users/degudejung/.platformio/penv/lib/python2.7/site-packages/serial/tools/miniterm.py”, line 445, in reader data = self.serial.read(self.serial.in_waiting or 1)
File “/Users/degudejung/.platformio/penv/lib/python2.7/site-packages/serial/serialposix.py”, line 509, in read raise SerialException(‘read failed: {}’.format(e))
SerialException: read failed: [Errno 6] Device not configured