Hi,
My code triggers LmacRxBlk:1 which results in hung device - I suspect that the cause is a long pooling in my code.
(tried with sdk 1.5.2, sdk 1.5.4.1, sdk 2.0 - all get in that state)
But the question is - how to detect this error from user code and how to recover (reset mac or restart)?
Suggestions:
- add general sdk error callback kind of
sdk_set_error_callback(void (*user_cb)(int reason))
reason can be:
OOM - user firmware can try to free some RAM and the SDK retry
macRxBlk - whatever that means
The other is not directly related but - add free_caches or something when called sdk free as much memory as possible - use case is SSL.
Regards,
zaxl
Edit: Some logging
LmacRxBlk:1
state: 5 -> 2 (fa0)
rm 0
WIFI:WCB: 1
ip:cb00a8c0
mask:00ffffff
gw:0100a8c0
WIFI:4
WIFI: offline
state: 2 -> 0 (0)
f r-40, WIFI:WCB: 1
....
LmacRxBlk:1
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
chg_B1:-40
LmacRxBlk:1
Re: LmacRxBlk:1
Postby zaxl » Mon Aug 29, 2016 2:14 am
Hi,
nope no interrupts. it happens during ssl handshake calculations - a bit of traffic and a bit of cpu load. i've reorganized the code a bit and it went away - but don't know when it will bite again.
nope no interrupts. it happens during ssl handshake calculations - a bit of traffic and a bit of cpu load. i've reorganized the code a bit and it went away - but don't know when it will bite again.
Regards,
zaxl
zaxl
Who is online
Users browsing this forum: No registered users and 14 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.