Rebooting - Arduino IOT Cloud & ESP32 board

Hi friends!

Hi, I'm having a problem with Arduino IOT Cloud & ESP32.
My sketch runs good until I apply ArduinoCloud.update() command. A reboot always occur after about 400 ArduinoCloud.update() executions (or 30 seconds sketch running). The serial monitor shows this message:

"Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (loopTask)
Core 1 register dump:
PC : 0x4008f497 PS : 0x00060936 A0 : 0x8008d651 A1 : 0x3ffb08c0
A2 : 0x3ffb2af8 A3 : 0xb33fffff A4 : 0x0000cdcd A5 : 0x00060923
A6 : 0x00060920 A7 : 0x0000abab A8 : 0xb33fffff A9 : 0xffffffff
A10 : 0x00000003 A11 : 0x00060923 A12 : 0x00060920 A13 : 0x0002adc9
A14 : 0x007b2af8 A15 : 0x003fffff SAR : 0x0000000a EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000 LBEG : 0x4008458d LEND : 0x40084595 LCOUNT : 0x00000027

Backtrace:0x4008f494:0x3ffb08c00x4008d64e:0x3ffb0900 0x4010606e:0x3ffb0940 0x4010639d:0x3ffb0960 0x401076a1:0x3ffb0980 0x4010772d:0x3ffb09a0 0x40107868:0x3ffb09d0 0x401078de:0x3ffb0a20 0x400f49e7:0x3ffb0a40 0x400f616d:0x3ffb0a80 0x400f6222:0x3ffb0ae0 0x400ecb85:0x3ffb0b00 0x4000bdbb:0x3ffb0b20 0x400017ea:0x3ffb0b40 0x40115721:0x3ffb0b60 0x401123c1:0x3ffb0b80 0x40112c56:0x3ffb0ba0 0x40113416:0x3ffb0c10 0x400dda42:0x3ffb0c30 0x400dd12d:0x3ffb0c50 0x400dd0a8:0x3ffb0c70 0x4016c89e:0x3ffb0c90 0x4016c94e:0x3ffb0cc0 0x400ddd11:0x3ffb0ce0 0x400d838f:0x3ffb0d00 0x400d4276:0x3ffb0d20 0x400d433a:0x3ffb0d40 0x400d465d:0x3ffb0d60 0x400d466f:0x3ffb0d80 0x4016c54f:0x3ffb0da0 0x400da4cd:0x3ffb0dc0 0x4016c571:0x3ffb0de0 0x400daa29:0x3ffb0e00 0x400d8bfa:0x3ffb0e20 0x400d8fed:0x3ffb0ea0 0x400d7e9b:0x3ffb0ff0 0x400d7ee0:0x3ffb1130 0x400de36b:0x3ffb1150 0x400d8397:0x3ffb1170 0x400d4276:0x3ffb1190 0x400d433a:0x3ffb11b0 0x400d465d:0x3ffb11d0 0x400d466f:0x3ffb11f0 0x4016c54f:0x3ffb1210 0x400da4cd:0x3ffb1230 0x4016c571:0x3ffb1250 0x400daa29:0x3ffb1270 0x400d8bfa:0x3ffb1290 0x400d8fed:0x3ffb1310 0x400d7e9b:0x3ffb1460 0x400d7ee0:0x3ffb15a0 0x400de36b:0x3ffb15c0 0x400d8397:0x3ffb15e0 0x400d4276:0x3ffb1600 0x400d433a:0x3ffb1620 0x400d465d:0x3ffb1640 0x400d466f:0x3ffb1660 0x4016c54f:0x3ffb1680 0x400da4cd:0x3ffb16a0 0x4016c571:0x3ffb16c0 0x400daa29:0x3ffb16e0 0x400d8bfa:0x3ffb1700 0x400d8fed:0x3ffb1780 0x400d7e9b:0x3ffb18d0 0x400d7ee0:0x3ffb1a10 0x400de36b:0x3ffb1a30 0x400d8397:0x3ffb1a50 0x400d4276:0x3ffb1a70 0x400d433a:0x3ffb1a90 0x400d465d:0x3ffb1ab0 0x400d466f:0x3ffb1ad0 0x4016c54f:0x3ffb1af0 0x400da4cd:0x3ffb1b10 0x4016c571:0x3ffb1b30 0x400daa29:0x3ffb1b50 0x400d8bfa:0x3ffb1b70 0x400d8fed:0x3ffb1bf0 0x400d7e9b:0x3ffb1d40 0x400d7ee0:0x3ffb1e80 0x400de36b:0x3ffb1ea0 0x400d8397:0x3ffb1ec0 0x400d4276:0x3ffb1ee0 0x400d433a:0x3ffb1f00 0x400d465d:0x3ffb1f20 0x400d466f:0x3ffb1f40 0x4016c54f:0x3ffb1f60 0x400da4cd:0x3ffb1f80 0x4016c571:0x3ffb1fa0 0x400daa29:0x3ffb1fc0 0x400d8bfa:0x3ffb1fe0 0x400d8fed:0x3ffb2060 0x400d7e9b:0x3ffb21b0 0x400d7ee0:0x3ffb22f0 0x400de36b:0x3ffb2310 0x400d8397:0x3ffb2330 0x400d4276:0x3ffb2350 0x400d433a:0x3ffb2370 0x400d465d:0x3ffb2390 0x400d466f:0x3ffb23b0 0x4016c54f:0x3ffb23d0 0x400da4cd:0x3ffb23f0 |<-CONTINUES

ELF file SHA256: 0000000000000000
Rebooting...

I've done an exhaustive search on this issue and I tried many solutions but had no success. When I comment ("//") the ArduinoCloud.update() command everything works fine. I have no idea what is going on.
I'm using a ESP32 DevModule board. Any ideas please?

Thanks a lot!

Paulo

Have you tried putting the backtrace into the ESP32 Exception Decoder to get more info?

Typically a EXCVADDR: 0x0000000 means something has went out of bounds.

1 Like

Hi Idahowalker. Thank you very much for the reply. I'm a beginner and dont know how to do it. Could you help me?

Sure I'll try to help.

Have you tried using the words "how to use esp exception decoder" typed into your favorite internet search engine will get a result set. Look through the result set and pick a result. If it helps use it, if not select another result.

I did all the procedure and the result remains like this:


It seems that something was missing in the stack trace or I did something wrong....

The code posted in code tags?

I made a simple debug using "Serial.print" and confirmed that the crash is at "ArduinoIotCLoud.update()" command line.
Firstly, it sometimes unexpectedly exits the void LE_ChecaSENS() (where the "ArduinoIotCLoud.update()" command line is) and goes back to the void loop(). It happens this way for a few times until the system reboots exactly when trying to run ArduinoIotCLoud.update() for the last time.

Did you undestand me? Sorry for my poor English.

Have you asked the people who wrote the ArduinoCloud.update() why their thing crashes?

Yes, I did it yesterday. No return until now.

which library is the arduinocloudediot using?

oops!

This library is DEPRECATED and is no more supported

ArduinoIoTCloud library.
I´m using ArduinoIotCloud Web Editor wich contains all updated versions of the libraries.

I'd never guessed that from looking at your code. Anyways, good luck.

I'll need it. Thank you!

Not quite sure if anyone from the IoT team did something today, but shortly after my post the things worked fine again. Thanks to Idahowalker for the help. I'm closing,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.