@@ -9,15 +9,21 @@ version=1.6.2
9
9
# Compile variables
10
10
# -----------------
11
11
12
- compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
12
+ compiler.warning_flags=-w
13
+ compiler.warning_flags.none=-w
14
+ compiler.warning_flags.default=
15
+ compiler.warning_flags.more=-Wall
16
+ compiler.warning_flags.all=-Wall -Wextra
17
+
18
+ compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
13
19
compiler.c.cmd=arm-none-eabi-gcc
14
- compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os -W -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
20
+ compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
15
21
compiler.c.elf.cmd=arm-none-eabi-gcc
16
22
compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps
17
23
compiler.S.cmd=arm-none-eabi-gcc
18
24
compiler.S.flags=-c -g -x assembler-with-cpp
19
25
compiler.cpp.cmd=arm-none-eabi-g++
20
- compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os -W -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
26
+ compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
21
27
compiler.ar.cmd=arm-none-eabi-ar
22
28
compiler.ar.flags=rcs
23
29
compiler.objcopy.cmd=arm-none-eabi-objcopy
@@ -40,7 +46,7 @@ compiler.S.extra_flags=
40
46
compiler.ar.extra_flags=
41
47
compiler.elf2hex.extra_flags=
42
48
43
- compiler.arm.cmsis.path="-I{runtime.ide. path}/hardware/tools/ CMSIS/CMSIS/ Include/" "-I{runtime.ide. path}/hardware/tools/CMSIS /Device/ATMEL/"
49
+ compiler.arm.cmsis.path="-I{runtime.tools.CMSIS. path}/CMSIS/Include/" "-I{runtime.tools.CMSIS. path}/Device/ATMEL/"
44
50
45
51
# USB Flags
46
52
# ---------
@@ -72,6 +78,10 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}"
72
78
## Create output (bin file)
73
79
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
74
80
81
+ ## Save hex
82
+ recipe.output.tmp_file={build.project_name}.bin
83
+ recipe.output.save_file={build.project_name}.{build.variant}.bin
84
+
75
85
## Compute size
76
86
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
77
87
recipe.size.regex=\.text\s+([0-9]+).*
@@ -83,9 +93,9 @@ recipe.size.regex=\.text\s+([0-9]+).*
83
93
#
84
94
# BOSSA
85
95
#
96
+ tools.bossac.path={runtime.tools.bossac.path}
86
97
tools.bossac.cmd=bossac
87
98
tools.bossac.cmd.windows=bossac.exe
88
- tools.bossac.path={runtime.ide.path}/hardware/tools/bossac-1.5-arduino
89
99
90
100
tools.bossac.upload.params.verbose=-i -d
91
101
tools.bossac.upload.params.quiet=
@@ -95,9 +105,9 @@ tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.
95
105
# OpenOCD sketch upload
96
106
#
97
107
108
+ tools.openocd.path={runtime.tools.openocd.path}
98
109
tools.openocd.cmd=bin/openocd
99
110
tools.openocd.cmd.windows=bin/openocd.exe
100
- tools.openocd.path={runtime.ide.path}/hardware/tools/OpenOCD-0.9.0-dev-arduino
101
111
102
112
tools.openocd.upload.params.verbose=-d2
103
113
tools.openocd.upload.params.quiet=-d0
0 commit comments