Skip to main content
EMart.1449
Visitor II
November 13, 2019
Question

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

  • November 13, 2019
  • 3 replies
  • 899 views

..

This topic has been closed for replies.

3 replies

ST Employee
November 18, 2019

​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
Chief
November 18, 2019

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

Tesla DeLorean
Guru
November 18, 2019

Not sure NRST is available​

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