From ced094f153aa4564eb786718769e92b25216faa1 Mon Sep 17 00:00:00 2001 From: Volodymyr Medvid Date: Fri, 25 Jan 2019 10:06:54 -0800 Subject: [PATCH] PSOC6.py: generate hex files with 16 bytes per row DAPLink implementation on Cypress kits cannot handle hex files with 64 bytes per row: refer to https://github.com/ARMmbed/DAPLink, source/daplink/drag-n-drop/intelhex.c, hex_line_t struct, data field. --- tools/targets/PSOC6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/targets/PSOC6.py b/tools/targets/PSOC6.py index d6a32c0d01..08dc7b80f3 100644 --- a/tools/targets/PSOC6.py +++ b/tools/targets/PSOC6.py @@ -112,7 +112,7 @@ def complete_func(message_func, elf0, hexf0, hexf1=None, dest=None): message_func("Postprocessing %s -> %s" % (elf0, hexf0)) ihex = merge_images(hexf0, hexf1) patch(message_func, ihex, hexf0) - ihex.write_hex_file(dest if dest else hexf0, write_start_addr=False, byte_count=64) + ihex.write_hex_file(dest if dest else hexf0, write_start_addr=False, byte_count=16) # Find Cortex M0 image. def find_cm0_image(toolchain, resources, elf, hexf, hex_filename):