Hi @All_Seer
If you are using a LPC55 MCU, or similar LPC, try to set the MCU in ISP mode and try to make a mass erase. This is common way to regain debugg access :). ISP mode enter procedure is describen in the MCU user manual
Now, if you are using a custom board and the above still does not help, try to review the SWD connections, have proper power rails.
If still you can not access by SWD, while you are on ISP mode, try to see if you can establish any connection with the ROM bootloader. This can be done with the MCUXpresso Secure Provisioning tool or even with the Flash Magic tool. If you succed with this, try to erase one more time the flash.
All the best,
Diego