10 Pins SWD programming

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

cross mob
SAKU_3733026
Level 1
Level 1

Hello all,

I am trying to program my psoc 3 device through SWD protocol but getting error.

With the help of 10 pins ,JTAG programming is working fine but with the same setup getting the below error.

Please help me out.

Thank you,

Saurav

psoc.PNG

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

Hi Saurav,

Are you using any custom board or a Cypress Development kit. Please mention.

Can you try programming any Cypress Code example provided with PSoC Creator and then share your observation.

Please check that if you have latest version of PSoC Programer 3.28.4 from this link:

https://www.cypress.com/products/psoc-programming-solutions

You can try programming  using 5 pin-SWD (swdio, swdclk, XRES, gnd, VTarg) using Miniprog3, then choose 5 pin connector option in PSoC Programmer to program.

Thanks,

Ankita

0 Likes

Hi Ankita,

Thank you for your reply.

I am using CY8C3245LTI-163 PSOC 3 device on my card. And I have generated hex file and programing the same.

I am able to program that .hex file with the help of JTAG but when I am selecting SWD mode, showing the device is not acquired. Pin connection is fine.

Regards,

Saurav

0 Likes

Hi Saurav,

Please share the schematic of your custom board.

If you can't share the schematic, then please cross check it verifies all the guidelines given in PSoC5LP/PSoC3 Hardware Design Guide available at the following link:

https://www.cypress.com/documentation/application-notes/an61290-psoc-3-and-psoc-5lp-hardware-design-...

Please try programming a Code example available in Creator and share your experience.

Thanks,

Ankita

0 Likes

Hi Ankita,

Everything is the same as mentioned in the document.

Does it matter either it is my code or code example?

Because JTAg is working fine but getting an error in SWD mode.

0 Likes

Hi Saurav,

SWDCLK must be no more than 1/3 CPU clock frequency used in  a project.

Please find the MiniProg3 10 pin connection details for JTAG and SWD:

pastedImage_0.png

Can you mention which Windows OS version are you using?

Thanks,

Ankita

0 Likes

Hi Ankita,

My OS is Windows 7.

The clock frequency is fine.

Regards,

Saurav

0 Likes

Hi,

Please share the schematic of custom board.

Thanks,

Ankita

0 Likes