Hello everyone!
I'm trying to bring up project based on nRF51802 at custom board. I know this IC is not supported but there is no options to change it. I have downloaded nRF5 SDK v12.3.0 and going to use softdevice S130 v2.0.1.
Since SDK has no templates or examples for Segger Embedded Studio, I started project from scratch leaning on examples for IAR. The problem is that device goes to hardfault, actually to some unexpected address and stuck there. Last normally executed instruction lays in softdevice memory region at 0x6B4 address. This happens upon executing "sd_softdevice_enable" function called from "softdevice_handler_init" functione given by SDK API. See pictures below.
Here is some code:
Also I was playing with differ from original clock settings, such as XTAL accuracy and even changed sourse to RC ocsillator. Device behaves in the same way.
Where did I go wrong? Any help will be apreciated.