cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

eeEn_4618901
Contributor

Hi, I designed a new circuit using chip. I want to program with miniprog3.

When I choose GPIO for programming, where should I connect sdat and sclk?

Is there a downside to my GPIO choice?

I cannot select swd + swv. because I accidentally used the swd debug pins for the sensor.

pastedImage_134.png

Ekran Alıntısı.JPG

0 Likes
Reply
1 Solution
MotooTanaka
Esteemed Contributor

Hi,

SWDIO:    P1[0]

SWDCLK: P1[1]

You connected

MINIPROG SCLK ==> PSoc SWDIO: P1 [0]

MINIPROG SDAT ==> PSoc SWDCLK: P1 [1]

Seems to be opposite.

Please re-check your connection(s).

moto

View solution in original post

7 Replies
MotooTanaka
Esteemed Contributor

Hi,

Even if you selected GPIO for Debug delect, you can download / program the device as usual.

The only downside is you can not debug the project as far as the setting is GPIO.

moto

eeEn_4618901
Contributor

Hi Moto,

When I choose GPIO there is no Sdat and sclk. Where can I connect the sdat and sclk pins of miniprog3?

Ekran Alıntısı2.JPG

0 Likes
Reply
MotooTanaka
Esteemed Contributor

Hi,

The pin config you are seeing is the setting of after the device is configured according to the project setting(s).

But just after reset, all pins are reset to its default state.

SWDIO:    P1[0]

SWDCLK: P1[1]

Should work for download/program the device.

But once program started and initialized for the application

they will lose the SWD functionalities.

moto

BiBi_1928986
Contributor II

Hello.

As Moto mentioned, PSoC 5LP defaults to use:

SWDIO:    P1[0]

SWDCLK: P1[1]

When 5LP does not see SWD activity on P1[0], P1[1] pins during reset, it will look for activity on the alternate pins:

SWDIO:    P15[6]

SWDCLK: P15[7]

These pins are also used for USB.  These pins might also be used in your project.

Regardless of which SWD I/O's you choose to try programming, make sure any I/O device connected to the SWD pin is not driving the PSoC pin.  If the I/O device drives the SWD pin, it will interfere with SWD communications.  You would have to disconnect that I/O signal from the SWD pin.

Good luck with your project.

0 Likes
Reply
eeEn_4618901
Contributor

Hi,

I am trying to install a program with miniprog 3.

I read that it should be SWD. I set the 3.3V. I chose 5 p.

MINIPROG VTARG ==> PSoc VDD

MINIPROG GND ==> PSoc gnd

MINIPROG XRES ==> PSoc 15th pin

MINIPROG SCLK ==> PSoc SWDIO: P1 [0]

MINIPROG SDAT ==> PSoc SWDCLK: P1 [1]

I make the connections.

The solders of the pins of the psoc chip are also solid.

I couldn't program the chip. where am i doing wrong?

Ekran Alıntısı.JPG

0 Likes
Reply
MotooTanaka
Esteemed Contributor

Hi,

SWDIO:    P1[0]

SWDCLK: P1[1]

You connected

MINIPROG SCLK ==> PSoc SWDIO: P1 [0]

MINIPROG SDAT ==> PSoc SWDCLK: P1 [1]

Seems to be opposite.

Please re-check your connection(s).

moto

View solution in original post

eeEn_4618901
Contributor

Hi Moto-San,

It Worked. Thanks again.