Skip to main content
lanchon
Associate III
March 22, 2008
Question

ref manual clarification needed: GPIO locking

  • March 22, 2008
  • 3 replies
  • 617 views
Posted on March 22, 2008 at 06:29

ref manual clarification needed: GPIO locking

    This topic has been closed for replies.

    3 replies

    lanchon
    lanchonAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:26

    also TIM1 locking:

    ''12.4.12 Using the break function

    [...] The LOCK bits can be written only once after an MCU reset.''

    ''12.5.18 Break and dead-time register (TIM1_BDTR)

    Bits 9:8 LOCK[1:0]: Lock Configuration.

    [...] The LOCK bits can be written only once after the reset. Once the TIM1_BDTR register has been written, their content is frozen until the next reset.''

    same question, what type of reset will clear the lock?

    lanchon
    lanchonAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:26

    ''5.1.6 GPIO locking mechanism

    [...] it is no longer possible to modify the value of the port bit until the next reset.''

    ''5.2.7 Port configuration lock register (GPIOx_LCKR)

    [...] it is no longer possible to modify the value of the port bit until the next reset.''

    what reset? is a peripheral-local reset enough? software reset? POR?

    lanchon
    lanchonAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:26

    I tested the TIM1 lock; a peripheral reset (TIM1_DeInit()) clears it.