vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.93k stars 715 forks source link

Core 0 on ESP32 + SIM800L #542

Closed yaroshd81 closed 3 years ago

yaroshd81 commented 3 years ago

if use core 0 on ESP32 we have problem:

Task watchdog got triggered. The following tasks did not reset the watchdog in time: I fix this problem this way:

#ifndef TINY_GSM_YIELD_MS
#define TINY_GSM_YIELD_MS 1//in original file (TinyGsmCommon.h) we have 0
#endif
SRGDamia1 commented 3 years ago

You can just add the define to your program rather than changing the library.

yaroshd81 commented 3 years ago

I understand, I share my experience with the community

SRGDamia1 commented 3 years ago

I don't know that anyone else has ever had an issue with the program crashing without the define. Are you sure it's not something else? Usually you only need that define for a fast processor and slow baud rate and the symptoms are unstable AT communication not crashes.

yaroshd81 commented 3 years ago

On core 1 all working w/o changes. But core 0 call watchdog and reboot device. When i change to #define TINY_GSM_YIELD_MS 1 - i don't have "kernel panic" :)