diff --git a/tools/targets/__init__.py b/tools/targets/__init__.py index ce5de16ecc9..2225c34ac6b 100644 --- a/tools/targets/__init__.py +++ b/tools/targets/__init__.py @@ -490,7 +490,7 @@ def binary_hook(t_self, resources, _, binf): binh.merge(blh) with open(binf.replace(".bin", ".hex"), "w") as fileout: - binh.tofile(fileout, format='hex') + binh.write_hex_file(fileout, write_start_addr=False) class NCS36510TargetCode: @staticmethod