Error in new ESP8266_MESH_DEMO

yudxp
Posts: 9
Joined: Fri Aug 14, 2015 9:28 pm

Error in new ESP8266_MESH_DEMO

Postby yudxp » Mon May 30, 2016 1:17 pm

Hello sir

When i am using your new code from https://github.com/espressif/ESP8266_MESH_DEMO and burn it to my esp, i got error like this

Code: Select all

ESP-TOUCH FAIL
debug: channel:1
 ...ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
ieee80211_action_vendor_spec_attach register recv call back error
E:M 1684829752
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1c3, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000018, depc=0x00000000
stack sp is 3ffffe20
*** stack dump start ***
PC = 0x4000e1c3
3ffffe20: 4027c950 3fff1148 00000006 3fff1148
3ffffe30: 646c762c 4025a2df 3fff1148 3fff0d88
3ffffe40: 00000006 60000600 3ffee518 3ffee494
3ffffe50: 3ffffe70 4025a2c5 0000000a 00000000
3ffffe60: 3ffffe80 4024f3fb 3ffee494 3fff0d88
3ffffe70: 00000018 0871a193 00000001 0871a193
3ffffe80: 4027c5e8 00000064 3ffffeb8 402554bf
3ffffe90: 3ffee494 3fff0d88 0871a193 00000064
3ffffea0: 00000064 402554a6 3fff0d88 0871a193
3ffffeb0: a234fe1a 3fff2c92 00000000 00000000
3ffffec0: 00000000 00000000 00000000 00000000
3ffffed0: 00000000 00000000 00000000 00000000
3ffffee0: 00000000 00000000 00000000 00000000
3ffffef0: 402566e3 3fff0d88 00000001 00000000
3fffff00: 00000000 3ffee518 3ffe9a8c 00000000
3fffff10: 40241f99 00000003 00000003 0000007d
3fffff20: 40242107 00000003 00000001 0871a193
3fffff30: 3fff08f8 4024216e 3fff08f8 3fff0450
3fffff40: 00000000 3fff0450 00000000 00000001
3fffff50: 40270ab4 40270a95 0060d250 00000000
3fffff60: 00000000 40245360 40245368 0871a193
3fffff70: 60000600 3ffe9ac0 3fff0450 40240b11
3fffff80: 40240b56 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffe9ae8 3fffdab0 00000000 d2000000
3fffffa0: 40000f49 40000f49 ffffff00 55aa55aa
3fffffb0: 40000e19 40001878 00000002 00000000
3fffffc0: 00000000 000000f4 0000001c 40100270
3fffffd0: 40100276 00000002 00000000 00008e90
3fffffe0: 4010000d 00000fd4 0000000c 331b908c
3ffffff0: 4000044c 00000000 00000000 c137a672
*** stack dump end ***

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset


and when i am using old one, Case:
2 esp connected and can sent data, then my router suddenly down (off). After that esp try to rescan for wifi and suddenly he loop in "mesh sent fail" and not trying recconect to wifi hotspot that on (1 minute after it off)

Code: Select all

recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance ;
mesh_json_proto_parser
len:43, data:RSSI:-47 Connected:1 ID:10654252 Ping:4999

free heap:42888
recv entrance 9
mesh_json_proto_parser
len:41, data:RSSI:-45 Connected:1 ID:10654252 Ping:13

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance 9
mesh_json_proto_parser
len:41, data:RSSI:-44 Connected:1 ID:10654252 Ping:42

recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42888
recv entrance ;
mesh_json_proto_parser
len:43, data:RSSI:-45 Connected:1 ID:10654252 Ping:1999

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42384
free heap:41888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
free heap:41368
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

bcn_timout,ap_probe_send_start
free heap:40856
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
sta sent error: -7, discard pkt
disconn, ip:192.168.1.145 port:7000
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
sta_reconn ERR -11, ip:192.168.1.145 rp:7000, lp:45451
disconn, ip:2.255.255.2 port:24384
station: 18:fe:34:a2:94:15 leave, AID = 1
rm 1
f r0, ap_discon, RIP: 2.255.255.2RP = 24384
scandone
f r0, scandone
f r0, scandone
espconn_tcp_delete 1, 7000
no ap to join
f r0, free heap:45064
sta sent error: -12, discard pkt
scandone
f r0, free heap:44976
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
pkt-idx:0, cidx:-1, usr:1
bcast mesh sent fail
scandone
no ap to join
f r0, scandone
free heap:45456
sta sent error: -12, discard pkt
f 0, scandone
f r0, scandone
f r0, free heap:45136
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
scandone
f r0, scandone
f r0, recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

scandone
f r0, free heap:45216
sta sent error: -12, discard pkt
scandone
no ap to join
f r0, scandone
f r0, free heap:45216
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
sta sent error: -12, discard pkt
scandone
no ap to join
f r0, free heap:44976
sta sent error: -12, discard pkt
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

scandone
f r0, free heap:45056
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
scandone
no ap to join
f r0, scandone
f r0, free heap:44976
sta sent error: -12, discard pkt
scandone
no ap to join
bcast mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
bcast mesh sent fail
free heap:45648


thanks for your help

ESP_Alen
Posts: 208
Joined: Tue Mar 01, 2016 2:01 pm

Re: Error in new ESP8266_MESH_DEMO

Postby ESP_Alen » Mon May 30, 2016 1:36 pm

yudxp wrote:Hello sir

When i am using your new code from https://github.com/espressif/ESP8266_MESH_DEMO and burn it to my esp, i got error like this

Code: Select all

ESP-TOUCH FAIL
debug: channel:1
 ...ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
ieee80211_action_vendor_spec_attach register recv call back error
E:M 1684829752
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1c3, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000018, depc=0x00000000
stack sp is 3ffffe20
*** stack dump start ***
PC = 0x4000e1c3
3ffffe20: 4027c950 3fff1148 00000006 3fff1148
3ffffe30: 646c762c 4025a2df 3fff1148 3fff0d88
3ffffe40: 00000006 60000600 3ffee518 3ffee494
3ffffe50: 3ffffe70 4025a2c5 0000000a 00000000
3ffffe60: 3ffffe80 4024f3fb 3ffee494 3fff0d88
3ffffe70: 00000018 0871a193 00000001 0871a193
3ffffe80: 4027c5e8 00000064 3ffffeb8 402554bf
3ffffe90: 3ffee494 3fff0d88 0871a193 00000064
3ffffea0: 00000064 402554a6 3fff0d88 0871a193
3ffffeb0: a234fe1a 3fff2c92 00000000 00000000
3ffffec0: 00000000 00000000 00000000 00000000
3ffffed0: 00000000 00000000 00000000 00000000
3ffffee0: 00000000 00000000 00000000 00000000
3ffffef0: 402566e3 3fff0d88 00000001 00000000
3fffff00: 00000000 3ffee518 3ffe9a8c 00000000
3fffff10: 40241f99 00000003 00000003 0000007d
3fffff20: 40242107 00000003 00000001 0871a193
3fffff30: 3fff08f8 4024216e 3fff08f8 3fff0450
3fffff40: 00000000 3fff0450 00000000 00000001
3fffff50: 40270ab4 40270a95 0060d250 00000000
3fffff60: 00000000 40245360 40245368 0871a193
3fffff70: 60000600 3ffe9ac0 3fff0450 40240b11
3fffff80: 40240b56 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffe9ae8 3fffdab0 00000000 d2000000
3fffffa0: 40000f49 40000f49 ffffff00 55aa55aa
3fffffb0: 40000e19 40001878 00000002 00000000
3fffffc0: 00000000 000000f4 0000001c 40100270
3fffffd0: 40100276 00000002 00000000 00008e90
3fffffe0: 4010000d 00000fd4 0000000c 331b908c
3ffffff0: 4000044c 00000000 00000000 c137a672
*** stack dump end ***

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset


and when i am using old one, Case:
2 esp connected and can sent data, then my router suddenly down (off). After that esp try to rescan for wifi and suddenly he loop in "mesh sent fail" and not trying recconect to wifi hotspot that on (1 minute after it off)

Code: Select all

recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance ;
mesh_json_proto_parser
len:43, data:RSSI:-47 Connected:1 ID:10654252 Ping:4999

free heap:42888
recv entrance 9
mesh_json_proto_parser
len:41, data:RSSI:-45 Connected:1 ID:10654252 Ping:13

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance 9
mesh_json_proto_parser
len:41, data:RSSI:-44 Connected:1 ID:10654252 Ping:42

recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42888
recv entrance ;
mesh_json_proto_parser
len:43, data:RSSI:-45 Connected:1 ID:10654252 Ping:1999

free heap:42888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

free heap:42384
free heap:41888
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
free heap:41368
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

bcn_timout,ap_probe_send_start
free heap:40856
idx: 0, mac:b0:48:7a:ce:81:90
idx: 1, mac:18:fe:34:a2:94:15
sta sent error: -7, discard pkt
disconn, ip:192.168.1.145 port:7000
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
sta_reconn ERR -11, ip:192.168.1.145 rp:7000, lp:45451
disconn, ip:2.255.255.2 port:24384
station: 18:fe:34:a2:94:15 leave, AID = 1
rm 1
f r0, ap_discon, RIP: 2.255.255.2RP = 24384
scandone
f r0, scandone
f r0, scandone
espconn_tcp_delete 1, 7000
no ap to join
f r0, free heap:45064
sta sent error: -12, discard pkt
scandone
f r0, free heap:44976
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
pkt-idx:0, cidx:-1, usr:1
bcast mesh sent fail
scandone
no ap to join
f r0, scandone
free heap:45456
sta sent error: -12, discard pkt
f 0, scandone
f r0, scandone
f r0, free heap:45136
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
scandone
f r0, scandone
f r0, recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

scandone
f r0, free heap:45216
sta sent error: -12, discard pkt
scandone
no ap to join
f r0, scandone
f r0, free heap:45216
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
sta sent error: -12, discard pkt
scandone
no ap to join
f r0, free heap:44976
sta sent error: -12, discard pkt
recv entrance /
mesh_json_proto_parser
len:31, data:{"bcast":"18:fe:34:a2:92:2c"}

scandone
f r0, free heap:45056
pkt-idx:0, cidx:-1, usr:1
mesh sent fail
scandone
no ap to join
f r0, scandone
f r0, free heap:44976
sta sent error: -12, discard pkt
scandone
no ap to join
bcast mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
bcast mesh sent fail
free heap:45648
mesh sent fail
free heap:45648
mesh sent fail
mesh sent fail
free heap:45648
mesh sent fail
bcast mesh sent fail
free heap:45648


thanks for your help


We will test this afternoon.

ESP_Alen
Posts: 208
Joined: Tue Mar 01, 2016 2:01 pm

Re: Error in new ESP8266_MESH_DEMO

Postby ESP_Alen » Mon May 30, 2016 2:55 pm

yudxp wrote:Hello sir

When i am using your new code from https://github.com/espressif/ESP8266_MESH_DEMO and burn it to my esp, i got error like this
[code]ESP-TOUCH FAIL
debug: channel:1
...ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
���... ieee80211_action_vendor_spec_attach register recv call back error
ieee80211_action_vendor_spec_attach register recv call back error
E:M 1684829752
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1c3, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000018, depc=0x00000000
stack sp is 3ffffe20
*** stack dump start ***
PC = 0x4000e1c3
3ffffe20: 4027c950 3fff1148 00000006 3fff1148
3ffffe30: 646c762c 4025a2df 3fff1148 3fff0d88
3ffffe40: 00000006 60000600 3ffee518 3ffee494
3ffffe50: 3ffffe70 4025a2c5 0000000a 00000000
3ffffe60: 3ffffe80 4024f3fb 3ffee494 3fff0d88
3ffffe70: 00000018 0871a193 00000001 0871a193
3ffffe80: 4027c5e8 00000064 3ffffeb8 402554bf
3ffffe90: 3ffee494 3fff0d88 0871a193 00000064
3ffffea0: 00000064 402554a6 3fff0d88 0871a193
3ffffeb0: a234fe1a 3fff2c92 00000000 00000000
3ffffec0: 00000000 00000000 00000000 00000000
3ffffed0: 00000000 00000000 00000000 00000000
3ffffee0: 00000000 00000000 00000000 00000000
3ffffef0: 402566e3 3fff0d88 00000001 00000000
3fffff00: 00000000 3ffee518 3ffe9a8c 00000000
3fffff10: 40241f99 00000003 00000003 0000007d
3fffff20: 40242107 00000003 00000001 0871a193
3fffff30: 3fff08f8 4024216e 3fff08f8 3fff0450
3fffff40: 00000000 3fff0450 00000000 00000001
3fffff50: 40270ab4 40270a95 0060d250 00000000
3fffff60: 00000000 40245360 40245368 0871a193
3fffff70: 60000600 3ffe9ac0 3fff0450 40240b11
3fffff80: 40240b56 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffe9ae8 3fffdab0 00000000 d2000000
3fffffa0: 40000f49 40000f49 ffffff00 55aa55aa
3fffffb0: 40000e19 40001878 00000002 00000000
3fffffc0: 00000000 000000f4 0000001c 40100270
3fffffd0: 40100276 00000002 00000000 00008e90
3fffffe0: 4010000d 00000fd4 0000000c 331b908c
3ffffff0: 4000044c 00000000 00000000 c137a672
*** stack dump end ***

ets Jan 8 2013,rst cause:2, boot mode:(1,7)



We can't reproduce the problem of fatal exception, Do you modify the source code ?
E:M 1684829752, it means need heap with sizeof 1684829752 bytes.

yudxp
Posts: 9
Joined: Fri Aug 14, 2015 9:28 pm

Re: Error in new ESP8266_MESH_DEMO

Postby yudxp » Mon May 30, 2016 4:27 pm

I don't know if i am modify it or not,
Here what i am doing :
1. Download from the git
2. Extract it
3. Try compile it using ./gen_misc.sh
4. There is some error like ../../include/sys/config.h:4:57: fatal error: machine/ieeefp.h: No such file or directory and many other lib like libhal.a and libc.c
5. so i copy it to the directory from other sdk
6. it can compile with no error
7. After burn it to ESP, it output that error.

If i do it wrong?
thanks Yudha

ESP_Alen
Posts: 208
Joined: Tue Mar 01, 2016 2:01 pm

Re: Error in new ESP8266_MESH_DEMO

Postby ESP_Alen » Mon May 30, 2016 4:33 pm

yudxp wrote:I don't know if i am modify it or not,
Here what i am doing :
1. Download from the git
2. Extract it
3. Try compile it using ./gen_misc.sh
4. There is some error like ../../include/sys/config.h:4:57: fatal error: machine/ieeefp.h: No such file or directory and many other lib like libhal.a and libc.c
5. so i copy it to the directory from other sdk
6. it can compile with no error
7. After burn it to ESP, it output that error.

If i do it wrong?
thanks Yudha


Please don't copy another lib into mesh, and use clean version of mesh.
When you meet compile error, please paste the error here.
We will help you to fix the compile error.

yudxp
Posts: 9
Joined: Fri Aug 14, 2015 9:28 pm

Re: Error in new ESP8266_MESH_DEMO

Postby yudxp » Mon May 30, 2016 4:58 pm

Ok i am clone fresh one,
1. chmod +x gen_misc.sh
2. ./gen_misch.sh

Code: Select all

gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
2
boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO

STEP 5: choose spi size and map
    0= 512KB( 256KB+ 256KB)
    2=1024KB( 512KB+ 512KB)
    3=2048KB( 512KB+ 512KB)
    4=4096KB( 512KB+ 512KB)
    5=2048KB(1024KB+1024KB)
    6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
2
spi size: 1024KB
spi ota map:  512KB + 512KB
spi size:  KB


start...

make -C demo clean;
make[1]: Entering directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
rm -f -r .output/eagle/debug
make[1]: Entering directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_demo.c
In file included from mesh_demo.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_bin.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_mqtt.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_http.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle devicefind.c
In file included from devicefind.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_parser.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle esp_touch.c
In file included from esp_touch.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_none.c
In file included from mesh_none.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_json.c
In file included from mesh_json.c:12:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_demo.c
In file included from mesh_demo.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle devicefind.c
In file included from devicefind.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle esp_touch.c
In file included from esp_touch.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_none.c
In file included from mesh_none.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_json.c
In file included from mesh_json.c:12:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
xtensa-lx106-elf-gcc -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH -DESP_MESH_SUPPORT   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle  -o .output/eagle/debug/obj/mesh_device.o -c mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
../../Makefile:323: recipe for target '.output/eagle/debug/obj/mesh_device.o' failed
make[1]: *** [.output/eagle/debug/obj/mesh_device.o] Error 1
make[1]: Leaving directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
../Makefile:309: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2


i am using toolchain that instructed in https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

thanks
Yudha

ESP_Alen
Posts: 208
Joined: Tue Mar 01, 2016 2:01 pm

Re: Error in new ESP8266_MESH_DEMO

Postby ESP_Alen » Mon May 30, 2016 5:33 pm

yudxp wrote:Ok i am clone fresh one,
1. chmod +x gen_misc.sh
2. ./gen_misch.sh

Code: Select all

gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
2
boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO

STEP 5: choose spi size and map
    0= 512KB( 256KB+ 256KB)
    2=1024KB( 512KB+ 512KB)
    3=2048KB( 512KB+ 512KB)
    4=4096KB( 512KB+ 512KB)
    5=2048KB(1024KB+1024KB)
    6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
2
spi size: 1024KB
spi ota map:  512KB + 512KB
spi size:  KB


start...

make -C demo clean;
make[1]: Entering directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
rm -f -r .output/eagle/debug
make[1]: Entering directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_demo.c
In file included from mesh_demo.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_bin.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_mqtt.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_http.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle devicefind.c
In file included from devicefind.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_parser.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle esp_touch.c
In file included from esp_touch.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_none.c
In file included from mesh_none.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_json.c
In file included from mesh_json.c:12:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_demo.c
In file included from mesh_demo.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle devicefind.c
In file included from devicefind.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle esp_touch.c
In file included from esp_touch.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_none.c
In file included from mesh_none.c:13:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_json.c
In file included from mesh_json.c:12:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
xtensa-lx106-elf-gcc -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH -DESP_MESH_SUPPORT   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle  -o .output/eagle/debug/obj/mesh_device.o -c mesh_device.c
In file included from mesh_device.c:3:0:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
../../Makefile:323: recipe for target '.output/eagle/debug/obj/mesh_device.o' failed
make[1]: *** [.output/eagle/debug/obj/mesh_device.o] Error 1
make[1]: Leaving directory '/home/yudxp/Downloads/ESP8266_MESH_DEMO/mesh_demo/demo'
../Makefile:309: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2


i am using toolchain that instructed in https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

thanks
Yudha


Did you do the following step:
cd /opt/Espressif/ESP8266_SDK
wget -O lib/libc.a https://github.com/esp8266/esp8266-wiki ... ibs/libc.a
wget -O lib/libhal.a https://github.com/esp8266/esp8266-wiki ... s/libhal.a
wget -O include.tgz https://github.com/esp8266/esp8266-wiki ... nclude.tgz
tar -xvzf include.tgz

zhanzhaocheng
Posts: 3
Joined: Mon May 30, 2016 5:31 pm

Re: Error in new ESP8266_MESH_DEMO

Postby zhanzhaocheng » Mon May 30, 2016 5:47 pm

I think your compiler environment is a problem, you try to jump back into the version(git reset 8adf4168b), see if the problem still exists

yudxp
Posts: 9
Joined: Fri Aug 14, 2015 9:28 pm

Re: Error in new ESP8266_MESH_DEMO

Postby yudxp » Tue May 31, 2016 1:49 pm

zhanzhaocheng wrote:I think your compiler environment is a problem, you try to jump back into the version(git reset 8adf4168b), see if the problem still exists

Sir, i have try your suggestion. But still got error.

I will try explain what i have done :
1. I build toolchain from https://github.com/esp8266/esp8266-wiki/wiki/Toolchain
2. clone git ESP_MESH_DEMO , reset like your said
then install xtensa lib in esp_mesh_demo folder
wget -O lib/libc.a https://github.com/esp8266/esp8266-wiki ... ibs/libc.a
wget -O lib/libhal.a https://github.com/esp8266/esp8266-wiki ... s/libhal.a
wget -O include.tgz https://github.com/esp8266/esp8266-wiki ... nclude.tgz
tar -xvzf include.tgz
3. it build with no problem, and flash ok
4. when i run it, that's when it get error like it freez
when i reset it :

Code: Select all

ets Jan  8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 30148, room 16
tail 4
chksum 0xaa
load 0x3ffe8000, len 2256, room 4
tail 12
chksum 0x2a
ho 0 tail 12 room 4
load 0x3ffe88d0, len 4052, room 12
tail 8
chksum 0xd2
csum 0xd2


*info : i use this in older mesh demo and running without error. The problem is when router down, esp stuck ini esp mesh sent fail and do not looking for AP

Thanks for your help.
Yudha

ESP_Alen
Posts: 208
Joined: Tue Mar 01, 2016 2:01 pm

Re: Error in new ESP8266_MESH_DEMO

Postby ESP_Alen » Tue May 31, 2016 2:57 pm

More technical support, please visit http://www.espressif.com/en/company/contact/after-sale-questions.

And the problem of router, we will fix.

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests