Logging Flash Backend

Hello, 

I am currently using the bt and uart backend for zephyr logging on ncs 2.9.2. I want to be able to save logs to flash which will be useful in debugging/ and be able to download the logs from shell interface. I have seen a few documents that the flash backend has not been implemented for logging but want to check if there is any documentation on doing so and how to get started?

Thanks!

Parents Reply
  • Hi Kenneth, I put aside 16 kb for my log partition (I just want to store the previous power cycles log). This matches across my pm_static.yml and overlay file. I also added the following kconfig. From here, I get build errors when adding the mounting point (above). What else do I need to add? Is there any examples that I can look at that could help me out? Thanks in advance. 

    CONFIG_FILE_SYSTEM=y
    CONFIG_LOG_BACKEND_FS=y
    CONFIG_LOG_BACKEND_FS_DIR="/lfs"
    CONFIG_LOG_BACKEND_FS_FILES_LIMIT=2
    CONFIG_LOG_BACKEND_FS_AUTOSTART=y
    CONFIG_FILE_SYSTEM_LITTLEFS=y
    
     

Children
Related