AnsweredAssumed Answered

How do I use SWDIO and SWCLK as standard GPIO but still allow for re-programming?

Question asked by elliott.grant on Dec 30, 2014
Latest reply on Dec 31, 2014 by behra.harshan
Hi there

I am planning to use the STM32F030F4 for an application where I have a main interface header that I also want to use to program the micros in production.  I am pin limited on the header so this means I need to "multiplex" the use of the SWDIO and SWCLK pins.

What I am looking for is a simple way to figure out when booting as to whether I am hooked up to a programmer/debug unit or not so I can choose whether to map the SWDIO/SWCLK pins to their alternate functions or not.

Thanks and regards