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:
    And then if I have to flash a normal firmware without UART, I'm not able to write serialnumber and some other stuff to NVS.

    Why can you not write the serial number etc. via SWD?

    anicare-tero said:
    Or is it possible to flash another firmware without erasing the NVS?

    That is no problem. You can do a sector erase instead of a full chip erase. The only requirement is that the data you want to preserve is not on the same page as the application itself since you can only erase full pages.

Children
Related