Skip to main content
mike louaillier
Associate III
July 10, 2017
Question

use PA13 as GPIO

  • July 10, 2017
  • 5 replies
  • 1897 views
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

    This topic has been closed for replies.

    5 replies

    Zt Liu
    Senior III
    July 10, 2017
    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.

    mike louaillier
    Associate III
    July 10, 2017
    Posted on July 10, 2017 at 06:21

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

    Zt Liu
    Senior III
    July 10, 2017
    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.