I am using the S110 softdevice from v8, and building the bootloader from SDKv8, using keil uv5. The project is dfu_dual_bank_ble_s110_pca10028, loaded from the dfu_dual_bank_ble_s110_pca10028.uvprojx project file in arm5_no_packs. Builds cleanly. Keil says it is targetting an nrf51422_xxac chip; I'm using an InsightSIP module with an nrf51822 xxac chip.
I've mass-erased the chip, loaded the soft modem at location zero, bootloader at 0x3c000 and written 0x3c000 to the UICR register at 0x10001014.
Under gdb, the bootloader is started but at this line (line 151): err_code = sd_mbr_command(&com); it hard faults.
Does anyone have any suggestions for where I am going wrong? A softmodem + hrs app works fine, but everything stops when I add a bootloader.