From eb546c32a86add4f831c2d88207005c2f09c0797 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 5 Jan 2021 13:21:10 -0800 Subject: [PATCH] halt device before injecting blob --- transport_plugins/jlink/RELEASE.md | 4 ++++ .../jlink/iotile_transport_jlink/jlink_background.py | 2 +- transport_plugins/jlink/version.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/transport_plugins/jlink/RELEASE.md b/transport_plugins/jlink/RELEASE.md index fefd1817b..e745ead11 100644 --- a/transport_plugins/jlink/RELEASE.md +++ b/transport_plugins/jlink/RELEASE.md @@ -3,6 +3,10 @@ All major changes in each released version of the jlink transport plugin are listed here. +## 1.1.2 + +- Halt the device before injecting flash forensics blob + ## 1.1.1 - Add placeholder support for heartbeat debug command. diff --git a/transport_plugins/jlink/iotile_transport_jlink/jlink_background.py b/transport_plugins/jlink/iotile_transport_jlink/jlink_background.py index a4f8283b8..50645e198 100644 --- a/transport_plugins/jlink/iotile_transport_jlink/jlink_background.py +++ b/transport_plugins/jlink/iotile_transport_jlink/jlink_background.py @@ -259,7 +259,7 @@ async def debug_read_memory(self, device_info, _control_info, args): if memory_region == 'external': if pause is False: raise ArgumentError("Pause must be True in order to read external data.") - await self.reset() + await self.reset(halt=True) await self._inject_blob(ff_cfg.ff_absolute_bin_path) pc_reg = await self._loop.run_in_executor( diff --git a/transport_plugins/jlink/version.py b/transport_plugins/jlink/version.py index 64c8c21b1..e673db0c0 100644 --- a/transport_plugins/jlink/version.py +++ b/transport_plugins/jlink/version.py @@ -1 +1 @@ -version = "1.1.1" +version = "1.1.2"