Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff basic does not boot #181

Closed
xoseperez opened this issue Aug 6, 2017 · 2 comments
Closed

Sonoff basic does not boot #181

xoseperez opened this issue Aug 6, 2017 · 2 comments

Comments

@xoseperez
Copy link
Owner

xoseperez commented Aug 6, 2017

Originally reported by: Andreas L. (Bitbucket: andreaslink, GitHub: andreaslink-de)


Hej, I have two sonoff basic and I made a simple ESPurna setup with Arduino. I flashed that successfully on my first sonoff and it runs like a charm incl. WiFi and MQTT. I did the exact same process again with my second sonoff basic, but it does not boot at all. No LED blinks, no serial output, but flashing process seemed to be successful according to Arduino IDE. And as said before, I did everything as I also did before (several times).

I compared both PCBs with a magnifying glass and I cannot see any differences. The only difference might be the ESP8266 (see attachments). Both have an ESP8266, but one was manufactured (as I guess) at 08-2017 and the other at 07-2017 (they are fairly new). But this can't be the issue, I would guess? Did anyone recognize a similar behaviour?

Sonoff_ESP8266_072017_08217_2017-08-06_1024px.jpg

When running it with the initial/original firmware it also works and runs as expected. So it's not damaged. I also took a backup of the former firmware and when I restore this original one with esptool, it works again as expected. So there seems to be "something different" that the ESPurna firmware or me during flashing can't handle, do you agree or do you have an idea?

BTW: I also tried to flash a simple LED-test-example to only let the GPIO 13 (LED) turn on and off again, but nothing happens, so I guess it simply does not boot at all, what I had flashed.

/Andreas

@xoseperez
Copy link
Owner Author

xoseperez commented Aug 6, 2017

Original comment by Andreas L. (Bitbucket: andreaslink, GitHub: andreaslink-de):


Ha, I guess I solved it by proceeding with googling it by myself :-). There is one really(!) important thing to keep in mind while flashing an ESP8266 to prevent sideeffects and this is the flashmode. This needs to be set to DOUT and then it works:

ESP8266-Flashmode_DOUT.jpg

I'll keep that in mind for the future and I can only recommend to update documentation to focus on this "feature" when using Arduino!

This might also solve other issues, when flashing with esptool.py use --flash_mode dout as an additional param.
Example would be:

esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_mode dout 0x00000 espurna-1.8.3-sonoff-debug.bin

PS: I finally found this hint here: https://github.com/arendst/Sonoff-Tasmota and this refers to https://github.com/arendst/Sonoff-Tasmota/wiki/Theo's-Tasmota-Tips with a more detailed explanation.

@xoseperez
Copy link
Owner Author

xoseperez commented Aug 6, 2017

Original comment by Andreas L. (Bitbucket: andreaslink, GitHub: andreaslink-de):


Issue was solved with flashing with flash mode DOUT in the Arduino IDE.

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

No branches or pull requests

1 participant