Using C++17 for new esp32-s3(Flash:16/8MB,RAM:8MB)
Posted: Tue May 28, 2024 9:02 am
Dear Experts,
I am going to use C++17 to compile my program ... Traditionally, C language is used to program microcontrollers. On the other hand, I need to use C++ for my project . When we read comments of experts on the Internet, some of them suggest NOT to use Template at all, when using C++ for microcontrollers, but I need to take advantage of : "Template meta programming in C++ .
Also, when we consider limitation of ESP-IDF for C++,on their website, they mentioned :
**Various section attributes (such as IRAM_ATTR) are ignored when used with template functions.**
(Please see this link: https://stackoverflow.com/questions/743 ... n-template)
Here are my questions:
1-Can I use C++17 ,in my project without any problem when I use Templates?
2-What is my best option to program new esp32-s3 boards with C++17(DevKit-C1 for example, Flash: 16/8MB - RAM: 8MB ) :
a)ESP-IDF and VSCode
b)Arduino IDE for windows
c)Platformio extension for VScode
Which one: a, b or c?
3-Is there any suggestion or comment to consider when we use C++17 for this new esp32-s3 boards?
Your consideration is highly appreciated.
Regards,
Quantum.
I am going to use C++17 to compile my program ... Traditionally, C language is used to program microcontrollers. On the other hand, I need to use C++ for my project . When we read comments of experts on the Internet, some of them suggest NOT to use Template at all, when using C++ for microcontrollers, but I need to take advantage of : "Template meta programming in C++ .
Also, when we consider limitation of ESP-IDF for C++,on their website, they mentioned :
**Various section attributes (such as IRAM_ATTR) are ignored when used with template functions.**
(Please see this link: https://stackoverflow.com/questions/743 ... n-template)
Here are my questions:
1-Can I use C++17 ,in my project without any problem when I use Templates?
2-What is my best option to program new esp32-s3 boards with C++17(DevKit-C1 for example, Flash: 16/8MB - RAM: 8MB ) :
a)ESP-IDF and VSCode
b)Arduino IDE for windows
c)Platformio extension for VScode
Which one: a, b or c?
3-Is there any suggestion or comment to consider when we use C++17 for this new esp32-s3 boards?
Your consideration is highly appreciated.
Regards,
Quantum.