diff --git a/cmake/stm32.cmake b/cmake/stm32.cmake index eed7a9dfa0..5d7db58f2e 100644 --- a/cmake/stm32.cmake +++ b/cmake/stm32.cmake @@ -189,7 +189,11 @@ endfunction() function(add_hex_target name exe hex) add_custom_target(${name} ALL cmake -E env PATH=$ENV{PATH} - ${CMAKE_OBJCOPY} -Oihex $ ${hex} + # TODO: Overriding the start address with --set-start 0x08000000 + # seems to be required due to some incorrect assumptions about .hex + # files in the configurator. Verify wether that's the case and fix + # the bug in configurator or delete this comment. + ${CMAKE_OBJCOPY} -Oihex --set-start 0x08000000 $ ${hex} BYPRODUCTS ${hex} ) endfunction()