cancel
Showing results for 
Search instead for 
Did you mean: 

Using SWDI and PA13 simultaneously

mjenabzadeh9
Associate III
Posted on September 24, 2016 at 14:24

Hello

I'm new with St.

is it possible to use SWDI pin for programming and simultaneously

using as GPIO ?

best regards

 
3 REPLIES 3
Posted on September 24, 2016 at 15:16

You aren't really programming and running the code at the same time, right?

If you want to use PA13 in your application you can do so, don't expect to use it for debugging at the same time. Use other methods to debug/diagnose the application.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mjenabzadeh9
Associate III
Posted on September 25, 2016 at 07:08

Hello clive

I just want to use this pin as GPIO  and when ever i need to program my

uc use this pin as pin of  SW 

not debugging . 

Posted on September 25, 2016 at 14:40

You need to provide a sufficiently long window to allow the debugger to connect, or provide access to NRST and/or BOOT0 so the code doesn't execute.

You also need to think about what else you have connected electrically to the pin. Having you app use it to drive a GPIO attached LED would work. As a input driven by some other board logic, not so much.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..