ESP crashing when printing LOG

BrunoOtavio
Posts: 8
Joined: Wed Sep 25, 2019 8:31 pm

ESP crashing when printing LOG

Postby BrunoOtavio » Mon Jan 09, 2023 12:20 pm

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.
Attachments
Captura de Tela (102).png
Captura de Tela (102).png (20.2 KiB) Viewed 1850 times

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP crashing when printing LOG

Postby chegewara » Mon Jan 09, 2023 6:25 pm

Running in ISR function?

BrunoOtavio
Posts: 8
Joined: Wed Sep 25, 2019 8:31 pm

Re: ESP crashing when printing LOG

Postby BrunoOtavio » Mon Jan 09, 2023 7:47 pm

It's a normal task.

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP crashing when printing LOG

Postby mbratch » Tue Jan 10, 2023 12:35 am

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.

Who is online

Users browsing this forum: No registered users and 394 guests