PlatformIO Community

C++ STL library for ESP32

I used ArduinoSTL library (GitHub - mike-matera/ArduinoSTL: An STL and iostream implementation based on uClibc++ that supports my CS-11M class.) with Atmel AVR microcontrollers and PlatformIO. I failed to find a similar option for ESP32. Any pointers would be appreciated.

Never mind. STL is already included in my project:

[env:esp32cam]
platform = espressif32
board = esp32cam

I can:

#include <vector>
#include <chrono>

and it works just fine. Excellent! PlatformIO is really a great tool!

The STL libraries on the Atmel AVR types go back to a bad / incomplete GCC-AVR toolchain, due to the limitations of the microcontroller. The ESP32’s XTensa toolchain has no such limitations.

Can you comment on the quality of STL implementation for Raspberry Pi Pico (RP2040)?

It uses the ARM GCC toolchain, so, very good.

1 Like

If you want an ‘STL like’ library that doesn’t use heap memory, then take a look at the Github project that I maintain.

1 Like