@maxgerhardt Thanks for taking care.
I think I’m doing it right: Pressing the Reset before connecting the usb cable. Then release the button and start the ‘upload’ of PIO.
Maybe I have killed the device because I wrongly connected TX and RX. Have to check with another device.
Going back to use the original SW/mode with eWeLink it shows the device is working well.
The FW was 1.6.0 and is now updated to 2.6.0 … maybe the old FW was not ‘able’ for an PIO upload? Will recheck …
Pressing reset before the USB cable (and thus power?) is connected shouldn’t have any effect?
They are two separate buttons. GPIO0 is labeld “FLASH” on NodeMCU boards and CH_EN (Chip Enable / reset) is the “RESET” button. At the moment power is applied (or the reboot button is pressed), GPIO0 must be low so that the ESP8266 will enter bootloader mode.
Maybe it could help to have a look at the update log, see here: https://paste.ubuntu.com/p/r85DzdpW4V/
On platformio.ini only env_default = sonoff-DE is enabled.
Is the size of the firmware.map file ok? -rw-rw-r-- 1 guenter guenter 1668688 Nov 2 13:03 firmware.map