Tasmota: Sonoff SC v2.0 upload error [SOLVED]

Created on 2 Oct 2017  路  9Comments  路  Source: arendst/Tasmota

Hi,

I am trying to upload firmware to Sonoff SC.
I hacked tens of POWs and THs and Touches, SC not :(

I removed TX jumper, as on basic or pow pressed button when connect tu USB.
I tried to swap TX and RX pins and swap back.

Everytime I have upload error in Atom PlatformIO.

Sonoff SC is V2.0 written on the main board.

If I start SC without pressing button, it normally connect to wifi and works, so bad volatge is not the problem.

Could anybody help me pls?
20171002_120949

Most helpful comment

SOLVED ..... I broke my usb programmer. Maybe I swap 3,3 and GND and fired TX pin. So RX was OK and serial communication on flashed devices was OK.

I found secured steps for all devices:
1) first connect 3,3 and GND pins ... ONLY
2) if device lives .... LED is flashing, light up, etc ... you have right 3,3 and GND pins
3) if device doesn't live ... swap 3,3 and GND pins and continue to step 2)
4) if you have right 3,3 and GND, you can connect TX + RX without wsitching device off
5) if upload doesn't work, swap TX and RX and try again without switching device off
6) be fast!!!, remove tx and rx pins as soon as possible, because sonoff devices pulse voltage and current to USB programmers TX and RX and it can heat and destroy it

I hope this helps someone, because I destroyd 5 USB programmers till find the way :)

All 9 comments

I had similar issue as yours using Atom platform io, I was able to fix the issue using Arduino IDE.

Hardware check list: meter the header to see if your getting 3.3v on the FTDi USB to Serial board.

Arduino setup prerequisite

Board: "Generic ESP8266 Module"
Flash Mode: "DOUT" <<< Flash Frequency: "40MHz"
Upload Using: "Serial"
CPU Frequency: "80MHz"
Flash Size: "1M (no SPIFFS)" <<< Debug Port: "Disabled"
Debug Level: "None"
Reset Method: "ck"
Upload Speed: "115200"
Port: Your COM port connected to sonoff

More info
https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE

Also try swapping the RX, TX pins some USB to serial boards are setup differently. By reversing the pins, wouldn鈥檛 destroy the Sonoff however, giving 5V to a 3.3V device will. Pay close attention to the voltage.

Eg: RX - TX, TX - RX

OR

TX - TX, RX - RX

alton76, I tried to swap rx-tx, Iam going to try ArduinoIde, but I thought, if other sonoff devices whack working, SC should work too. I will report after try.

check that you are using DOUT, not DIO

Arduino IDE doesn't work too :(
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

Same errors as PlatformIO wrote.
Device should be in flash mode, because led is normally blinking, but in flashing mode not.

Voltage is 3,3 thx for attention.
When I disconnect and power up device, it normally works in eWeLink :(

Maybe RX and TX is not RX and TX, like in Sonoff self-locking device, where I must connect directly to the chip.

yes DOUT is set

I had a similar issue with my SC v2.0 - ones I connected my old FTDI to my SC the serial device disappeared on my laptop and flashing failed. I ended up buying a new FTDI to usb controller (have a look at ITEAD's Foca) and it worked w/o issues. Not 100% sure what the issue is, I previously used the same FTDI controller to flash various SONOFFs but I suspect the SC draws too much power for some cheap serial adapters?!

SOLVED ..... I broke my usb programmer. Maybe I swap 3,3 and GND and fired TX pin. So RX was OK and serial communication on flashed devices was OK.

I found secured steps for all devices:
1) first connect 3,3 and GND pins ... ONLY
2) if device lives .... LED is flashing, light up, etc ... you have right 3,3 and GND pins
3) if device doesn't live ... swap 3,3 and GND pins and continue to step 2)
4) if you have right 3,3 and GND, you can connect TX + RX without wsitching device off
5) if upload doesn't work, swap TX and RX and try again without switching device off
6) be fast!!!, remove tx and rx pins as soon as possible, because sonoff devices pulse voltage and current to USB programmers TX and RX and it can heat and destroy it

I hope this helps someone, because I destroyd 5 USB programmers till find the way :)

I also had issue with flashing SC - it was solved by connecting TX to TX and RX to RX.
All the rest sonoffs I've recently flashed had "proper" TX-RX and RX-TX mappings.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vujagig picture Vujagig  路  3Comments

smadds picture smadds  路  3Comments

j4k3 picture j4k3  路  3Comments

JoergZ2 picture JoergZ2  路  3Comments

jensuffhaus picture jensuffhaus  路  3Comments