Skip to content

Commit

Permalink
Fix Zephyr flashing on physical hardware, busted in apache#7813 (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
areusch authored and mehrdadh committed Apr 22, 2021
1 parent ba750b4 commit f9ae33f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/tvm/micro/contrib/zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,10 @@ def flash(self, micro_binary):
if self._qemu:
return self._zephyr_transport(micro_binary)

build_dir = os.path.dirname(
micro_binary.abspath(micro_binary.labelled_files["cmake_cache"][0])
)
cmake_cache_path = micro_binary.abspath(micro_binary.labelled_files["cmake_cache"][0])
cmake_entries = read_cmake_cache(cmake_cache_path)

build_dir = os.path.dirname(cmake_cache_path)

# The nRF5340DK requires an additional `nrfjprog --recover` before each flash cycle.
# This is because readback protection is enabled by default when this device is flashed.
Expand Down

0 comments on commit f9ae33f

Please sign in to comment.