Hi Szymon, On Tue, Feb 28, 2017 at 03:51:51PM +0100, Szymon Janc wrote: > Hi, > > I noticed that some applications (eg bleprhp) enable FCB logging in > syscfg.yml by default. > When flashing such sample on nRF52DK I get assertion [1] before even > main() is reached. > And if I reset a board I get loop of assert and unhandled interrupt > exception [2]. > > Disabling FCB makes sample works fine. Do I need to do any magic to > get it working > with FCB enabled?
My guess is that there is something else written to the reboot log area. I believe the reboot log package asserts that it initializes successfully. Do you know what code is at the indicated address (0x1a393)? This would be the case if it has been a long time since you erased your device's flash. The flash map changed in an non-backwards-compatible way between 0.9.0 and 1.0.0-b1. > Also, should those be enabled by default in samples in first place? Yes, that is probably a good idea IMO. Chris > > [1] > 1:Assert @ 0x1a393 > > [2] > 1:Assert @ 0x1a38b > 1:Unhandled interrupt (2), exception sp 0x20000ba0 > 1: r0:0x00000000 r1:0x00000000 r2:0x80000000 r3:0xe000ed00 > 1: r4:0x0001a38b r5:0x00000000 r6:0x00000000 r7:0x00000000 > 1: r8:0x00000000 r9:0x00000000 r10:0x00000000 r11:0x00000000 > 1:r12:0x00000000 lr:0x00008875 pc:0x00008884 psr:0x61000200 > 1:ICSR:0x00421802 HFSR:0x00000000 CFSR:0x00000000 > 1:BFAR:0xe000ed38 MMFAR:0xe000ed34 > 1:Assert @ 0x1a38b > 1:Unhandled interrupt (2), exception sp 0x20000ba0 > 1: r0:0x00000000 r1:0x00000000 r2:0x80000000 r3:0xe000ed00 > 1: r4:0x0001a38b r5:0x00000000 r6:0x00000000 r7:0x00000000 > 1: r8:0x00000000 r9:0x00000000 r10:0x00000000 r11:0x00000000 > 1:r12:0x00000000 lr:0x00008875 pc:0x00008884 psr:0x61000200 > 1:ICSR:0x00421802 HFSR:0x00000000 CFSR:0x00000000 > 1:BFAR:0xe000ed38 MMFAR:0xe000ed34 > > > -- > pozdrawiam > Szymon K. Janc