Change SWD port form P1 to P15 in PSoC5LP

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

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hello,

SWD port of PSoC5LP is assigned to P1[0:1] as an initial setting.

It is described that P15[6:7] is also assigned to the SWD in the data sheet.

Do you know how to change SWD port from P1[0:1] to P15[6:7]?

Perhaps we thnk that would be to rewrite the NVL.

If it is possible to change, is there anything to note about changing?

Even if SWD is set to P15[6:7], is it also possible to assign P15[6:7] to GPIO?

Regards,

Masashi

0 Likes
1 Solution

Have a look at the following conversion of a KitProg to KitProg2.

Convert Kitprog1 into Kitprog2

It discusses using SWD port on P15[6:7].

According to this successful conversion, the 5LP looks at both SWD ports after XRES is toggled, looking for SWD activity.

regards,

Bill

View solution in original post

0 Likes
6 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Hi Masashi,

The SWD pin has been fixed when the chip out of the factory line, so the customer has no way to change the SWD pin.

But the SWD port pin can be configured as GPIO out of programming mode.

Thanks,

MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hi,

Notation such as Port 15[6:7] of SWD is described in various parts of the data sheet.

Does this mean that it was scheduled but not realized?

Regards,

0 Likes

15[6:7] and 1[0:1] both can be the SWD interface.

But in the factory, we fixed one of them (1[0:1]) as SWD interface.

So we can ignore the other one.

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hi,

Again, We would like to confirm on this matter.

I heard that you are not connected internally.
However, when connecting MiniProg 3 to P15[6:7], it was recognized with SWD without any problem.

Regards,

0 Likes

Have a look at the following conversion of a KitProg to KitProg2.

Convert Kitprog1 into Kitprog2

It discusses using SWD port on P15[6:7].

According to this successful conversion, the 5LP looks at both SWD ports after XRES is toggled, looking for SWD activity.

regards,

Bill

0 Likes
JOLO_264146
Level 4
Level 4
First like received Welcome!

Hi,

one of our customers is using 15[6:7] since the beginning of P5 (before to be LP). He has a "special" connector (and cable) USB (as you know, 15[6:7] are USB line also).

Besides the two lines SW (CK and D -15[6:7]-), you need the reset (he connects the reset to the ID pin at USB connector). He uses the Miniprog3, using the 5 pin connector.

Of course, if you are using this method, you can't use the USB.

If I'm not wrong, he has the P1[0:1] configured as GPIO (because he is use them for other purpose)

Regards

Gil

0 Likes