Have you ever tried to set Debug select as SWD, and test the feature of programming singly without any connection to external peripherals like LEDs?
I have seen similar situation with other MCU.
With that MCU, there was a short time after MCU leaves out Power On Reset and
configures I/O for specified setup.
So we could grasp the MCU by push and hold the reset button and start debugger.
When debugger starts to access the MCU, release the reset button.
I don't know if this trick works for PSoC, too, but I hope it's a worth trying.
After use PSOC programmer to erase block.I can program mcu again through by Creator.
Thank you for your advice.
1 of 1 people found this helpful
I think you are probably not clicking "Port Acquire" in PSoC Creator.
Essentially after you re-purpose the SWD lines as GPIO, you cannot directly use Kitprog2's SWD protocol to program the device. When you click "port acquire", Kitprog resets PSoC and acquires the device during the reset window when SWD lines are active.
Hope this helps. You do not have to erase from PSoC Programmer.
Meenakshi Sundaram R
Great.Thank you so much.