Skip to content

Instantly share code, notes, and snippets.

@sweemeng
Last active August 9, 2021 12:59
Show Gist options
  • Save sweemeng/6b112767bb24eb8cd06eee7f8e288e0f to your computer and use it in GitHub Desktop.
Save sweemeng/6b112767bb24eb8cd06eee7f8e288e0f to your computer and use it in GitHub Desktop.
Error Log for my code
#include <Arduino.h>
#include <M5Stack.h>
#include <WiFi.h>
#include <Avatar.h>
using namespace m5avatar;
const char* ssid = "ssid";
const char* password = "passwd";
Avatar avatar;
void setup_wifi(){
delay(10);
WiFi.begin(ssid, password);
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
while(WiFi.status() != WL_CONNECTED){
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void setup() {
M5.begin();
Serial.begin(115200);
Serial.println("Init wifi");
setup_wifi();
Serial.println("Init avatar");
avatar.init();
Serial.println("Done");
}
void loop() {
// put your main code here, to run repeatedly:
}
Decoding stack results
0x4008d1da: commonErrorHandler_dump at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 487
0x4008d359: commonErrorHandler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 582
0x4008d63d: xt_unhandled_exception at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 367
0x4008d199: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 154
0x4008d415: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 171
0x40089365: lock_acquire_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c line 143
0x40089491: _lock_acquire_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c line 171
0x400fae5f: _vfiprintf_r at ../../../.././newlib/libc/stdio/vfprintf.c line 860
0x400f6a05: fiprintf at ../../../.././newlib/libc/stdio/fiprintf.c line 50
0x400f691c: __assert_func at ../../../.././newlib/libc/stdlib/assert.c line 59
0x4008f43d: vTaskEnterCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portmux_impl.inc.h line 105
0x4009144b: multi_heap_internal_lock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c line 375
0x40091a85: multi_heap_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 194
0x40082131: heap_caps_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 111
0x40082308: heap_caps_calloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 325
0x400815d7: ps_calloc at /home/sweemeng/.arduino15/packages/esp32/hardware/esp32/1.0.6/cores/esp32/esp32-hal-psram.c line 66
0x400d50da: TFT_eSprite::callocSprite(short, short, unsigned char) at /home/sweemeng/Arduino/libraries/M5Stack/src/utility/Sprite.cpp line 138
0x400d515e: TFT_eSprite::createSprite(short, short, unsigned char) at /home/sweemeng/Arduino/libraries/M5Stack/src/utility/Sprite.cpp line 71
0x400d99d8: m5avatar::Face::draw(m5avatar::DrawContext*) at /home/sweemeng/Arduino/libraries/M5Stack_Avatar/src/Face.cpp line 102
0x400d8a47: m5avatar::Avatar::draw() at /home/sweemeng/Arduino/libraries/M5Stack_Avatar/src/Avatar.cpp line 135
0x400d8a73: m5avatar::drawLoop(void*) at /home/sweemeng/Arduino/libraries/M5Stack_Avatar/src/Avatar.cpp line 32
0x4008e41a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment