Closed Mr-HaleYa closed 4 years ago
Based on the espressif documentation: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/fatal-errors.html it looks like you may be passing incorrect inputs to the function which is trying to access memory space it isn't allowed to.
Are you sure the inputs to the function call to the ThingSpeak library are correct?
Hahaha, I totally forgot to define thingspeak in the setup so it was panicking when I called a function that had no memory allocated to it... oops... The problem has been soled and can serve as a reference for future people to remember to call all the parameters that you need in setup.
I'm using an A6 GSM module and every time I go to write data to Thingspeak I get an error
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400d12b8 PS : 0x00060130 A0 : 0x800d2ca0 A1 : 0x3ffb1f30
A2 : 0x3ffc0468 A3 : 0x000fa09a A4 : 0x3ffb1f80 A5 : 0x3f401384
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800d511a A9 : 0x3ffb1f10
A10 : 0x00000000 A11 : 0x3ffb1f74 A12 : 0x00000050 A13 : 0x0000000a
A14 : 0x3ffb1f74 A15 : 0xff000000 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff
Backtrace: 0x400d12b8:0x3ffb1f30 0x400d2c9d:0x3ffb1f50 0x400d5761:0x3ffb1fb0 0x400884d9:0x3ffb1fd0
I used Exception decoder to decode the error and got this
PC: 0x400d12b8: ThingSpeakClass::writeRaw(unsigned long, String, char const*) at E:\Users\Koby_2\Documents\Arduino\sketchbook ofline\libraries\ThingSpeak\src/ThingSpeak.h line 1521 EXCVADDR: 0x00000000
Decoding stack results 0x400d12b8: ThingSpeakClass::writeRaw(unsigned long, String, char const) at E:\Users\Koby_2\Documents\Arduino\sketchbook ofline\libraries\ThingSpeak\src/ThingSpeak.h line 1521 0x400d2c9d: loop() at E:\Users\Koby_2\Documents\Arduino\sketchbook ofline\libraries\ThingSpeak\src/ThingSpeak.h line 282 0x400d5761: loopTask(void) at E:\Users\Koby_2\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19 0x400884d9: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
Is thingspeak the library at fault for my error?