Hi zy,
Please don't worry.
If you didn't also modify the reset pin to gpio, it's ok to recovery it.
Now, please change the on board debugger to JLINK at first. Then use the JLINK commander to do the mass erase at first.
1. change the on board debugger to JLINK
enter the bootloader mode, copy the JLINK firmware to the bootloader.
The firmware can be downloaded from this link:
SEGGER - The Embedded Experts - Downloads
The Jlink driver you also need to installed:
SEGGER - The Embedded Experts - Downloads
2. After you change your on board debugger to JLINK
open JLINK commander under the JLINK driver, press the reset button, then try to connect it.
If you can't connect it, press the reset button, and hold on it.
in the JLINK commander, input: unlock kinetis
This command will do the mass erase, then your SWD will be saved.
Please try it on your side.
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------