Question about UART freeze when using CONFIG_LOG_BACKEND_FS on nRF5340 DK

Hello Nordic team,

I am using an nRF5340 DK with Zephyr, and I am facing an issue where the UART console freezes whenever CONFIG_LOG_BACKEND_FS=y is enabled.

My logging configuration is:

# LOGGING
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_PRINTK=y
CONFIG_LOG_BACKEND_FS=y
CONFIG_LOG_BACKEND_FS_AUTOSTART=y
CONFIG_LOG_BACKEND_FS_FILE_SIZE=20960
CONFIG_LOG_BACKEND_FS_FILES_LIMIT=1
CONFIG_LOG_BUFFER_SIZE=8192
CONFIG_LOG_BACKEND_FS_DIR="/lfs"

With the FS backend enabled, UART output stops during runtime.
If I disable the FS backend, UART works normally.

I would like to keep FS logging enabled, so I would like to know how to configure Zephyr or the nRF5340 to avoid UART freeze when using LOG_BACKEND_FS.
In other words, what settings or best practices can ensure stable UART output while FS logging is active?

Thank you.

Parents Reply Children
No Data
Related