cancel
Showing results for 
Search instead for 
Did you mean: 

use PA13 as GPIO

mike louaillier
Associate II
Posted on July 10, 2017 at 04:37

Hello i wanna lite an LED with PA13, but i also wanna be able to use the SW interface to update the code. anybody know how to do both contemporaneously?

thanx, mike

5 REPLIES 5
Zt Liu
Senior III
Posted on July 10, 2017 at 06:17

After reset, PA13 PA14 debug pins are enabled,

you may check by software:

if it's not in debug mode, (eg. in CM3/CM4 check DHCS register)

,then config them as gpio ouput.

Posted on July 10, 2017 at 06:21

you mean lines 13 & 14 start in debug mode by default before my code executes?

Posted on July 10, 2017 at 06:32

Normally, those pins are assigned for DBG IOs after reset.

0690X00000607U7QAI.png

You may reconfigure them as you need, once you didn't detect in debug mode.

Posted on July 10, 2017 at 06:39

ok i see. THANK YOU Zhitai :)

Posted on July 10, 2017 at 09:42

https://community.st.com/0D50X00009bMM5DSAW

mike louaillier wrote:

ok i see. THANK YOU Zhitai :)