Make sure that you are followngSerial Wire Debug (SWD) Using USBIO Pins in PSoC® 3 and PSoC 5LP – KBA82881
What is the Programming mode (Reset or Power cycle) used? Please use power cycle mode of programming with following recommendations. Also, ensure that you are using Miniprog3 Rev*B or higher.
- VDDIOx, VDDA, VDDD are shorted to VTARG of MiniProg3
- GND of MiniProg3 and GND of the board are connected.
- SWDCK of MiniProg3 is connected to USB D-, which in turn is connected to P15of PSoC
- SWDIO of MiniProg3 is connected to USB D+, which in turn is connected to P15of PSoC
Thank you so much for your reply!...
Attaching the Schem of interconnected Components. I have used RESET Cycle mode only. Since the Target PCB has its own individual +5V VDD and the MiniProg3 was USB Powered, I was hesitant to connect VTARG to VDDD for fear of damaging.
MiniProg3 was of Rev C
Also, with the same Schem (and with Reset Cycle Mode), am able to Program the Target CPU while using Primary SWDCK/SWDIO.
Am I missing out something? Or Do I still need to connect VTARG to VDDD and Use Power Cycle Mode?
Requesting your valuable suggestions
Thanks and Regards,
The voltage level of the programmer and the supply voltage for PSoC 3 I/O pins used in programming should be the same. USB SWD pins (P15, P15) are powered by VDDD pin. XRES (P1) pin in PSoC 3 are powered by the VDDIO1 pin.
To program using the USB SWD pins (P15, P15) and XRES pin, the host voltage level (VDD_HOST) should be the same as the VDDD, VDDIO1 pins of PSoC 3. Please connect between host supply voltage (VDDD and VDDIO1) to the VTARG pin of the MiniProg3 connector.
Thank you very much for the clarifications. Yes, I will connect VTARG to our Target PCB's +5V Supply and check.
Will revert back in a week's time as am in a vacation. Thank you so much once again