cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, Is it possible to reconfigure the programming pins (SWCLK, SWDIO and NRST) as input and output pins and work with them? if I need to reprogram the microcontroller they must work normally. Enrico

EMart.1449
Associate
 
3 REPLIES 3
Antoine Odonne
ST Employee

​Dear Enrico,

It is possible to reprogram those GPIOs by default (upono reset) in Alternate Function, to any other state (input, output or another alternate function) and use them afterward. However you will obviously loose debug functionnality consequently and capacity to reprogram device using them directly.

A simple alternative would be then to connect under reset, assuming reset line can be connected from debug to MCU and reprogram the device after connecting under reset.

Best regards,

Antoine

Uwe Bonnes
Principal III

You can programmatically remap early during startup, but not hard-coded when coming out of reset.

Not sure NRST is available​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..