Skip to content

Commit

Permalink
family: nrf52: correct out of date code to use discoverer method (#1454)
Browse files Browse the repository at this point in the history
Ensure core discovery after mass erase on locked targets.

Co-authored-by: Mathis Dedial <[email protected]>
  • Loading branch information
brathis and Mathis Dedial authored Oct 23, 2022
1 parent f19e251 commit 8caa8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyocd/target/family/target_nRF52.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def check_flash_security(self):
raise exceptions.TargetError("unable to unlock device")
# Cached badness from create_ap run during AP lockout prevents create_cores from
# succeeding.
self.dp.create_1_ap(AHB_AP_NUM)
self._discoverer._create_1_ap(AHB_AP_NUM)
else:
LOG.warning("%s APPROTECT enabled: not automatically unlocking", self.part_number)
else:
Expand Down

0 comments on commit 8caa8bd

Please sign in to comment.