Hm.. not sure if this is the case here - and i can't find the document.
NXP adds this to every interrupt (and maybe more places - don't remember and I havn't the code anymore)
Anyway - it does not help here.
NXP adds this to every interrupt (and maybe more places - don't remember and I havn't the code anymore)
Code:
[B]/* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F, Cortex-M7, Cortex-M7F Store immediate overlapping[/B]
[B] exception return operation might vector to incorrect interrupt */[/B]
[B]#if defined __CORTEX_M && (__CORTEX_M == 4U || __CORTEX_M == 7U)[/B]
[B] __DSB();[/B]
[B]#endif
[/B]