I am testing an example from nRF SDK 7.2.0 on a custom board with nRF51822 QFAAH2 chip. This simple example is ble_app_template adapted for Segger, it should advertise and accept connections. I am required to use SoftDevice S110 v7.1.0 for this project, hence the old SDK.
The projects crashes on my custom nRF51822 after I call sd_app_evt_wait() in the main for() loop for the second time.
Call stack shows unknown functions at weird addresses:

Exactly the same error occurs with the bootloader example.
Both examples run perfectly on nRF51422 QFAC DK. RAM settings are correct for nRF51822 xxAA.
What am I missing?