Skip to content

Testing RAM / Flash allocation for C++ based ESP32 Projects

Notifications You must be signed in to change notification settings

marcel-cd/esp32-cpp-resources-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Github Actions to evaluate Flash / RAM size constraints, when using C++ features in ESP-IDF Projects

Results

ESP-IDF Version 5.4

ESP32S3

FeatureD/IRAMdiff to baseFlashdiff to baseHeap allocdiff to base
(base C)5428301389980135000
string5443515214480658081359696
vector5443515214359045921359696
exceptions5458730416574626748147521252
iostream60627634435410221510413676176

Notes

ESP-IDF C++ Support doc

Exceptions

Exception-throwing code should never be used in real-time critical code paths. C++ Exceptions should only be used for exceptional cases, i.e., something happening unexpectedly and occurs rarely.

iostream

Simply including <iostream> header in one of the source files significantly increases the binary size by about 200 kB. (Keep C based ESP_LOG module for logging)

About

Testing RAM / Flash allocation for C++ based ESP32 Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published