Closed neirbomn closed 5 years ago
You are not in flash mode. Have you connected GPIO 0 before you power it with 3.3V and connecting USB serial adapter to PC?
You are not in flash mode. Have you connected GPIO 0 before you power it with 3.3V and connecting USB serial adapter to PC?
Thanks for your response. I have flashed plenty of ESP8266 chips. These are proving somewhat stubborn. I'm aware what the error means and I have tried to rule out all obvious things. I can confirm USB Serial adapter is connected to MacBook when attempting to flash and yes GPIO0 is grounded when powering on.
From my initial post:
Power cycling S26 with GPIO0 grounded causes LED to remain unlit (expected behaviour). The momentary button on board has been suspect for others so have bypassed button and grounded across solder points for button. When powered without grounding GPIO0, grounding the wire causes red LED to come on, and when held in place green LED changes sequence of blinks to indicate readiness for pairing. Grounding during power cycle produces same behaviour as when pressing button.
I was under the impression power cycling the device with GPIO0 grounded and the LED being unlit was a good indication that it was in flash mode for S26 but aware that this error commonly means it isn't.
Could there be anything in this observation?
The Sonoff S26s (I bought 5 and now wish I hadn't!) have a sticker on the relay which says the unit is an S26I (capital i). I note all in the S26 section here ONLY have S26 on them (or I may be clutching at straws!).
Green led blinking sounds weired... It looks like something prevents to ground Gpio 0. Do you can upload some photos? Is there anything else connected to GPIO 0 on the board?
If it is similar to this https://github.com/arendst/Sonoff-Tasmota/issues/2808#issuecomment-419665963 you can desolder the ESP daughter board and try to flash it without anything else connected
I have already done this too, see my comments at end of thread.
Green LED blinking only occurs when you power device and then ground. This is the expected behaviour to pair if you wanted to use the eweLink app.
I will try one more device but I am waiting on some more flux to arrive to ensure I have good joints. I am going to video the whole process and will post the link here showing each and every check I've made along the way. If I get success I will say so and close issue. I just am struggling to see what I'm doing wrong.
@ascillato2 On yet another device... the procedure I am using doesn't flash the device. Video of the procedure used is here.
I would be very grateful if anyone can help me get to the bottom of this.
I can see no error in your flash process. Esptool.py is the reliable tool for flashing. Could you make good photos (front and rear side) of the Esp daugtherboard? Maybe something is connected to rx and tx lines from esp. This would explain the behaviour. You could measure tx and rx against gnd and 3.3V (not powered) how many kOhms you have here
Ok - here they are... Front of board.
Nothing much happening on the back of the board just the flash memory.
Measure if chip pin25 goes to ERX and if pin26 goes to ETX Between ETX to GND or 3.3V should be high ohm. Same for ERX
Both show 0 ohm between pin of ESP and the relevant solder pad meaning they are connected. Both show high between ETX -> GND (and 3.3V) and RTX -> GND (and 3.3V).
To eliminate the USB to serial device as a possible weak link, I have ordered a Sparkfun Beefy 3 to try the flashing procedure. I am starting to think the issue is not on the board but further up the chain. If ESPtool can't reach the S26 due to an error with the USB to serial device would I receive the Timed out waiting for packet header error?
What are you are doing would have been my suggestion too. i am thinking that your setup doesnt work with this device (why i dont know...) so buying a know to be good USB - serial is one point the other trying a different PC I see no reason why it shouldnt be possible to flash....
I'm pleased to report that after obtaining the Sparkfun Beefy that I have successfully flashed the S26. I had previously tried installing FTDI drivers on their website. In addition to buying this FTDI, I also uninstalled these in case there were conflicts between the Apple drivers and the FTDI drivers. Which one of these was responsible I'm not sure but I can now flash the devices! Yay!
status 0
:I started to post issue on esptool but believe it's more appropriate here due to last observation. I don't know if there's anything in it.
Sorry the details below are long but it saves me going over old ground! I know what the error means but I don't know why I'm getting it or how to troubleshoot any further with the S26. Any help gratefully received.
Full esptool.py command line as run:
Various... Using an FT232 (spec here)
and also
Using Freetronics USB to Serial ATmega16u2 MCU. (Specs here-ish)
Full output from esptool.py (please copy and paste all lines of output)
Using an FT232
Only change with ATmega16u2 MCU is port name change.
What is the expected behaviour?
Successful erasing of flash memory
Do you have any other information from investigating this?
Here is what I have checked (with two separate Sonoff S26s purchased from iTead):
esptool.py -p /dev/cu.***
andesptool.py -p /dev/tty.***
where *** depends on USB to serial device being used to try and erase flash.Is there any other information you can think of which will help us?
The Sonoff S26s (I bought 5 and now wish I hadn't!) have a sticker on the relay which says the unit is an S26I (capital i). I note all in the S26 section ONLY have S26 on them (or I may be clutching at straws!).