Is programming still possible when set swd pins to gpio on PSoC5LP

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hallo Community,

   

I would like to use the Programming/Debug-Pins of the PSoC5LP as GPIOs which is theoretical possible.
But, I could not figure out if the programming interface will work after setting swd to gpio. Is programming still possible or not?

   

I added an image to the post to clearify which option I am talking about.

   

Cheers,

   

HeDo

0 Likes
5 Replies
Anonymous
Not applicable

Hello, programming is still possible, but debugging isn´t.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Looking at the TRM, section on NVL lataches, they cannot

   

be modified by firmware. I did see however a note in GPIO

   

that debugging for a pin can be disabled with a  register write.

   

 

   

Not totally clear, maybe someone else can comment on this.

   

 

   

Regards, Dana.

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

 Hello,

   

 

   

Programming is possible even if you select the debug interface as GPIO. Debugging is alos possible in this mode for PSoC5LP device. Just that you will need to acquire the device before debugging.

   

 

   

Thanks,

   

Hima

0 Likes
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hello Hima,

   

 

   

if the debug pins are used as GPIO, how should they be connected for the case that someone wants to debug? This is something like 'pin sharing'. Are there any recommendations from Cypress? I think especially for the case that the pins are configured as outputs, which would interfere with the debug dongle.

   

 

   

Regards,

   

 

   

Ralf

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

 Hi Ralf,

   

 

   

If we are sending a particular seuence in the acquire window after reset then the device will be in debug mode. In that case the SWD pin will function as debug pins only. Only in free running mode(not debug) those pins will fuction as ordinary GPIO.WE recommend not to use the device in debug mode if the SWD pins are configured as GPIO. However debugging will work, but the SWD pins will not act as GPIO.

   

 

   

Thanks,

   

Hima

0 Likes