> Couldn't it be related to the MASKINTS erratum of Cortex-M7 r0p1 ... Liviu - can you clarify the revision of your target Cortex-M7? If it's not r0p2 or later then presumably this erratum does not apply?
> It could be interesting to test with -c 'init;cortex_m maskisr on' And if that does eliminate/mask the problem then I wonder if the Segger/J-Link software (J-Link Commander I presume?) is doing that automatically? I couldn't find anything informative by searching and since it's closed source only Segger can tell what it does. > Not to mention that with the J-Link and the SEGGER software, it did not occur.