This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Preprocessor settings when using NCS

I'm transitioning from nRF5 SDK to NCS and using Segger Embedded Studio (SES).

When using nRF5, SES gives options for the Compiler, including saving the Preprocessor output.   This is useful when debugging Macros, and strange compile errors.

When using NCS, SES no longer has these options.   I suspect the use of Cmake has changed things, but am looking for an easy way to preserve the Preprocessor output, or stop after running the Preprocessor (similar to -S in gcc) via SES options (or some other means).    I'm getting a strange compile error (most likely due to the expansion of a complicated Macro!) and need to see what the Preprocessor is producing.

Thanks!

Related