Skip to content

Commit

Permalink
stm32fp: Flashing does not work under reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweBonnes committed Jul 28, 2019
1 parent f2182cf commit e72aca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stm32fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, driver, stlink, dbg, bank=0):
self.unlock()

def unlock(self):
self._driver.core_reset_halt()
self._driver.core_halt()
# programing locked
if self._stlink.get_debugreg32(Flash.FLASH_CR_REG) & Flash.FLASH_CR_LOCK_BIT:
# unlock keys
Expand Down

0 comments on commit e72aca9

Please sign in to comment.