Closed dcoredump closed 5 years ago
I will try to dump for you default.bin from my working alpha 3.2.x, have full dump but for 32Mb flash.
Ok, many thanks! And I have to install this instead of user1.bin?
First flash like before, with:
$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fs 4m -ff 40m 0x00000 boot_v1.6.bin 0x1000 user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
next:
$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fs 4m -ff 40m 0x7C000 esp_init_data_lucjan.bin
after that You will get esp-link with AP mode SSID Lucjan, try it:
Thanks for the file. Same as before. It is a kind of strange what happens on the serial console and my WiFi-scanner (smartphone): Some times the WiFi scanner show the AP but only for some seconds. If I try to connect I can see this on the serial console:
...
15294> Wifi check: mode=AP status=255
194676> add 1
194677> aid 1
194677> station: d6:ad:14:af:ff:04 join, AID = 1
194677> Wifi AP: station d6:ad:14:09:32:04 joined, AID = 1
196674> station: d6:ad:14:af:af:04 leave, AID = 1
196674> rm 1
But I don't get an IP adress and the SSID of the AP vanishes after some seconds...
After connecting try to navigate to the http://192.168.4.1/ Please post all logs, it's hard to understand what is happening. I don't see the dhcp requests. You may want to run a tcpdump to debug wifi session. (It's easy to do from linux/unix notebook console)
I tried to connect, but it is very problematic to do so if the AP is not visible - or only sometimes for a few seconds. When this happens I can try to connect, but I don't get an IP address - so I also cannot connect to http://192.168.4.1/ :(
I just tried again (after the ESP was disconnected fro USB for some hours and NOW IT WORKS!
Hmmm, this is very strange... I will do some more tests to find out what I was doing wrong for several hours...
Double check your power supply, you should have at least 300mA-500mA. You may need a capacitor close to the power pins also.
I used this one. There is a big capacitor on board, and in combination with USB power (500mA) I hoped this was enough.
I will try to reproduce everythin I have done with a new ESP8266-01. Let's see if the problems happen again. Perhaps I had to wait a little bit longer for repowering between the steps?
Big cap on board (2000uF on 3V line) is always good solution for esp8266 module stability.
Sometimes USB ports might be also no so powerful. At first look there should be not any problem. I am wondering about you ESP-01 modules flash memory, some of them had a famous PUYA flash chips with issues. You may want to take a look here: https://github.com/esp8266/Arduino/issues/4311
I tried again with flashing v3.0.14 like my first post. Between erasing, flashing and turning from programming mode to normal mode I disconnected the ESP and waited for a minute - just to be sure.
Most of the tries I can see an AP like "ESP_FEACDC". One time I got a connection and was on the web interface - erverythin was fine. The other times I was getting no IP address or a very slow access with broken web pages.
My current test shows on the serial console the following when trying to connect to the AP:
375> SER led=14
377> Wifi init, mode=AP
379> Wifi uses DHCP, hostname=esp-link
383> UART framing error (bad baud rate?)
383> "ip": "0.0.0.0"
389> "netmask": "0.0.0.0"
391> "gateway": "0.0.0.0"
394> "hostname": "<null>"
396> sleep enable,type: 2
399> Httpd init, conn=0x3fff3820
402> No user file system found!
405> Serbridge pins: reset=12 isp=13 swap=0
418> Reset cause: 0=normal
418> exccause=0 epc1=0x0 epc2=0x0 epc3=0x0 excvaddr=0x0 depc=0x0
419> Flash map 512KB:256/256, manuf 0xC8 chip 0x4013
423> ** esp-link v3.0.14-g963ffbb: ready, heap=21368
428> SNTP timesource set to us.pool.ntp.org with offset 0
433> initializing user application
437> Waiting for work to do...
440> mode : softAP(1a:fe:34:fe:16:d2)
444> add if1
445> dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
453> bcn 100
15399> Wifi check: mode=AP status=255
17282> add 1
17282> aid 1
17282> station: ac:dc:be:af:00:01 join, AID = 1
17283> Wifi AP: station ac:dc:be:af:00:01 joined, AID = 1
17315> err already associed!
17316> station: ac:dc:be:af:00:01 leave, AID = 1
17316> rm 1
17316> Wifi AP: station ac:dc:be:af:00:01 left, AID = 1
17320> max connection!
17322> max connection!
17324> max connection!
17327> max connection!
17329> max connection!
17331> max connection!
17333> max connection!
17335> max connection!
17337> max connection!
17340> max connection!
17342> max connection!
17344> max connection!
17346> max connection!
19289> add 1
19289> aid 1
19289> station: ac:dc:be:af:00:01 join, AID = 1
19289> Wifi AP: station ac:dc:be:af:00:01 joined, AID = 1
19328> err already associed!
19329> station: ac:dc:be:af:00:01 leave, AID = 1
19329> rm 1
19329> Wifi AP: station ac:dc:be:af:00:01 left, AID = 1
19333> max connection!
19335> max connection!
19339> max connection!
19340> max connection!
19342> max connection!
19344> max connection!
19346> max connection!
19374> max connection!
19382> max connection!
19383> max connection!
19384> max connection!
21776> add 1
21777> aid 1
21777> station: ac:dc:be:af:00:01 join, AID = 1
21777> Wifi AP: station ac:dc:be:af:00:01 joined, AID = 1
21929> err already associed!
21930> station: ac:dc:be:af:00:01 leave, AID = 1
21930> rm 1
21930> Wifi AP: station ac:dc:be:af:00:01 left, AID = 1
21934> max connection!
21936> max connection!
...
Perhaps this is a flash problem like @leodesigner mentioned? Have to get a magnifying glass for looking at the chip if it is a PUYA...
Regards, Holger
No puya has got manuf. ID 0x85
Ok... thanks @uzi18 . Last chance for this strange behaviour is a bad power source. I will try fo find a better one and try again.
try mobile phone charger minimum current 1A
Hm... coming back with a test of a 12W power supply - enough current on 5V but the same happens. I think my ESP8266s are "strange". I have ordered a new ESP8266-01S - hopefully this one will do with ESP-Link.
Hi, I damaged an esp-01, I connected the GPIO2 pin directly to the Arduino reset pin, which operates with 5V. In any case, the esp8266 should receive 5V (or more than 3.6V on its pins). In principle before getting damaged the esp-01 was strange too, then I noticed that it was very hot, so I noticed that there was an internal short circuit in one of its pins. I switched from esp-01 and added a 3.3V zener diode to the Arduino reset, to avoid sending 5V back to esp-01. Now it's working fine. P.S. the Arduino's TX pin had a resistive divider.
You can connect 5V I/O to esp, but do not power esp from 5V
Got my ESP-01S and flashed liked this:
# Setting ESP in programming mode (=> programming jumper)
$ esptool.py --port /dev/ttyUSB0 --baud 115200 erase_flash # after erasing: reconnect
$ curl -L http://s3.voneicken.com/esp-link/esp-link-v3.0.14-g963ffbb.tgz | tar xzf -
$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fs 32m -ff 80m 0x00000 boot_v1.6.bin 0x1000 user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin # Reconnecting again and removing programming jumper
Now ist works!!! So I can got and add the ESP to my Arduino-Weather-Station!
Thanks a lot!!!
Regards, Holger
First flash like before, with:
$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fs 4m -ff 40m 0x00000 boot_v1.6.bin 0x1000 user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
next:
$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fs 4m -ff 40m 0x7C000 esp_init_data_lucjan.bin
after that You will get esp-link with AP mode SSID Lucjan, try it:
Hi @uzi18 , please can you share the esp_init_data_lucjan.bin source code? Thanks, Renato
source code? It is binary file.
For whoever is looking (like me for days) how to flash an ESP01S with the following specs:
Manufacturer: 5e Device: 4014
You have to use flash frequency 80m, not 40m like in the example. So, for example, I used this to flash version 3.0.14.
esptool.py --port /dev/tty.usbserial-1460 --baud 460800 write_flash -fs 1MB -ff 80m -fm dout \ 0x00000 boot_v1.6.bin 0x1000 user1.bin \ 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
that's odd, but thanks for reporting!
@mieg Thank you greatly! I used esp-link a while ago, but got new chips recently and had an issue with the AP not showing after flashing.
esptool.py --port COM16 --baud 460800 write_flash -fs 1MB -ff 80m -fm dout 0x00000 boot_v1.6.bin 0x1000 user1.bin 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
The above worked for me on windows 10 powershell
First of all: Thanks for this famous piece of software!
But I have much trouble to get it running on my ESP8266-01 (I have several of them - all have the same problem). I tried to flash the image like described in here. I am using Linux esptool (installation description from "Installing esptool.py on Linux" from the same document) for this.
I tried the mentioned method for v2.2.3 - but here is a file missing (esp_init_data_default.bin). So I tried v3.0.14 and fixed the name of the boot file (because
boot_v1.6.bin
as needed). I got everything flashed but after starting I cannot see any ESP-AP from computer or smartphone. Sometimes there is an AP shown, but connecting fails.Here is a log what I have done (I also tried several other esp-link-versions and some other command line options for esptool - nothing helped :( ).
Has anyone an idea?
Thanks, Holger