- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Moto,
When I choose GPIO there is no Sdat and sclk. Where can I connect the sdat and sclk pins of miniprog3?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Moto-San,
It Worked. Thanks again.