Page 1 of 1

ESP crashing when printing LOG

Posted: Mon Jan 09, 2023 12:20 pm
by BrunoOtavio
Hello I'm working with ESP 4.3.4 and sometimes my application crash inside a ESP_LOGx function, the points where the crash happens is always the same. What I mean is that there's other points inside the firmware where I call a ESP_LOGx and the firmware dont crash.

Below is an image where the crash happens.

Re: ESP crashing when printing LOG

Posted: Mon Jan 09, 2023 6:25 pm
by chegewara
Running in ISR function?

Re: ESP crashing when printing LOG

Posted: Mon Jan 09, 2023 7:47 pm
by BrunoOtavio
It's a normal task.

Re: ESP crashing when printing LOG

Posted: Tue Jan 10, 2023 12:35 am
by mbratch
Depending upon how deeply nested your function calls are or how much data you have on the stack, it still could be a stack allocation issue for your task. You could try increasing the stack allocation.