Skip to content

Commit 73bc96b

Browse files
author
rogerclarkmelbourne
committed
Updated platform.txt with enhancement from Rick to allow more compiler warnings and debugging to be more easily changed
1 parent 1c99387 commit 73bc96b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

STM32F1/platform.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@
44
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
55

66
name=STM32 Boards (stm32duino)
7-
version=0.1.1
7+
version=0.1.2
8+
9+
compiler.warning_flags=-w -DDEBUG_LEVEL=DEBUG_NONE
10+
compiler.warning_flags.none=-w -DDEBUG_LEVEL=DEBUG_NONE
11+
compiler.warning_flags.default=-DDEBUG_LEVEL=DEBUG_NONE
12+
compiler.warning_flags.more=-Wall -DDEBUG_LEVEL=DEBUG_FAULT
13+
compiler.warning_flags.all=-Wall -Wextra -DDEBUG_LEVEL=DEBUG_ALL
814

915
# compiler variables
1016
# ----------------------
1117
compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
1218
compiler.c.cmd=arm-none-eabi-gcc
13-
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} -DDEBUG_LEVEL=DEBUG_NONE
19+
compiler.c.flags=-c -g -Os {compiler.warning_flags} -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}
1420
compiler.c.elf.cmd=arm-none-eabi-g++
1521
compiler.c.elf.flags=-Os -Wl,--gc-sections
1622
compiler.S.cmd=arm-none-eabi-gcc
1723
compiler.S.flags=-c -g -x assembler-with-cpp -MMD
1824
compiler.cpp.cmd=arm-none-eabi-g++
19-
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} -DDEBUG_LEVEL=DEBUG_NONE
25+
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -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}
2026
compiler.ar.cmd=arm-none-eabi-ar
2127
compiler.ar.flags=rcs
2228
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)