Yes this will certainly work. You need to have the following pin connections between PSoC and minirprog3 for that.
P1 --> SWDIO
XRES --> XRES
and Common ground.
Thanks, does the miniprog3 also support single wire debug through the 5 pin connector? I'm guessing that it will since it uses the same pins for programming.
Serial Wire Debug (SWD) is supported by both the 5-pin and the 10-pin connectors available on the miniprog3. Single Wire Viewer (SWV) is supported through 10-pin connector.
This is documented in the Miniprog3 User Guide. Here is the excerpt from the user guide:
"MiniProg3 supports programming and debugging PSoC 3 and PSoC 5 devices, using SWD, through the 5-pin or 10-pin connector.
The Single Wire Viewer (SWV) interface, also introduced by ARM, is used for program and data monitoring, where the firmware may output data in a method similar to “printf” debugging on PCs, using a single pin. MiniProg3 supports monitoring of PSoC 3 and PSoC 5 firmware, using SWV, through the 10-pin connector and in conjunction with SWD only."
The user guide can be found here www.cypress.com/?docID=29029
Yes,the 5pin connector will easy work.Take a note of the connections U2 mentioned.
Also,while making the PCB,keep enough space around the connector so that you can easily insert the miniprog..Just something I had kept in mind while making my psoc designs..
I have done the same mistake which kmmankad has told. Keep some space aroung the programming header. Also, if you have a reset source on your board from a source other than Miniprog, try to have a diode that isolates the connection from your Miniprog and the connection from the other reset source. You don't want random resets on your XRES pin. Also, have a pullup pn the XRES Pin.
@U2 : external pullup on XRES? But its already internally pulled up,right? ..