Skip to content

Commit 72c3da3

Browse files
author
mean
committed
option: disable printf
1 parent 62935cc commit 72c3da3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Platform/Core/BoardFlags/LinkerFlagsSetterStm32.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ function(set_board_linker_flags LINKER_FLAGS BOARD_ID IS_MANUAL)
44
set(LINK_FLAGS "${LINK_FLAGS} -Os -Wl,--gc-sections -mcpu=cortex-m3")
55
set(LINK_FLAGS "${LINK_FLAGS} -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -lstdc++")
66
IF(ARDUINO_USE_NEWLIB) # smaller
7-
set(LINK_FLAGS "${LINK_FLAGS} --specs=nano.specs -u _printf_float")
7+
set(LINK_FLAGS "${LINK_FLAGS} --specs=nano.specs") # -u _printf_float")
8+
IF(ARDUINO_USE_FLOAT_PRINTF)
9+
set(LINK_FLAGS "${LINK_FLAGS} -u _printf_float")
10+
ENDIF(ARDUINO_USE_FLOAT_PRINTF)
811
ENDIF(ARDUINO_USE_NEWLIB) # smaller
912

1013
#-Wl,--warn-unresolved-symbols -lstdc++")

Platform/Core/Targets/ArduinoFirmwareTargetCreatorStm32.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function(create_arduino_firmware_target TARGET_NAME BOARD_ID ALL_SRCS ALL_LIBS
5454

5555
# depending on the upload method we use different ld script
5656
# let's hardcode to bootloader for now
57-
dump_all()
57+
#dump_all()
5858
# Check for blackMagic
5959
IF(ARDUINO_UPLOAD_METHOD MATCHES "BMP")
6060
SET(BOOTLOADER_LINK_OPT "-T${RUNTIME_FILES_PATH}/ld/jtag_c8.ld ") # Hack

0 commit comments

Comments
 (0)