With custom hardware and softdevice flashed on board (using BDM_350) when I try to debug I get and error: with () at 0xfffffff9
It appears to come from address 0x3a2
If I take the same code and run on the PCA10040 it will startup and stop at the main() break point, where with the custom hardware it will crash before main.
Here are the processor registers if it helps
r0 123089
r1 536875592
r2 536870912
r3 122945
r4 268439552
r5 0
r6 0
r7 0
r8 0
r9 0
r10 0
r11 0
r12 0 sp 0x20001228 lr 4294967289 pc 0xfffffff9 xpsr 16777219 msp 536875560