Page 1 of 1

HELP! Questions about the EVENT-GROUP & TASK.

Posted: Tue Jan 22, 2019 6:52 am
by liewzheng
I am new in ESP32.

In my project, it use BLE to scan the nearby beacon, and then use WIFI to upload the Beacon MAC address through TCP/IP protocol.
However, when the BLE-scan-service event works and calls the TCP-task, the break period is over.
It reminds me these:
===================================================================
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC : 0x40084081 PS : 0x00060b34 A0 : 0x80123d24 A1 : 0x3ffbe240
A2 : 0x00000001 A3 : 0x00000000 A4 : 0x0000f2f2 A5 : 0x60008054
A6 : 0x3ffbdccc A7 : 0x60008050 A8 : 0x80084081 A9 : 0x3ffbe220
A10 : 0x00000004 A11 : 0x00000000 A12 : 0x6000804c A13 : 0xffffffff
A14 : 0x00000000 A15 : 0xfffffffc SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x40083fb9 LEND : 0x40083fc0 LCOUNT : 0x00000000
Core 0 was running in ISR context:
EPC1 : 0x40009203 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40084081

Backtrace: 0x40084081:0x3ffbe240 0x40123d21:0x3ffbe260 0x40019fb5:0x3ffbe280 0x40046683:0x3ffbe2b0 0x40047515:0x3ffbe2d0 0x40086b3e:0x3ffbe2f0 0x400864ae:0x3ffbe310 0x4008779a:0x3ffbe330 0x400885ef:0x3ffbe350 0x4008243d:0x3ffbe370 0x40184433:0x00000000

Core 1 register dump:
PC : 0x40184436 PS : 0x00060034 A0 : 0x800d36f9 A1 : 0x3ffbc330
A2 : 0x00000000 A3 : 0x80000001 A4 : 0x00000000 A5 : 0x00000001
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800d28e6 A9 : 0x3ffbc300
A10 : 0x00000000 A11 : 0x00060a23 A12 : 0x00060a20 A13 : 0x00000001
A14 : 0x00060a20 A15 : 0x3ffbd250 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x40184436:0x3ffbc330 0x400d36f6:0x3ffbc350 0x40093169:0x3ffbc370 0x40093aed:0x3ffbc390

Rebooting...
ets Jun 8 2016 00:22:57

===================================================================

About the two EVENT-GROUPS & one TASK, I am wondering how they will work successfully and how I can handle them in a right way.

It's quite a tough work to understand the official documents.
<https://www.freertos.org/xEventGroupCreate.html>
<https://www.freertos.org/event-groups-API.html>

EVENT-GROUP:
static esp_err_t wifi_event_handler(void *ctx, system_event_t *event);
static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param);

TASK:
void TCP_Client_Message(unsigned char* Message);

Re: HELP! Questions about the EVENT-GROUP & TASK.

Posted: Fri Jan 25, 2019 8:23 pm
by chegewara
Use make monitor or any other tool to decode backtrace please.