> On Aug 25, 2017, at 9:29 AM, Alfred Schilken <[email protected]> wrote: > > Hello, > > I couldn’t find an example usage of the log_fcb_handler and just used the > reboot_log for writing to the 16 kB FLASH_AREA_REBOOT_LOG area. > > This works fine but it a bit dirty. > > Is there a cleaner way to use both the CONFIG_FCB and the LOG_FCB at the same > time in an app? > Maybe both can use the FLASH_AREA_NFFS? > > The BSP is an nRF51, so no chance to use a real filesystem - I think.
True. However, nrf51 has small flash blocks, so you should be able to have dedicated flash areas for different uses. So maybe it’ll be ok? At least the intent has been that you should be able to have multiple, separate areas, for logs with FCB. I.e. create separate FCB structures, tying them to their respective log_handlers. Then direct logs of the types you want to that specific log handler. I’m pretty sure we have specific sample apps showing this. I’d recommend looking at the unit test we have for sys/log, specifically the ones which use FCB as the log target. Hope this helps, M
