diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b4031d..7d2505da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,7 @@ function(add_target_common TGTNAME CPU_FAMILY) add_executable(${TGTNAME}_fw ${SOURCE_FILES}) add_dependencies(${TGTNAME}_fw version_h) target_include_directories(${TGTNAME}_fw PRIVATE include/ ${CMAKE_CURRENT_BINARY_DIR}) - target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld) + target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld LINKER:-Map=${TGTNAME}_fw.map) make_bin_file(${TGTNAME}_fw) dfu_flash(${TGTNAME}_fw) show_object_size(${TGTNAME}_fw)