I use sample code provided in viewtopic.php?f=31&t=227.
Code: Select all
SDK version:1.4.0(c599790)
mode : softAP(5e:cf:7f:12:2e:cf)
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
add 1
aid 1
station: 0c:e7:25:d8:38:60 join, AID = 1
Fatal exception (3):
epc1=0x4024f233
epc2=0x00000000
epc3=0x40105af3
epcvaddr=0x4024d92c
depc=0x00000000
tn_add=0x4024f230
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xe6
ho 0 tail 12 room 4
load 0x3ffe8000, len 2128, room 12
tail 4
chksum 0xab
load 0x3ffe8850, len 1408, room 4
tail 12
chksum 0x8a
csum 0x8a
The eagle.S excerpt pointed by epc1 shows:
Code: Select all
4024f230: ffd821 l32r a2, 4024f190 <dhcp_start+0xc8>
4024f233: 000232 l8ui a3, a2, 0
4024f236: 010242 l8ui a4, a2, 1
If disabling DHCP with wifi_softap_dhcps_stop(); at the end of user_init(), the module don't crashes.
I compile liblwip with
Code: Select all
cd third_party/
./make_lib.sh lwip
I compile my source with
Code: Select all
make BOOT=none APP=0 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=2
I flash module with
Code: Select all
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 eagle.flash.bin 0x20000 eagle.irom0text.bin 0xFE000 blank.bin
My module is ESP-07 with 8MBits =1MBytes
PS: Using liblwip binary provided in lib folder, there's no runtime problem