I met a error when start iot-demo.
the log as blow:
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
rf cal sector: 123
rf[112] : 00
rf[113] : 00
rf[114] : 01
SDK ver: 2.0.0(656edbf) compiled @ Jul 19 2016 17:58:40
phy ver: 1055, pp ver: 10.2
SDK version:2.0.0(656edbf)
IOT VERSION = v1.0.5t45772(a)
reset reason: 0
LIGHT PARAM: R: 0
LIGHT PARAM: G: 0
LIGHT PARAM: B: 0
LIGHT PARAM: CW: 0
LIGHT PARAM: WW: 0
LIGHT PARAM: P: 1000
malloc:1
prd:1000 r : 0 g: 0 b: 0 cw: 0 ww: 0
free:0
finish
light sleep en
sleep enable,type: 1
PWM version : 00000003
mode : sta(5c:cf:7f:8b:97:f0) + softAP(5e:cf:7f:8b:97:f0)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
add 1
aid 1
station: 74:e5:0b:99:52:c8 join, AID = 1
len:145
We have a GET request.
webserver's 192.168.4.2:51911 disconnect
len:321
A_dat:0,tot:0,lenght:0
We have a POST request.
webserver's 192.168.4.2:51912 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:51913 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:51914 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:51915 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:51916 disconnect
add 2
aid 2
station: f8:23:b2:90:9f:60 join, AID = 2
len:288
A_dat:141,tot:141,lenght:141
We have a POST request.
[E]sec fd error
[E]sec fd error
[E]sec fd error
[E]sec fd error
[E]sec fd error
[E]sec fd error
[E]sec fd error
[E]sec fd error
After I send the command" curl -X POST -H "Content-Type:application/json" -d '{"Request" :{"Station":{"Connect_Station":{"ssid":"Netcore1702","password":"liuxintai","token":"37ff6cc04f30b1bf37d4c698534c27568c7a81e7"}}}}' http://192.168.4.1/config?command=wifi",As seen "[E]sec fd error" been print through the serial debugging assistant.
by the way,i set the spi size and map as 4096KB(1024KB+1024KB).
So ,my you help me analyze the problem?
[E]sec fd error
Re: [E]sec fd error
Postby yangyang » Sun Oct 09, 2016 9:22 pm
When I change PRIV_PARAM_START_SEC form 0xfc to 0x7C in user_light.h and ESP_PARAM_START_SEC fom fd to 0x7D in user_esp_plantform.h. And change the spi mode in 512+512,4096kb.
the log as blow:
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
rf cal sector: 123
rf[112] : 00
rf[113] : 00
rf[114] : 01
w_flash
SDK ver: 2.0.0(656edbf) compiled @ Jul 19 2016 17:58:40
phy ver: 1055, pp ver: 10.2
SDK version:2.0.0(656edbf)
IOT VERSION = v1.0.5t45772(a)
reset reason: 0
LIGHT PARAM: R: 33883397
LIGHT PARAM: G: 84148229
LIGHT PARAM: B: 84214789
LIGHT PARAM: CW: -131580
LIGHT PARAM: WW: -521080592
LIGHT PARAM: P: 1000
malloc:1
prd:1000 r : 22222 g: 22222 b: 22222 cw: 22222 ww: 22222
free:0
PWM version : 00000003
mode : sta(5c:cf:7f:8b:97:f0) + softAP(5e:cf:7f:8b:97:f0)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
finish
add 1
aid 1
station: 74:e5:0b:99:52:c8 join, AID = 1
len:145
We have a GET request.
webserver's 192.168.4.2:52773 disconnect
len:321
A_dat:0,tot:0,lenght:0
We have a POST request.
webserver's 192.168.4.2:52774 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52775 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52776 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52777 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52778 disconnect
len:94
We have a GET request.
webserver's 192.168.4.2:52788 disconnect
len:94
We have a GET request.
webserver's 192.168.4.2:52793 disconnect
len:288
A_dat:141,tot:141,lenght:141
We have a POST request.
webserver's 192.168.4.2:52794 disconnect
scandone
switch to channel 12
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt
connected with Netcore1702, channel 12
dhcp client start...
err already associed!
station: 74:e5:0b:99:52:c8 leave, AID = 1
rm 1
add 1
aid 1
station: 74:e5:0b:99:52:c8 join, AID = 1
ip:192.168.1.10,mask:255.255.255.0,gw:192.168.1.1
host_name = espressif_light_demo
server_name = _espLight._tcp.local
user_esp_platform_dns_found 115.29.202.58
user_esp_platform_connect
len:145
We have a GET request.
webserver's 192.168.4.2:52797 disconnect
len:321
A_dat:0,tot:0,lenght:0
We have a POST request.
webserver's 192.168.4.2:52798 disconnect
user_esp_platform_connect_cb
station: 74:e5:0b:99:52:c8 leave, AID = 1
rm 1
bcn 0
del if1
pm open,type:2 0
mode : sta(5c:cf:7f:8b:97:f0)
{"nonce": 1548589168,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}
please check device is activated.
{"nonce": 408440173,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}
When I Send the command"curl -X POST -H "Content-Type:application/json" -d '{"Request" :{"Station":{"Connect_Station":{"ssid":"Netcore1702","password":"liuxintai","token":"37ff6cc04f30b1bf37d4c698534c27568c7a81e7"}}}}' http://192.168.4.1/config?command=wifi" the message "{"nonce": 1548589168,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}"has been printed.
It probable means the esp8266 load 694ae031991698b605d4571f7ebbb5923b2bbf90.bin(master_device_key.bin) failed.
The flash download message as the img:
the log as blow:
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
rf cal sector: 123
rf[112] : 00
rf[113] : 00
rf[114] : 01
w_flash
SDK ver: 2.0.0(656edbf) compiled @ Jul 19 2016 17:58:40
phy ver: 1055, pp ver: 10.2
SDK version:2.0.0(656edbf)
IOT VERSION = v1.0.5t45772(a)
reset reason: 0
LIGHT PARAM: R: 33883397
LIGHT PARAM: G: 84148229
LIGHT PARAM: B: 84214789
LIGHT PARAM: CW: -131580
LIGHT PARAM: WW: -521080592
LIGHT PARAM: P: 1000
malloc:1
prd:1000 r : 22222 g: 22222 b: 22222 cw: 22222 ww: 22222
free:0
PWM version : 00000003
mode : sta(5c:cf:7f:8b:97:f0) + softAP(5e:cf:7f:8b:97:f0)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
finish
add 1
aid 1
station: 74:e5:0b:99:52:c8 join, AID = 1
len:145
We have a GET request.
webserver's 192.168.4.2:52773 disconnect
len:321
A_dat:0,tot:0,lenght:0
We have a POST request.
webserver's 192.168.4.2:52774 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52775 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52776 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52777 disconnect
len:260
We have a GET request.
webserver's 192.168.4.2:52778 disconnect
len:94
We have a GET request.
webserver's 192.168.4.2:52788 disconnect
len:94
We have a GET request.
webserver's 192.168.4.2:52793 disconnect
len:288
A_dat:141,tot:141,lenght:141
We have a POST request.
webserver's 192.168.4.2:52794 disconnect
scandone
switch to channel 12
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt
connected with Netcore1702, channel 12
dhcp client start...
err already associed!
station: 74:e5:0b:99:52:c8 leave, AID = 1
rm 1
add 1
aid 1
station: 74:e5:0b:99:52:c8 join, AID = 1
ip:192.168.1.10,mask:255.255.255.0,gw:192.168.1.1
host_name = espressif_light_demo
server_name = _espLight._tcp.local
user_esp_platform_dns_found 115.29.202.58
user_esp_platform_connect
len:145
We have a GET request.
webserver's 192.168.4.2:52797 disconnect
len:321
A_dat:0,tot:0,lenght:0
We have a POST request.
webserver's 192.168.4.2:52798 disconnect
user_esp_platform_connect_cb
station: 74:e5:0b:99:52:c8 leave, AID = 1
rm 1
bcn 0
del if1
pm open,type:2 0
mode : sta(5c:cf:7f:8b:97:f0)
{"nonce": 1548589168,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}
please check device is activated.
{"nonce": 408440173,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}
When I Send the command"curl -X POST -H "Content-Type:application/json" -d '{"Request" :{"Station":{"Connect_Station":{"ssid":"Netcore1702","password":"liuxintai","token":"37ff6cc04f30b1bf37d4c698534c27568c7a81e7"}}}}' http://192.168.4.1/config?command=wifi" the message "{"nonce": 1548589168,"path": "/v1/device/activate/", "method": "POST", "body": {"encrypt_method": "PLAIN", "token": "37ff6cc04f30b1bf37d4c698534c27568c7a81e7", "bssid": "5c:cf:7f:8b:97:f0","rom_version":"v1.0.5t45772(a)"}, "meta": {"Authorization": "token "}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 403, "result": "failed", "message": "not valid key, Authorization: token AUTH-TOKEN"}"has been printed.
It probable means the esp8266 load 694ae031991698b605d4571f7ebbb5923b2bbf90.bin(master_device_key.bin) failed.
The flash download message as the img:

Re: [E]sec fd error
Postby ESP_Greg » Tue Oct 11, 2016 7:02 pm
Hi,
[E]sec fd error means flash write/read issue. Please use latest SDK(NONOS SDK 2.0). Bug already fixed.
[E]sec fd error means flash write/read issue. Please use latest SDK(NONOS SDK 2.0). Bug already fixed.

Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.