Hi,
I am having a problem with my FRDM-MCXN947 . Whenever I try to debug or flash my project, I get this error :


I don't know if it's related, but it started when I changed this line in a while(1) loop to increase its frequency : SDK_DelayAtLeastUs(30000, SystemCoreClock); -> SDK_DelayAtLeastUs(10000, SystemCoreClock);
I didn't update before the problem occurred, but I updated LinkFlash afterwards and it didn't solve anything.
I already tried SPT erase but it didn't work. (Maybe I did it wrong.)
On the SPT, after activating ISP mode, I was able to perform the “build image” and “write image” operations, but erasing still does not work.


Thank you in advance for your help.
PS: Please excuse my English and technical vocabulary, I am just starting this project at engineering school.