- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I use P6_6 and P6_7(swd) to control LED,and program MCU,I can't program mcu through swd again.How can i do something to fix it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards,
Meenakshi Sundaram R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After use PSOC programmer to erase block.I can program mcu again through by Creator.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards,
Meenakshi Sundaram R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great.Thank you so much.