Logging

nRF Connect SDK v2.0.0
VS Code 1.70.2
nRF9160 development kit

To view all possible log messages the fololwing logging configuration is set up in prj.conf:

CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_LOG_OVERRIDE_LEVEL=4
This causes a Cortex hard fault in debugger session.
With CONFIG_LOG_OVERRIDE_LEVEL=3 no problem and it is possible to step through the application in the debugger.
Increasing thread stack size does not help.
Does anyone known how to solve this?
Parents
  • Hi nRF5xFanBoy,

    I understand that (tried by log level per application file), but that is not the problem I see.

    CONFIG_LOG_OVERRIDE_LEVEL=4 in the prj.conf should override log statements level in all files, including kernel. With CONFIG_LOG_OVERRIDE_LEVEL=3 all corresponding log statements are shown, but with CONFIG_LOG_OVERRIDE_LEVEL=4 a Cortex hard fault occurs in the oZone debugger.

    That is the real problem and I do not understand why.

    Best regards, Elbert

Reply
  • Hi nRF5xFanBoy,

    I understand that (tried by log level per application file), but that is not the problem I see.

    CONFIG_LOG_OVERRIDE_LEVEL=4 in the prj.conf should override log statements level in all files, including kernel. With CONFIG_LOG_OVERRIDE_LEVEL=3 all corresponding log statements are shown, but with CONFIG_LOG_OVERRIDE_LEVEL=4 a Cortex hard fault occurs in the oZone debugger.

    That is the real problem and I do not understand why.

    Best regards, Elbert

Children
Related