Skip to main content
AMacd.1
Senior
April 22, 2022
Solved

How to I properly initialize the IO register bits connected to the SWIM pin? (The application does not use this pin for anything)

  • April 22, 2022
  • 1 reply
  • 992 views

..

    This topic has been closed for replies.
    Best answer by Cristian Gyorgy

    You don't have to do anything, SWIM pin is auto configured as input with pullup after reset. For safety reasons you should however disable SWIM by setting the SWD bit, so no one can access your code for reading.

    1 reply

    Cristian Gyorgy
    Cristian GyorgyBest answer
    Associate II
    May 17, 2022

    You don't have to do anything, SWIM pin is auto configured as input with pullup after reset. For safety reasons you should however disable SWIM by setting the SWD bit, so no one can access your code for reading.