Hi,
I'm having a hard time trying to share the bonding information with the bootloader. I'm using the method explained here infocenter.nordicsemi.com/.../bledfu_application.html by using the dfu_ble_svc.c and the linker script provided with the DFU example.
After some investigation I've found that the peer data was being partially overwritten just after being set by the bootloader SVC. Then I noticed the RAM definition on the application ld script (taken from the HRS example) was overlapping the .noinit section so I reduced the RAM length by 0x80 bytes so it won't overlap.
With this change it partially works, by dumping the .noinit RAM section I can see that the peer data and the CRC is being set correctly and it's not being overwritten. It boots to the bootloader just fine when writing to the DFU control point but it ends freezing (seems like a hardfault but I can't debug it) when it calls ble_stack_init().
Any thoughts?
Thanks