jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

No AP #565

Open roblomq opened 1 year ago

roblomq commented 1 year ago

I've successfully flashed an ESP-01 but after that there does no AP showup. Tried several times with several versions of the flash download tool tried several ESP-01 boards but all with the same result. Somebody a tip what I can try?

2023-04-09_23h40_56 2023-04-09_22h16_20

uzi18 commented 1 year ago

do you have any logs?

roblomq commented 1 year ago

No because I have no access to it.

uzi18 commented 1 year ago

Use serial port to debug situation.

roblomq commented 1 year ago

Switched SPI to DOUT and now it works.

Bear1012061 commented 11 months ago

I'm getting it to upload to my 1MB ESP-01, but my ESP-01 won't create a network... Any solutions? The SPI speed is 40MHz and the SPI mode is QIO. Should it say "is stub and send flash finish" when it is finished uploading?

flaviut commented 10 months ago

I was able to get the flash logs by using picocom /dev/ttyUSB1 -b 76800.

I got the following logs:

2nd boot version : 1.6
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 4Mbit(256KB+256KB)
no GPIO select!
jump to run user1 @ 1000

rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2408, room 16 
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0 
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0 
tail 8
chksum 0xd8
csum 0xd8

I then came across @uzi18's very helpful comment, and that fixed it:

esptool.py -b 1000000 -p /dev/ttyUSB1 write_flash --flash_freq 20m --flash_mode dio --flash_size 4MB 0x1000 user1.bin 0x0000 boot_v1.7.bin 0x3fc000 esp_init_data_default.bin 0x3fe000 blank.bin

I did have to download esp-link-v3.2.47 though, not the default v3.0.

uzi18 commented 10 months ago

@flaviut thx for info. 3.0 is out of date, 3.2 has lots of fixes.