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. #if MYNEWT_VAL(LOG_TO_REBOOT_LOG) // remove the "static" in sys/reboot/src/log_reboot.c to make it public extern struct log reboot_log; #define IBEACON_LOG_MODULE (LOG_MODULE_PERUSER + 0) #define IBEACON_LOG(lvl, ...) LOG_ ## lvl(&reboot_log, IBEACON_LOG_MODULE, __VA_ARGS__) #endif Regards Alfred EDV-Beratung Schilken [email protected] www.schilken.de mobil: +49 178 1475677
