Question
How do I use SWDIO and SWCLK as standard GPIO but still allow for re-programming?
Posted on December 30, 2014 at 08:51
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 regardsGrant #serial-wire-debug