How to use std::string on esp32
Posted: Sun Aug 17, 2025 6:44 pm
Hi,
I'm programming an esp32 board with C++/FreeRTOS and so far things are progressing; however there's one thing that seem to cause all sort of issues like stack corruption and guru meditations, and that is std::string.
I read that rising the stack size could maybe help. but how do I do that for the main task?
IS there something else that I should do to use std::String without crashing the application?
Andrea
I'm programming an esp32 board with C++/FreeRTOS and so far things are progressing; however there's one thing that seem to cause all sort of issues like stack corruption and guru meditations, and that is std::string.
I read that rising the stack size could maybe help. but how do I do that for the main task?
IS there something else that I should do to use std::String without crashing the application?
Andrea