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

NRFX_ASSERT

Hi

I'm new on zephyr and nRF9160.

In the nrfx source are lots of NRFX_ASSERT() macros.

This macro checks a condition and thrown a exception.

Normaly we use asserts in debug code.

In release code we set assert() to an empty macro for speed and codesize.

How can I set NRFX_ASSERT() to an empty macro for nrfx code?

Parents Reply
  • Yes, it is coming from the spm child image. The secure partition manager (spm) is included in all non-secure builds.

    Make a folder called "child_image" in blinky, put a config file named "spm" in that folder containing the line "CONFIG_ASSERT=n". This will be added to the spm's config file.

    You can also remove "CONFIG_FORCE_NO_ASSERT=y" from your regular config file.

Children
Related