I am trying to get a bootloader to run on a 52832_xxab, which is the smaller variant of the xxaa, so far without success. I use a custom board without LF Clock crystal, SDK 14.2 and softdevice 5.1, Keil uVision and J-Link. For testing I use nRF Connect on an Android mobile.
On a second board I have the xxaa in a module variant (so with LF Clock crystal) there I have the bootloader from the example area successfully to run. But I had to use the armgcc environment, with the Keil environment it didn't work (so far).
When I customize the armgcc environment for the xxab and use it to create the bootloader it does not work. When I start the Keil debugger, I see that the first steps up to main() and also after that are still executed correctly. After that, or as soon as I activate run I end up in a hardfault.
Here are my adjustments:
LF clock source in config.h and also in p1040.h on SYNTH
Makefile, LD file and generated HEX file: secure_dfu_ble_gcc_nrf52_xxab.zip
Please let me know if more info is needed.
Is it even possible to run the bootloader without the LF crystal?
What am I doing wrong?
Greetings,
Andreas