Hi,
thx for replay. While debug session, code is captured in this loop:
while(!(OSC_CR & OSC_CR_OSCINIT_MASK));
As, oscillator is not running, this is plausible.
Attached code is well known and used, hence doesn't change root cause.
My personal point of view is that usage SWD is influencing the OSC.
If this is true, it's a bit uncomfortable but no showstopper. I will ask debugger manufacturer if he has any knowledge about this. Suggest to idle this thread, until his feedback.
cordialment/
Michael