Switch from SWD/SCL to GPIO during runtime

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User7804
Level 4
Level 4
Hello All,

a support request on this topic was unsuccessful, so I ask here:

Starting a XMC1100 in UMD (SWD debug enabled), I want to terminate SWD and switch P0.14 and P0.15 to GPIO under program control.

The reason is that the debug pins also serve as LED indicators and if the debugger is not attached, I want to use the LED indicators.

If the debugger is attached, the application shall detect it *) and stay in SWD mode.

How can I do this?

I found no documentation on enabling or disabling debug mode for certain pins.

TIA,

Oliver

*) E.g. by checking a variable set by the debugger via SWD, although it would be smarter to detect active SWD
0 Likes
0 Replies