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

NRF_LOG_FLASH questions

Hello,

we are trying to add log functionality to our application (nRF52 SDK 15.3 SD6.1.1) and we have few questions:

1. can two uart and flash backends coexists in  the same application or it is only backened either UART or Flash

2. our application is also using FDS storage functionality, can FDS functionality be used with Flash backend?

3. if there is an example (besides documentation on infocenter) is available?

Please advise.

Thank you,

Andrew

Parents
  • Hi,

    1. can two uart and flash backends coexists in  the same application or it is only backened either UART or Flash

    You cannot use two UART backends without modifying it, since it is not designed for it (use static memory etc.). However, you can have multiple backends enabled simultaneously (such as UART and false).

    2. our application is also using FDS storage functionality, can FDS functionality be used with Flash backend?

    There is no conflict between NRF_LOG_BACKEND_FLASH and FDS, as long as the flash pages don't overlap. FDS pages are located at the end of the flash region (or just below the bootloader), whereas the logger can be configured to use flash at an arbitrary location (default is immediately after the application if nothing else is set. You can read more details under Flash logger backend in the Logger module documentation.

    3. if there is an example (besides documentation on infocenter) is available?

    The only examples using the flash backend are the CLI examples (Command Line Interface (CLI) Example and Experimental: Console over Bluetooth Application), which are a bit different from normal logging.

Reply
  • Hi,

    1. can two uart and flash backends coexists in  the same application or it is only backened either UART or Flash

    You cannot use two UART backends without modifying it, since it is not designed for it (use static memory etc.). However, you can have multiple backends enabled simultaneously (such as UART and false).

    2. our application is also using FDS storage functionality, can FDS functionality be used with Flash backend?

    There is no conflict between NRF_LOG_BACKEND_FLASH and FDS, as long as the flash pages don't overlap. FDS pages are located at the end of the flash region (or just below the bootloader), whereas the logger can be configured to use flash at an arbitrary location (default is immediately after the application if nothing else is set. You can read more details under Flash logger backend in the Logger module documentation.

    3. if there is an example (besides documentation on infocenter) is available?

    The only examples using the flash backend are the CLI examples (Command Line Interface (CLI) Example and Experimental: Console over Bluetooth Application), which are a bit different from normal logging.

Children
No Data
Related