From 1248be27d0e4654c988086544c2231785b8e73e2 Mon Sep 17 00:00:00 2001 From: Luke Oxley Date: Tue, 2 Apr 2024 22:12:04 -0400 Subject: [PATCH] Update utils.cmake Main module output had multiple segments (only a few bytes away). The bootloader doesn't support jumps in address, so we will just send some zeros to fill the gap. --- cmake/utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index fcad50233..5d82b64bb 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -31,7 +31,7 @@ function(postbuild_target TARGET_NAME) ) add_custom_command(TARGET ${TARGET_NAME} POST_BUILD - COMMAND arm-none-eabi-objcopy -S -O ihex ${TARGET_NAME} ${COMPONENT_OUTPUT_DIR}/${OUTPUT_FILE_NAME}.hex + COMMAND arm-none-eabi-objcopy -S -O ihex --gap-fill 0 ${TARGET_NAME} ${COMPONENT_OUTPUT_DIR}/${OUTPUT_FILE_NAME}.hex COMMENT "Generateing HEX file" )