Skip to content

Commit a683dfc

Browse files
revert changes to STM32F3/platform.txt and STM32F4/platform.txt as they should not have been changed in the previous commit
1 parent 3f7eb8e commit a683dfc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

STM32F3/platform.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ version=0.1.0
1212

1313
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
1414
compiler.c.cmd=arm-none-eabi-gcc
15-
compiler.c.flags=-c -g {build.flags.optimize} -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
15+
compiler.c.flags=-c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
1616
compiler.c.elf.cmd=arm-none-eabi-g++
17-
compiler.c.elf.flags={build.flags.optimize} -Wl,--gc-sections {build.flags.ldspecs}
17+
compiler.c.elf.flags=-Os -Wl,--gc-sections
1818
compiler.S.cmd=arm-none-eabi-gcc
1919
compiler.S.flags=-c -g -x assembler-with-cpp -MMD
2020
compiler.cpp.cmd=arm-none-eabi-g++
21-
compiler.cpp.flags=-c -g {build.flags.optimize} -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
21+
compiler.cpp.flags=-c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
2222
compiler.ar.cmd=arm-none-eabi-ar
2323
compiler.ar.flags=rcs
2424
compiler.objcopy.cmd=arm-none-eabi-objcopy
2525
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
2626
compiler.elf2hex.flags=-O binary
2727
compiler.elf2hex.cmd=arm-none-eabi-objcopy
28-
compiler.ldflags={build.flags.ldspecs}
28+
compiler.ldflags=
2929
compiler.size.cmd=arm-none-eabi-size
3030
compiler.define=-DARDUINO=
3131

STM32F4/platform.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ version=0.1.0
1010
# ----------------------
1111
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
1212
compiler.c.cmd=arm-none-eabi-gcc
13-
compiler.c.flags=-c -g {build.flags.optimize} -Wall -MMD -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
13+
compiler.c.flags=-c -g -Os -Wall -MMD -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
1414
compiler.c.elf.cmd=arm-none-eabi-g++
15-
compiler.c.elf.flags={build.flags.optimize} -Wl,--gc-sections {build.flags.ldspecs}
15+
compiler.c.elf.flags=-Os -Wl,--gc-sections
1616
compiler.S.cmd=arm-none-eabi-gcc
1717
compiler.S.flags=-c -g -x assembler-with-cpp -MMD
1818
compiler.cpp.cmd=arm-none-eabi-g++
19-
compiler.cpp.flags=-c -g {build.flags.optimize} -Wall -MMD -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
19+
compiler.cpp.flags=-c -g -Os -Wall -MMD -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
2020
compiler.ar.cmd=arm-none-eabi-ar
2121
compiler.ar.flags=rcs
2222
compiler.objcopy.cmd=arm-none-eabi-objcopy
2323
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
2424
compiler.elf2hex.flags=-O binary
2525
compiler.elf2hex.cmd=arm-none-eabi-objcopy
26-
compiler.ldflags={build.flags.ldspecs}
26+
compiler.ldflags=
2727
compiler.size.cmd=arm-none-eabi-size
2828
compiler.define=-DARDUINO=
2929

0 commit comments

Comments
 (0)