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

CONFIG_LOG at runtime

Hi,

Is it possible to disable logger at runtime on nRF9160? I would like to have a logger at device's first startup after flashing (like in production test mode) and then disable the logger when exiting from that test mode and then rebooting and going to the normal device mode. How should I do that or is it even possible?

Could I set CONFIG_LOG to false or am I even able to change configs at runtime?

Regards,
Tero

Parents Reply
  • Hi,

    anicare-tero said:
    We need logger for production testing but not anymore after exiting the test mode.

    Do you need disconnect the programmer for production testing? If not, could you not re-program firmware without logging after running the tests that require logging?

    anicare-tero said:
    Or then I should disable logger compile-time and use other way, like add printk() to every place that will be needed in testing.

    That may be the best solution in this case. You could still use the log system for another testing during development, but not for logging you need for production testing.

Children
Related