diff --git a/targettest/targettest/devkit.py b/targettest/targettest/devkit.py index 753be81..4a80248 100644 --- a/targettest/targettest/devkit.py +++ b/targettest/targettest/devkit.py @@ -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: @@ -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)}') diff --git a/targettest/targettest/provision.py b/targettest/targettest/provision.py index b24fcc8..d56d9df 100644 --- a/targettest/targettest/provision.py +++ b/targettest/targettest/provision.py @@ -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