MDF_LOG consumes lots of stack memory
Posted: Sat Jul 18, 2020 1:33 pm
I've encountered that when using official MDF_LOGs in a created Task I need an additional +1500 bytes of memory. If I don't do that, then stack overflow happens... and it reboots the esp32.
If I set the MDF_LOGs to low level so that they don't get activated, then there is no issue, but when the level is higher, then stack overflow happens...
Shouldn't the MDF_LOGs do a simple print a formatted string?, how is that it needs so much memory?
I hope you can give a little bit of clearance.
Thanks,
Code: Select all
***ERROR*** A stack overflow in task test_task has been detected.
Shouldn't the MDF_LOGs do a simple print a formatted string?, how is that it needs so much memory?
I hope you can give a little bit of clearance.
Thanks,