#1.) Need some help with configuring my project running under PlatformIO IDE and VSCode. I don’t use Arduino. I need to either change or add the Power Management support and the ESP-IDF programming Guide states I may need to use the option CONFIG_PM_ENABLE. So at this point I think I understand the sdkconfig.h file, and have successfully changed options in there to config the project as needed. Is this file where I add a #define CONFIG_PM_ENABLE 1 statement to enable the power management functions?
#2.) There are a lot of modules being included into the main project by default, some of which I don’t need or want. How do I remove them from the project? It looks like GCC is the compiler, so does that mean that if I don’t make a function call to a module, then the Linker will remove that code from the final executable? I know there is a switch in GCC/Linker to not include unreferenced code. Is that whats happening here? If not, where are the GCC/Linker switches referenced during compile time?
Thanks for your help
Jerry