From ada0d214015aa2e095be1e0108cf6bdd8417cf15 Mon Sep 17 00:00:00 2001 From: Andrzej Puzdrowski Date: Fri, 5 May 2017 13:27:29 +0200 Subject: [PATCH] avoid 03/05 intel-hex records for nordics devices use Intelhex::write_hex_file instead of IntelHex::tofile --- tools/targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/targets.py b/tools/targets.py index 84ae222b1c..edcd33181d 100644 --- a/tools/targets.py +++ b/tools/targets.py @@ -489,7 +489,7 @@ class MCU_NRF51Code(object): 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