[error]Esp8266 bcn_timeout and reset
[error]Esp8266 bcn_timeout and reset
Postby Heiz » Mon Jul 24, 2017 11:48 am
hello anyone,
I run with esp8266 base on RTOS_SDK_1.5.0,I try to work with Station mode,and send udp single packet every 2S.
Then something erro happened! the error log show in my UART0:"bcn_timeout,ap_probe_send_start" .,and my esp_board reset without any fault.
Is any one has solution to fix the problem?
I run with esp8266 base on RTOS_SDK_1.5.0,I try to work with Station mode,and send udp single packet every 2S.
Then something erro happened! the error log show in my UART0:"bcn_timeout,ap_probe_send_start" .,and my esp_board reset without any fault.
Is any one has solution to fix the problem?
-
pratik
Re: [error]Esp8266 bcn_timeout and reset
Postby pratik » Mon Jul 24, 2017 5:47 pm
Can you share the log after the reboot? It might be a watchdog reset.
By the way, if you send data out every few seconds, please use the RTOS delay function, do not use a loop delay or occupy CPU for too long to create delay. That will cause random resets.
By the way, if you send data out every few seconds, please use the RTOS delay function, do not use a loop delay or occupy CPU for too long to create delay. That will cause random resets.
Re: [error]Esp8266 bcn_timeout and reset
Postby Heiz » Tue Jul 25, 2017 5:00 pm
Hi pratik,
the error log shows below.
I use os_timer_setfn()API to make the timer every 2S,i think it will not block the cpu too long,doesn't it?
the error log shows below.
I use os_timer_setfn()API to make the timer every 2S,i think it will not block the cpu too long,doesn't it?
Code: Select all
[14:01:15] [D:133:test_send_hello@0.0] remain heap: 43120
[14:01:16] bcn_timout,ap_probe_send_start
[14:01:16] [D:133:test_send_hello@0.0] remain heap: 43120
[14:01:16]
[14:01:23] @P@Q
[14:01:23] V'T )dPY
[14:01:23] %1@
5Y
[14:01:23] %1@
5Y
[14:01:23] AEa 1g-p@H)a@H
1eN-I
[14:01:23] )IqHVANV!SDK ver: 1.5.0-dev(1aafc07) compiled @ May 17 2017 10:13:23
[14:01:23] phy ver: 1055_1, pp ver: 10.7
[14:01:23]
[14:01:23] rf cal sector: 507
[14:01:23] tcpip_task_hdl : 3fff0c88, prio:10,stack:512
[14:01:23] idle_task_hdl : 3fff0d28,prio:0, stack:384
[14:01:23] tim_task_hdl : 3fff34e0, prio:2,stack:512
[14:01:23] empty
[14:01:23] mode : sta(5c:cf:7f:d3:fb:48)
[14:01:23] add if0
[14:01:23] SDK Version: 1.5.0-dev(1aafc07)
[14:01:23] Build Data: Jul 24 2017, 13:38:51
[14:01:23] Current Debug Level: 3
[14:01:23] reset reason: 0
[14:01:23] ,---. ,---.,---.
[14:01:23] |---',---.,---.| |`---.
[14:01:23] | \ |---'`---.| | |
[14:01:23] ` ``---'`---'`---'`---'
[14:01:23] ------------------------------
[14:01:23] Built on Jul 23 2017, v1.1.svn_version
[14:01:23] ------------------------------
[14:01:23] scandone
[14:01:24] state: 0 -> 2 (b0)-
pratik
Re: [error]Esp8266 bcn_timeout and reset
Postby pratik » Tue Aug 08, 2017 3:53 pm
You can use the os_timer functions for any amount of time, even thousands of seconds. But note that FreeRTOS API has specific programming techniques for creating tasks that execute in intervals. You should use that, do consult the FreeRTOS API guide for reference.
It is important that you do not starve the idle task of time.
The os_timer APIs are great for use in nonOS SDK, but not required in FreeRTOS really.
It is important that you do not starve the idle task of time.
The os_timer APIs are great for use in nonOS SDK, but not required in FreeRTOS really.
Who is online
Users browsing this forum: No registered users and 4 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.