Page 1 of 1

Sonoff Basic and ESPeasy mega fw issue

Posted: 27 Sep 2018, 20:29
by Sp33dFr34k
Hi,

I've been trying for 2 days now to get the mega firmware running on my Sonoff Basic and feel like I'm missing something very obvious, but can't figure out what it is.

I've tried so far, which don't work:
ESP_Easy_mega-20180927_normal_ESP8266_1024.bin
ESP_Easy_mega-20180723_normal_ESP8266_1024.bin
ESP_Easy_mega-20180923_normal_ESP8266_1024.bin
ESP_Easy_mega-20180924_normal_ESP8266_1024.bin

These do work (old non-mega fw):
ESPEasy_R120_1024.bin
ESPEasy_R148_1024.bin
ESP_Easy_v2.0-20180316_normal_ESP8266_1024_DOUT.bin
ESP_Easy_v2.0-20180322_normal_ESP8266_1024_DOUT.bin

I've tried multiple flash methods;
FlashESP8266.exe
ESP8266Flasher.exe

I've tried erasing, flashing the blank bin in advance. Using the "minimal" version: ESPEasyUploaderMega_1024.bin

Nothing works and it drives me crazy :)

Oh yeah, by not working I mean there's no ESP_0 AP coming up. With the old R releases and the v2.0 ones everything works in one simple try.

Any ideas?

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 27 Sep 2018, 21:00
by grovkillen
Have you tried my flasher? Link in signature below.

And make sure you have the button pressed for 1-2 seconds after you hit the flash button. Just to make sure the ESP is in flash mode.

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 28 Sep 2018, 15:33
by Sp33dFr34k
Thanks for your reply.

I've used your tool (looks nice btw, except for the font but that's due to W10 I see), like the option of setting the wifi details in there.

Everything seems to go okay, but it won't connect. 100% positive my wifi details are correct.

Any ideas?

Here's the log:

######2018-09-28######
#######0.01.001#######
######FLASH INFO######
BIN file: ESP_Easy_mega-20180927_normal_ESP8266_1024.bin
COM port: (COM5) USB-SERIAL CH340
Baud rate: 115200
######POST FLASH######
Unit name: Sonoff2
Unit number: 2
Admin password:
WiFi SSID 1: Donno
WiFi password 1: Password
WiFi SSID 2:
WiFi password 2:
IP: <DHCP>
######FLASH LOG######
[esptool.exe -vv -cd nodemcu -cb 115200 -cp COM5 -ca 0x00000 -cf "C:\esp\BIN\ESP_Easy_mega-20180927_normal_ESP8266_1024.bin"]
[28-9-2018 15:27:55] esptool v0.4.12 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
[28-9-2018 15:27:55] setting board to nodemcu
[28-9-2018 15:27:55] setting baudrate from 115200 to 115200
[28-9-2018 15:27:55] setting port from to COM5
[28-9-2018 15:27:55] setting address from 0x00000000 to 0x00000000
[28-9-2018 15:27:55] espcomm_upload_file
[28-9-2018 15:27:55] espcomm_upload_mem
[28-9-2018 15:27:55] setting serial port timeouts to 1000 ms
[28-9-2018 15:27:55] opening bootloader
[28-9-2018 15:27:55] resetting board
[28-9-2018 15:27:55] trying to connect
[28-9-2018 15:27:55] flush start
[28-9-2018 15:27:55] setting serial port timeouts to 1 ms
[28-9-2018 15:27:55] setting serial port timeouts to 1000 ms
[28-9-2018 15:27:55] flush complete
[28-9-2018 15:27:55] espcomm_send_command: sending command header
[28-9-2018 15:27:55] espcomm_send_command: sending command payload
[28-9-2018 15:27:55] read 0, requested 1
[28-9-2018 15:27:55] trying to connect
[28-9-2018 15:27:55] flush start
[28-9-2018 15:27:55] setting serial port timeouts to 1 ms
[28-9-2018 15:27:55] setting serial port timeouts to 1000 ms
[28-9-2018 15:27:55] flush complete
[28-9-2018 15:27:55] espcomm_send_command: sending command header
[28-9-2018 15:27:55] espcomm_send_command: sending command payload
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] Uploading 749552 bytes from C:\esp\BIN\ESP_Easy_mega-20180927_normal_ESP8266_1024.bin to flash at 0x00000000
[28-9-2018 15:27:55] erasing flash
[28-9-2018 15:27:55] size: 0b6ff0 address: 000000
[28-9-2018 15:27:55] first_sector_index: 0
[28-9-2018 15:27:55] total_sector_count: 183
[28-9-2018 15:27:55] head_sector_count: 16
[28-9-2018 15:27:55] adjusted_sector_count: 167
[28-9-2018 15:27:55] erase_size: 0a7000
[28-9-2018 15:27:55] espcomm_send_command: sending command header
[28-9-2018 15:27:55] espcomm_send_command: sending command payload
[28-9-2018 15:27:55] setting serial port timeouts to 15000 ms
[28-9-2018 15:27:55] setting serial port timeouts to 1000 ms
[28-9-2018 15:27:55] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:27:55] writing flash
[28-9-2018 15:28:07] ................................................................................ [ 10% ]
[28-9-2018 15:28:18] ................................................................................ [ 21% ]
[28-9-2018 15:28:30] ................................................................................ [ 32% ]
[28-9-2018 15:28:41] ................................................................................ [ 43% ]
[28-9-2018 15:28:53] ................................................................................ [ 54% ]
[28-9-2018 15:29:04] ................................................................................ [ 65% ]
[28-9-2018 15:29:16] ................................................................................ [ 76% ]
[28-9-2018 15:29:27] ................................................................................ [ 87% ]
[28-9-2018 15:29:39] ................................................................................ [ 98% ]
[28-9-2018 15:29:40] ............ [ 100% ]
[28-9-2018 15:29:40] starting app without reboot
[28-9-2018 15:29:40] espcomm_send_command: sending command header
[28-9-2018 15:29:40] espcomm_send_command: sending command payload
[28-9-2018 15:29:40] espcomm_send_command: receiving 2 bytes of data
[28-9-2018 15:29:40] closing bootloader
[28-9-2018 15:29:40] flush start
[28-9-2018 15:29:40] setting serial port timeouts to 1 ms
[28-9-2018 15:29:40] setting serial port timeouts to 1000 ms
[28-9-2018 15:29:40] flush complete
[2018-09-28 15:29:40] DONE!
[2018-09-28 15:29:40] Waiting for user input (reset the unit).
[2018-09-28 15:29:58] Proceeding...
######POST FLASH######
[2018-09-28 15:29:59] Sending SERIAL: "..."
[2018-09-28 15:30:02] Sending SERIAL: " Name Sonoff2 "
[2018-09-28 15:30:04] Sending SERIAL: " Unit 2 "
[2018-09-28 15:30:06] Sending SERIAL: " WifiSSID Donno "
[2018-09-28 15:30:09] Sending SERIAL: " WifiKey Password "
[2018-09-28 15:30:12] Sending SERIAL: "Save"
[2018-09-28 15:30:14] Sending SERIAL: "WifiConnect"
[2018-09-28 15:30:14] Serial programming done.
[2018-09-28 15:30:28] ERROR: Unit do not have an IP address.
############################
[2018-09-28 15:30:28] JOB COMPLETED, over and out!

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 29 Sep 2018, 14:14
by t-minik
Hi
Check your Basic PCB
if you got ESP8266EX (bottom layer) + PUYA Chip (top layer).

so you should flash "ESP_Easy_mega-xxxxxxxx_dev_ESP8266PUYA_1024_VCC.bin"
for sure flash "blank_1MB.bin" then the release you want

only _VCC works for me but it seems to works perfectly.

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 29 Sep 2018, 16:05
by Sp33dFr34k
Hoorah, working straight up, 10 points for you mr. t-minik, thank you!!!

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 29 Sep 2018, 19:27
by TD-er
It was a PUYA problem?

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 29 Sep 2018, 19:29
by grovkillen
If so even Sonoff has started to use PUYA, not a good move by them if that's the case .

Re: Sonoff Basic and ESPeasy mega fw issue

Posted: 30 Sep 2018, 23:00
by t-minik
Yep, my new sonoff basic came with puya eeprom in it.

Hope it won't be a major problem increase.