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

Compile modules selectively in release vs debug to optimize flash usage in nRF52840

Hi,

We use the nRF52840 and have now run out of space using debug mode compilation (using CMake from bash).

When we compile in release mode, we get 50% full flash, so that is great.

What we want to accomplish now, is to be able to select which modules are compiled in release mode, and which are in debug mode.

For example:

- zephyr modules -> release compilation

- nordic modules -> release compilation

- our application src folder - debug compilation as we need to debug it - or be able to select which folders in that src-folder to compile as debug vs release mode.

Any advice on how we do this?

Best,

Johan

Ps. I also posted this question to the Zephyr slack/discord general/+nordic forum, but since they don't know about Nordic modules, I only would get answers on Zephyr modules in there, I ask selectively in each forum ;-). Ds.

Parents Reply Children
Related