Hello, I try to use VS Code to develop MCU project. If I create some folder to store the source file(*.c and *.h), how to add the path setting in VS Code?
And how to modify the "Optimization" level?
Thanks!
Lurker
Hello @Lurkersoo
Thanks for your valuable question.
For better help you, please tell us below informations.
1) Part number of your MCU.
2) Based on SDK driver do development?
Thanks.
BR
Alice
Hi Alice,
Please find below reply:
1) Part number of your MCU.---LPC55S69
2) Based on SDK driver do development? ---Yes, SDK 2.14.0(
Hello @Lurkersoo
Please refer to blow steps from my colleague:
"
To add a file to the project, the user will need to create the file in VSCode, then add the file path to the CMakeLists.txt manually:
Open the armgcc/CMakeLists.txt then navigate to "add_executable" command:
Then add your files shown above.
To add include directories to the project, add the path to the "target_include_directories" command:
To change the optimization level, open the armgcc/flags.cmake and edit all compiler flags accordingly:
The default optimization level for Debug build is -O0, and -Os for release build.
"
BR
Alice