PSoC 3 - Programming Connections/Pins

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello All,

   

I am in the process of making a board using the PSoC 3 chip.

   

I was using the schematics of the CY8CKIT-030 as a reference. In that design, there is a 10 pin header. My questions are as follows:

   

1) What are the connections needed for the chip to program & debug? In the reference schematic, they have:

   

p10 - SWDIO

   

p11 - SWDCK

   

p13 - SWO

   

p14 - TDI

   

These seem to be JTAG. I though miniprog 3 could do SWV/SWD which only required 2 pins? Please clarify.

   

2) Where can I find the female header to put on the board? I looked at Digikey, and they seem to be out of stock.

   

3) What should I do with the USB pins if I choose not to use them?

   

Thanks,

   

Alex

0 Likes
1 Solution
Anonymous
Not applicable

For programming and debugging PSoC3 using SWD, following are the connections required between Miniprog3 and PSoC3 chip:

   
        
  1. SWDIO (P1[0])
  2.     
  3. SWDCK (P1[1])
  4.     
  5. XRES     - Reset
  6.     
  7. VTARG  - Target Voltage(VTARG of Miniprog3 should be connected to VDDIO1 of PSoC3) - The SWDIO and SWDCK Pins are on the voltage quadrant corresponding to VDDIO1
  8.     
  9. GND
  10.    
   

For Programming and debugging via JTAG(4 wire):

   
        
  1. TMS P1[0]
  2.     
  3. TCK P1[1]
  4.     
  5. TDO P1[3]
  6.     
  7. TDI   P1[4] 
  8.    
   

 

   

For Programming and debugging via JTAG(5 wire):

   

 

   

 

   
        
  1. TMS P1[0]
  2.     
  3. TCK P1[1]
  4.     
  5. TDO P1[3]
  6.     
  7. TDI   P1[4] 
  8.     
  9. NTRST  P1[5]
  10.    
   

If you do not intend to use USB in your application, the USBIO pins P15[6] and P15[7] can be used as GPIOs.

View solution in original post

0 Likes
7 Replies
Anonymous
Not applicable

For programming and debugging PSoC3 using SWD, following are the connections required between Miniprog3 and PSoC3 chip:

   
        
  1. SWDIO (P1[0])
  2.     
  3. SWDCK (P1[1])
  4.     
  5. XRES     - Reset
  6.     
  7. VTARG  - Target Voltage(VTARG of Miniprog3 should be connected to VDDIO1 of PSoC3) - The SWDIO and SWDCK Pins are on the voltage quadrant corresponding to VDDIO1
  8.     
  9. GND
  10.    
   

For Programming and debugging via JTAG(4 wire):

   
        
  1. TMS P1[0]
  2.     
  3. TCK P1[1]
  4.     
  5. TDO P1[3]
  6.     
  7. TDI   P1[4] 
  8.    
   

 

   

For Programming and debugging via JTAG(5 wire):

   

 

   

 

   
        
  1. TMS P1[0]
  2.     
  3. TCK P1[1]
  4.     
  5. TDO P1[3]
  6.     
  7. TDI   P1[4] 
  8.     
  9. NTRST  P1[5]
  10.    
   

If you do not intend to use USB in your application, the USBIO pins P15[6] and P15[7] can be used as GPIOs.

0 Likes
Anonymous
Not applicable

Thanks for the quick reply.

   

Is there a preferred method? I was thinking that the SWD/SWV method has a lower pin count and therefore might be more desirable. However, is there a debugging time cost to this (do data transfers/programming take longer)?

   

Thanks,

   

Alex

0 Likes
VivekK_11
Employee
Employee
Welcome! First solution authored 10 replies posted

If you do not require JTAG specific features like Boundry scan, JTAG chain programming, SWD is the recommended debug interface option. SWD is the debug interface from ARM intended to replace JTAG with lower pin count and no loss of performance or features.

Anonymous
Not applicable

SWD is the preferred interface for Programming and debugging. With PSoC3 SWD is a more Robust interface. Interms of timing, both the interface should take the sametime as long as the operating frequency is the same.

Anonymous
Not applicable

Hi 

   

 

   

I need a help in designing a 32 channel data acquisition system 

0 Likes
BeCo_289361
Level 3
Level 3
First like given

U2's first illustration shows the SWD setup for miniprog3.  

   

Can this configuration be used for capsense tuning as well?  

   

Or are seperate pins need for I2C?

   

I connected P1[0,1] to P12[1,0] respectively on my target (no pull-ups).  The tuner freezes quite a bit and the trouble seems to be I2C related.

   

Any ideas?

   

Thank you.

   

Bernie 

0 Likes
BeCo_289361
Level 3
Level 3
First like given

Please disregard previous post.

   

bc

0 Likes