Page 1 of 1

Updating WiFi Credentials

Posted: Wed Feb 21, 2018 6:03 pm
by bouali
I've freshly flashed my esp with a gate-module-firmware, for the beginning Nothing expected wrong. I configured the module network and works, but when I try to enter the module into his config mode to update the wifi(pass,ssid), it reboots and reconnects again to the same IP.

I respect these configurations:

PORT SETTINGS:

[CHANNEL0] RELAY1 GPIO4
[CHANNEL1] RELAY2 GPIO13
CFG BUTTON GPIO5 // pulled up to 3.3V - RES 10kohm // pressing and hold >5s...

LED
- GREEN GPIO12
- BLUE GPIO14

[CHANNEL2] INPUT_PORT1 GPIO12
[CHANNEL3] IMPUT_PORT2 GPIO14

pls help, thanks in advance.

Re: Updating WiFi Credentials

Posted: Wed Feb 21, 2018 6:23 pm
by pzygmunt
Probably you have wrong flash size.
gate-module-firmware is dedicated for 2MB chip

Re: Updating WiFi Credentials

Posted: Wed Feb 21, 2018 7:30 pm
by bouali
Ok, understood. my flash has 4MB size.
Thank you pzygmunt :)

Re: Updating WiFi Credentials

Posted: Wed Feb 21, 2018 7:33 pm
by pzygmunt
bouali wrote: Wed Feb 21, 2018 7:30 pm Ok, understood. my flash has 4MB size.
Thank you pzygmunt :)
So, should work. Only you need set 2MB size when flashing.

Re: Updating WiFi Credentials

Posted: Wed Feb 21, 2018 7:36 pm
by pzygmunt
... and don't forget upload esp_init_data_default.bin at 0x1fc000 when you set 2MB flash size

Re: Updating WiFi Credentials

Posted: Thu Feb 22, 2018 9:15 am
by bouali
I've checked the [ESP8266 SDK
Getting Started Guide].
I'll reflash it, and I will get back to you once I have a problem.
esp8266 flash  down.PNG
esp8266 flash down.PNG (109.3 KiB) Viewed 15272 times

Re: Updating WiFi Credentials

Posted: Thu Feb 22, 2018 2:15 pm
by bouali
Good, worked fine now.
Thank you ;)