Hello,
Last time I encountered "SWD Discovery Failed" when debugging (thread here). Flash Magic Tool solved this problem. However, I'm in a new cycle in which I have to clear flash memory every time before I need to debug with MCUXpresso.

Let me elaborate. It starts with clearing the flash memory of LPC55s2x-EVK with Flash Magic Tool. Then, debug with MCUXpresso. It works fine for the first time, but it always failed for the second time when I need to debug again. And it shows SWD discovery failed error message again. And I will need to clear flash memory with Flash Magic Tool again and repeat the process.

Sometimes I get this error message saying "Debug port inaccessible after access at location 0x000064B4." Then, I'll have to reset the memory with Flash Magic Tool for it to work again.
And if I'm not lucky, Flash Magic Tool won't work, either. This can be fixed with a PC restart

Thanks.
Taylor