new chip programming

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

cross mob
eeEn_4618901
Level 4
Level 4
5 likes given First like received First like given

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
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

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
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

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

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
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

Hi Moto-San,

It Worked. Thanks again.