I am having trouble with SWD protocol using 5 pin connector. Please help

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

cross mob
bhvfc_4216081
Level 1
Level 1

I am new to Cypress microcontrollers and I installed PSoC programmer. I have a custom board with CY8C4125LQI-483 micro on it and  I am trying to program it  using the 5 pin connector on MiniProg3. The pins on the micro are:

P3[2] for SWD Data

P3[3] for SWD Clk

pin30  for XRES

It says in documentation that the pin assignments on MiniProg3 for SWD protocol are:

SDIO for pin5

SCK for pin4

XRES for pin3

I am totally confused how to connect the 5-pin connector to the micro. So do I connect SDIO to SWD Data and 3.3V external power? Which pin on the 5-pin MiniProg should I use for the GND?

0 Likes
1 Solution
brockr0-S
Level 4
Level 4
First like received Welcome!

You  can find all the information you require in the PSoC MiniProg3 Program and DebugKit Guide.

Refer to section 3.2.1 for the 5 pin connector pinout.

You need to connect all five pins:

1 - VTARG  = Target voltage, in your case it seems like this will be 3.3V.

2 - GND          This will be the ground connection you were asking about.

3 - XRES         External reset     CY8C4125LQI-483 pin 30

4 - SCK           Serial Clock        CY8C4125LQI-483 pin 13

5 - SDAT         Serial data. Can be referred to in a number of way, SDATA and SDIO are common. CY8C4125LQI-483 pin 12

I hope this helps.

View solution in original post

0 Likes
1 Reply
brockr0-S
Level 4
Level 4
First like received Welcome!

You  can find all the information you require in the PSoC MiniProg3 Program and DebugKit Guide.

Refer to section 3.2.1 for the 5 pin connector pinout.

You need to connect all five pins:

1 - VTARG  = Target voltage, in your case it seems like this will be 3.3V.

2 - GND          This will be the ground connection you were asking about.

3 - XRES         External reset     CY8C4125LQI-483 pin 30

4 - SCK           Serial Clock        CY8C4125LQI-483 pin 13

5 - SDAT         Serial data. Can be referred to in a number of way, SDATA and SDIO are common. CY8C4125LQI-483 pin 12

I hope this helps.

0 Likes