Skip to content

Commit

Permalink
Update utils.cmake
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LukeOxley authored Apr 3, 2024
1 parent 07a047c commit 1248be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 1248be2

Please sign in to comment.