Skip to content

Commit 641d610

Browse files
committed
Add memory size information to STM32 build output
Adds linker flag to display memory size information after building to STM32 platform libopencm3.cmake configuration file. Signed-off-by: Winford <winford@object.stream>
1 parent e616390 commit 641d610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/stm32/cmake/libopencm3.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ message(STATUS "Generated Linker File : ${CMAKE_CURRENT_BINARY_DIR}/${LINKER_S
145145
# ARCH_FLAGS has to be passed as a string here
146146
JOIN("${ARCH_FLAGS}" " " ARCH_FLAGS)
147147
# Set linker flags
148-
set(LINKER_FLAGS "${LINKER_FLAGS} -specs=nosys.specs -nostartfiles -Wl,--undefined,_printf_float -Wl,--undefined,_scanf_float -T${CMAKE_CURRENT_BINARY_DIR}/${LINKER_SCRIPT} ${ARCH_FLAGS}")
148+
set(LINKER_FLAGS "${LINKER_FLAGS} -specs=nosys.specs -nostartfiles -Wl,--undefined,_printf_float -Wl,--undefined,_scanf_float -Wl,--print-memory-usage -T${CMAKE_CURRENT_BINARY_DIR}/${LINKER_SCRIPT} ${ARCH_FLAGS}")
149149
message(STATUS "Linker Flags : ${LINKER_FLAGS}")
150150

151151
# Compiler flags

0 commit comments

Comments
 (0)