I am mid-way through development with the nRF52840 DK and Zephyr using the VSCode extension. I'm using v1.8.0 of the SDK.
I am looking for advice on setting my configuration up for both debug and release builds.
Right now, when I do a build, I get this problem reported in VSCode:
The CMake build type was set to 'Debug', but the optimization flag was set to '-Og'.
I've searched around the web and Devzone for advice, but most of the advice has to do with SES, not VSCode and the Nordic extension.
When I created the project, I did check the checkbox to Enable Debug Options.
- How does one best set up a project to have both release and debug builds for Zephyr in VSCode?
- I suspect it involves creating a prj_release.conf and prj_debug.conf, and then creating a build configuration using one of each. Is this right? Do you usually add a Kconfig fragment or Extra CMake arguments?
- What CMake or Kconfig commands set up for optimization and debug?
- Is there a sample app showing both debug and release configurations?
Thanks,
Steve
P.S. My current prj.conf is listed here: