4
4
# For more info:
5
5
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
6
6
7
- name=STM32 Boards (selected from submenu )
7
+ name=STM32 Boards (only XELNetwork version )
8
8
version=1.0.0
9
9
10
10
# STM compile variables
@@ -17,7 +17,7 @@ compiler.warning_flags.default=
17
17
compiler.warning_flags.more=-Wall
18
18
compiler.warning_flags.all=-Wall -Wextra
19
19
20
- compiler.path={runtime.tools. arm-none-eabi-gcc- 8.2.1-1.7.path} /bin/
20
+ compiler.path={runtime.platform.path}/tools/ arm-none-eabi-gcc/ 8.2.1-1.7/bin/
21
21
22
22
compiler.S.cmd=arm-none-eabi-gcc
23
23
compiler.c.cmd=arm-none-eabi-gcc
@@ -64,8 +64,8 @@ compiler.ar.extra_flags=
64
64
compiler.elf2bin.extra_flags=
65
65
compiler.elf2hex.extra_flags=
66
66
67
- compiler.arm.cmsis.c.flags="-I{runtime.tools. CMSIS- 5.5.1.path} /CMSIS/Core/Include/" "-I{build.system.path}/Drivers/CMSIS/Device/ST/{build.series}/Include/" "-I{build.system.path}/Drivers/CMSIS/Device/ST/{build.series}/Source/Templates/gcc/" "-I{runtime.tools.CMSIS-5.5.1.path}/CMSIS/DSP/Include"
68
- compiler.arm.cmsis.ldflags="-L{runtime.tools. CMSIS- 5.5.1.path} /CMSIS/DSP/Lib/GCC/" -l{build.cmsis_lib_gcc}
67
+ compiler.arm.cmsis.c.flags="-I{runtime.platform.path}/tools/ CMSIS/ 5.5.1/CMSIS/Core/Include/" "-I{build.system.path}/Drivers/CMSIS/Device/ST/{build.series}/Include/" "-I{build.system.path}/Drivers/CMSIS/Device/ST/{build.series}/Source/Templates/gcc/" "-I{runtime.tools.CMSIS-5.5.1.path}/CMSIS/DSP/Include"
68
+ compiler.arm.cmsis.ldflags="-L{runtime.platform.path}/tools/ CMSIS/ 5.5.1/CMSIS/DSP/Lib/GCC/" -l{build.cmsis_lib_gcc}
69
69
70
70
# USB Flags
71
71
# ---------
@@ -136,11 +136,11 @@ recipe.output.tmp_file={build.project_name}.bin
136
136
recipe.output.save_file={build.project_name}.{build.variant}.bin
137
137
138
138
## Create output (.hex file)
139
- recipe.objcopy.hex.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
139
+ # recipe.objcopy.hex.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
140
140
141
141
## Save hex
142
- recipe.output.tmp_file={build.project_name}.hex
143
- recipe.output.save_file={build.project_name}.{build.variant}.hex
142
+ # recipe.output.tmp_file={build.project_name}.hex
143
+ # recipe.output.save_file={build.project_name}.{build.variant}.hex
144
144
145
145
## Compute size
146
146
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
@@ -152,57 +152,6 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
152
152
# Uploader tool
153
153
# -------------------
154
154
155
- # Upload to board via mass storage
156
- tools.massStorageCopy.cmd=massStorageCopy
157
- tools.massStorageCopy.cmd.windows=massStorageCopy.bat
158
- tools.massStorageCopy.cmd.macosx=massStorageCopyMacOsX
159
- tools.massStorageCopy.path={runtime.tools.STM32Tools.path}/tools/win
160
- tools.massStorageCopy.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
161
- tools.massStorageCopy.path.linux={runtime.tools.STM32Tools.path}/tools/linux
162
- tools.massStorageCopy.upload.params.verbose=
163
- tools.massStorageCopy.upload.params.quiet=
164
- tools.massStorageCopy.upload.pattern="{path}/{cmd}" {upload.verbose} -I "{build.path}/{build.project_name}.bin" -O "{node}"
165
-
166
- # STM32CubeProgrammer upload
167
- tools.stm32CubeProg.cmd=stm32CubeProg.sh
168
- tools.stm32CubeProg.cmd.macosx=stm32CubeProg
169
- tools.stm32CubeProg.cmd.windows=stm32CubeProg.bat
170
- tools.stm32CubeProg.path.linux={runtime.tools.STM32Tools.path}/tools/linux
171
- tools.stm32CubeProg.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
172
- tools.stm32CubeProg.path.windows={runtime.tools.STM32Tools.path}/tools/win
173
- tools.stm32CubeProg.upload.params.verbose=
174
- tools.stm32CubeProg.upload.params.quiet=
175
- tools.stm32CubeProg.upload.pattern="{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options}
176
-
177
- # blackmagic upload for generic STM32
178
- tools.bmp_upload.cmd=arm-none-eabi-gdb
179
- tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
180
- tools.bmp_upload.upload.speed=230400
181
- tools.bmp_upload.upload.params.verbose=-batch
182
- tools.bmp_upload.upload.params.quiet=--batch-silent
183
- tools.bmp_upload.upload.pattern="{path}{cmd}" -nx -b {upload.speed} {upload.verbose} -ex "set confirm off" -ex "target extended-remote {serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "load" -ex "compare-sections" -ex "kill" "{build.path}/{build.project_name}.elf"
184
-
185
- # HID flash 2.2 (HID bootloader v2.2 for STM32F1 and STM32F4 series)
186
- tools.hid_upload.cmd=hid-flash
187
- tools.hid_upload.cmd.windows=hid-flash.exe
188
- tools.hid_upload.path={runtime.tools.STM32Tools.path}/tools/win
189
- tools.hid_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
190
- tools.hid_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
191
- tools.hid_upload.upload.params.verbose=-d
192
- tools.hid_upload.upload.params.quiet=n
193
- tools.hid_upload.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.bin" {serial.port.file}
194
-
195
- # Upload using Maple bootloader over DFU
196
- tools.maple_upload.cmd=maple_upload
197
- tools.maple_upload.cmd.windows=maple_upload.bat
198
- tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
199
- tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
200
- tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
201
- tools.maple_upload.upload.params.verbose=-d
202
- tools.maple_upload.upload.params.quiet=n
203
- tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
204
-
205
-
206
155
207
156
208
157
# Upload using SensorXEL bootloader over Serial
@@ -214,17 +163,17 @@ tools.xel_loader.path.linux={runtime.hardware.path}/tools/linux/xel_loader
214
163
tools.xel_loader.path.linux64={runtime.hardware.path}/tools/linux64/xel_loader
215
164
tools.xel_loader.upload.params.verbose=-d
216
165
tools.xel_loader.upload.params.quiet=n
217
- tools.xel_loader.upload.pattern="{path}/{cmd}" {serial.port.file} 57600 08005000 "{build.path}/{build.project_name}.bin" 1 1
166
+ tools.xel_loader.upload.pattern="{path}/{cmd}" {serial.port.file} 1000000 {upload.flash_address} "{build.path}/{build.project_name}.bin" 1 1
218
167
219
168
# Upload using stm32flash
220
169
tools.stm32flash.cmd=stm32flash
221
170
tools.stm32flash.cmd.windows=stm32flash.exe
222
- tools.stm32flash.path={runtime.tools.opencr_tools. path}/win/stm32flash
223
- tools.stm32flash.path.macosx={runtime.tools.opencr_tools. path}/macosx/stm32flash
224
- tools.stm32flash.path.linux={runtime.tools.opencr_tools. path}/linux/stm32flash
171
+ tools.stm32flash.path={runtime.hardware. path}/tools /win/stm32flash
172
+ tools.stm32flash.path.macosx={runtime.hardware. path}/tools /macosx/stm32flash
173
+ tools.stm32flash.path.linux={runtime.hardware. path}/tools /linux/stm32flash
225
174
tools.stm32flash.erase.params.verbose=-v
226
175
tools.stm32flash.erase.params.quiet=-q -q
227
176
tools.stm32flash.erase.pattern=
228
177
tools.stm32flash.bootloader.params.verbose=-v -v -v -v
229
178
tools.stm32flash.bootloader.params.quiet=-q -q
230
- tools.stm32flash.bootloader.pattern="{path}/{cmd}" -e 80 -w "{runtime.platform.path}/bootloaders/{bootloader.file}" -v -g 0x08000000 {serial.port.file}
179
+ tools.stm32flash.bootloader.pattern="{path}/{cmd}" -e 48 -w "{runtime.platform.path}/bootloaders/{bootloader.file}" -v -g 0x08000000 {serial.port.file}
0 commit comments