Can the PSoC6 USB port be used for SWD programming like the PSoC5LP is able to?

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

cross mob
Chva_1477726
Level 4
Level 4
25 sign-ins 10 sign-ins First solution authored

With the PSoC5LP, you can use the USB port pins (plus /Reset) to  program the flash using the SWD protocol. I cannot find any definitive material that gives clarity on this wrt. the PSoC6.

I use this feature in most of my PS0C5LP designs and would like to continue doing so on my PSoC6 designs.

Does the PSoC6 support this feature?

Regards

Chris

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

You are referring to this KBA:

Serial Wire Debug (SWD) Using USBIO Pins in PSoC® 3 and PSoC 5LP – KBA82881

If you check the datasheet page#07-08 of PSoC5LP at this link:

http://www.cypress.com/file/45906/download

It is mentioned that P15.6 & P15.7 can act as USB_Dp/SWDIO and USB_Dm/SWDCLK.

But, if you check datasheet page#14 of PSoC6 at this link mentioning about Alternate Function possible for each pin, There is no alternate function mentioned for P14.0  & P14.1:

http://www.cypress.com/file/385916/download

I can find that P14.0 and P14.1 can act as only USB_Dm and USB_Dp only as mentioned on page#20.

So, I think that this feature is not possible for PSoC6.

View solution in original post

0 Likes
3 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Hello Chris,

Can you please provide more clarity how are you using PSoC5LP's USB port pins for programming.Are you referring to HSSP mode or something else.

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

You are referring to this KBA:

Serial Wire Debug (SWD) Using USBIO Pins in PSoC® 3 and PSoC 5LP – KBA82881

If you check the datasheet page#07-08 of PSoC5LP at this link:

http://www.cypress.com/file/45906/download

It is mentioned that P15.6 & P15.7 can act as USB_Dp/SWDIO and USB_Dm/SWDCLK.

But, if you check datasheet page#14 of PSoC6 at this link mentioning about Alternate Function possible for each pin, There is no alternate function mentioned for P14.0  & P14.1:

http://www.cypress.com/file/385916/download

I can find that P14.0 and P14.1 can act as only USB_Dm and USB_Dp only as mentioned on page#20.

So, I think that this feature is not possible for PSoC6.

0 Likes

Hi Anks. I am referring to the docs mentioned. I also gathered that the PSoC6 did not support it, but needed to confirm before I change my designs to another connector.

It was very handy as I placed a 5-pin USB connector on the board with pin 4 wired to reset. I used my normal programmer to program the bootloader through the SWD facility and then used USB to upload the application and do field upgrades.

I will now have to change this strategy.

Regards

Chris.

0 Likes