Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 problem #6

Closed
MagicHardware opened this issue Apr 10, 2022 · 2 comments
Closed

ESP8266 problem #6

MagicHardware opened this issue Apr 10, 2022 · 2 comments

Comments

@MagicHardware
Copy link

MagicHardware commented Apr 10, 2022

Hello,
I try your library, is awsome, but I have trouble to run it on ESP8266 (D1 mini V2). I use PlatformIO. When I comment or change second LOG to PRINT it work with no error. I am confused. This code do exception (on ESP32 it work with no problem).
main.cpp:

#include <DebugLog.h>

void setup() {
    Serial.begin(115200);
    delay(2000);
    LOG_SET_LEVEL(DebugLogLevel::LVL_TRACE);
    LOG_DEBUG("Program start");
}

void loop() {
    LOG_ERROR("Main");
}

Exception:

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023b017 depc=0x00000000

LoadStoreError: Processor internal physical address or data error during load or store
  excvaddr=0x4023b017 in etharp_output at ??:?

>>>stack>>>

ctx: cont
sp: 3ffffd70 end: 3fffffc0 offset: 0190
3fffff00:  00000007 00000001 3fffff3c 4020197c
3fffff10:  00000000 4023b017 3fffff3c 402019b5
3fffff20:  00000007 3ffee510 3fffff90 4020123f
3fffff30:  00000000 3ffee500 00000000 00000020
3fffff40:  7070632e 01000000 00000000 3ffee500
3fffff50:  00000000 00000000 3ffee518 00000000
3fffff60:  4023b017 3ffe88ce 3ffee518 402019b5
3fffff70:  40202519 00000000 3ffee510 3ffee5c4  
3fffff80:  3fffdad0 00000000 3ffee510 4020138c
3fffff90:  3ffef384 0015001f 88000000 feefeffe
3fffffa0:  feefeffe feefeffe 3ffee5b0 40201f84
3fffffb0:  feefeffe feefeffe 3ffe85d8 40100c25
<<<stack<<<

0x4020197c in String::copy(char const*, unsigned int) at ??:?
0x4023b017 in etharp_output at ??:?
0x402019b5 in String::String(char const*) at ??:?
0x4020123f in arx::debug::Manager::generate_header(arx::debug::LogLevel, char const*, int, char const*) const at ??:?
0x4023b017 in etharp_output at ??:?
0x402019b5 in String::String(char const*) at ??:?
0x40202519 in __delay at ??:?
0x4020138c in setup at ??:?
0x40201f84 in loop_wrapper() at core_esp8266_main.cpp:?
0x40100c25 in cont_wrapper at ??:?

Second decoder (Arduino IDE):

Exception 3: LoadStoreError: Processor internal physical address or data error during load or store
PC: 0x4000bf64
EXCVADDR: 0x4023b007

Decoding stack results
0x40201970: String::copy(char const*, unsigned int) at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\WString.cpp line 225
0x402019a9: String::String(char const*) at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\WString.cpp line 41
0x4020123b: arx::debug::Manager::generate_header(arx::debug::LogLevel, char const*, int, char const*) const at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h line 373
0x402019a9: String::String(char const*) at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\WString.cpp line 41
0x40202505: __delay(unsigned long) at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_wiring.cpp line 55
0x4020138a: setup() at C:\\Documents\Arduino\libraries\DebugLog/DebugLog/Manager.h line 121
0x40201f70: loop_wrapper() at C:\\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_main.cpp line 198

PlatformIo.ini:

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
monitor_filters = esp8266_exception_decoder
lib_deps = 
    hideakitai/DebugLog
@MagicHardware
Copy link
Author

I check with ESP-01 (ESP8266) . Exception is the same.

freol35241 added a commit to freol35241/han-solo that referenced this issue Aug 21, 2022
tpanajott added a commit to tpanajott/DebugLog that referenced this issue Sep 17, 2022
Fix issue hideakitai#6  as I too want to use this with the ESP8266. With this change applied, all the LOG_<LVL> commands work as expected.
@hideakitai
Copy link
Owner

Fixed by #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants