Skip to content

Commit

Permalink
remove recover function
Browse files Browse the repository at this point in the history
was only needed for the case where CTRL-AP was secured on nRF53

Signed-off-by: Jonathan Rico <[email protected]>
  • Loading branch information
jori-nordic committed Aug 15, 2022
1 parent 2167242 commit 141ac67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions targettest/targettest/devkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def select_core(api, core):
@contextmanager
def SeggerDevice(family='UNKNOWN', id=None, core='APP'):
with SeggerEmulator(family, id, core=core) as api:
print(f'[{id}] connecting...')

try:
api.connect_to_device()
except APIError.APIError as e:
Expand Down Expand Up @@ -182,16 +180,6 @@ def get_serial_port(id):
# on nRF53 DKs.
return api.enum_emu_com_ports(id)[-1].path

def recover(id, family):
with SeggerEmulator(family, id) as api:
print(f'[{id}] recover')
if family != 'NRF52':
select_core(api, 'NET')
api.recover()

select_core(api, 'APP')
api.recover()

def flash(id, family, hex_path, core='APP', reset=True):
with SeggerDevice(family, id, core) as cpu:
print(f'[{id}] [{family}-{core}] Flashing with {str(hex_path)}')
Expand Down
2 changes: 1 addition & 1 deletion targettest/targettest/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time
import pathlib
from contextlib import contextmanager
from targettest.devkit import Devkit, recover, flash, reset
from targettest.devkit import Devkit, flash, reset
from targettest.uart_channel import UARTRPCChannel


Expand Down

0 comments on commit 141ac67

Please sign in to comment.