|
1 | | -# |
2 | | -# |
3 | | -# For more info: |
4 | | -# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification |
5 | | - |
6 | | -name=STM32F3 boards |
7 | | -version=0.1.0 |
8 | | - |
9 | | -# compiler variables |
10 | | -# ---------------------- |
11 | | -build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1 |
12 | | - |
13 | | -compiler.path={runtime.ide.path}/hardware/tools/{build.gcc_ver}/bin/ |
14 | | -compiler.c.cmd=arm-none-eabi-gcc |
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} |
16 | | -compiler.c.elf.cmd=arm-none-eabi-g++ |
17 | | -compiler.c.elf.flags=-Os -Wl,--gc-sections |
18 | | -compiler.S.cmd=arm-none-eabi-gcc |
19 | | -compiler.S.flags=-c -g -x assembler-with-cpp -MMD |
20 | | -compiler.cpp.cmd=arm-none-eabi-g++ |
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} |
22 | | -compiler.ar.cmd=arm-none-eabi-ar |
23 | | -compiler.ar.flags=rcs |
24 | | -compiler.objcopy.cmd=arm-none-eabi-objcopy |
25 | | -compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 |
26 | | -compiler.elf2hex.flags=-O binary |
27 | | -compiler.elf2hex.cmd=arm-none-eabi-objcopy |
28 | | -compiler.ldflags= |
29 | | -compiler.size.cmd=arm-none-eabi-size |
30 | | -compiler.define=-DARDUINO= |
31 | | - |
32 | | -# this can be overriden in boards.txt |
33 | | -build.cpu_flags= |
34 | | -build.hs_flag= |
35 | | -build.common_flags= |
36 | | -build.extra_flags= {build.cpu_flags} {build.hs_flag} {build.common_flags} |
37 | | - |
38 | | -# These can be overridden in platform.local.txt |
39 | | -compiler.c.extra_flags= |
40 | | -compiler.c.elf.extra_flags="-L{build.variant.path}/ld" |
41 | | -compiler.cpp.extra_flags= |
42 | | -compiler.S.extra_flags= |
43 | | -compiler.ar.extra_flags= |
44 | | -compiler.elf2hex.extra_flags= |
45 | | - |
46 | | - |
47 | | - |
48 | | -compiler.libs.c.flags="-I{build.core.path}/libmaple" "-I{build.core.path}/libmaple/include" "-I{build.core.path}/libmaple/stm32f3/include" "-I{build.core.path}/libmaple/usb" "-I{build.core.path}/libmaple/usb/usb_lib" "-I{build.core.path}/wirish/include" "-I{build.core.path}/wirish" |
49 | | -#compiler.libs.c.flags="-I{build.system.path}/libmaple" "-I{build.system.path}/libmaple/include" "-I{build.system.path}/libmaple/stm32f1/include" "-I{build.system.path}/libmaple/usb/stm32f1" "-I{build.system.path}/libmaple/usb/usb_lib" "-I{build.system.path}/wirish/include" |
50 | | - |
51 | | - |
52 | | -#compiler.libs.c.flags="-I{build.core.path}/libmaple" -I{build.core.path}/libmaple/usbF4 -I{build.core.path}/libmaple/usbF4/STM32_USB_Device_Library/Core/inc -I{build.core.path}/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc -I{build.core.path}/libmaple/usbF4/STM32_USB_OTG_Driver/inc -I{build.core.path}/libmaple/usbF4/VCP |
53 | | - |
54 | | - |
55 | | - |
56 | | -# USB Flags |
57 | | -# --------- |
58 | | -## build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSBCON '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}' |
59 | | - |
60 | | -# Default usb manufacturer will be replaced at compile time using |
61 | | -# numeric vendor ID if available or by board's specific value. |
62 | | -## build.usb_manufacturer="Unknown" |
63 | | - |
64 | | - |
65 | | -# build patterns |
66 | | -# --------------------- |
67 | | - |
68 | | -## Compile c files |
69 | | -recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
70 | | - |
71 | | -## Compile c++ files |
72 | | -recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
73 | | - |
74 | | -## Compile S files |
75 | | -recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
76 | | -#recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" "{source_file}" -o "{object_file}" |
77 | | - |
78 | | -## Create archives |
79 | | -recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" |
80 | | - |
81 | | -## Combine gc-sections, archives, and objects |
82 | | -##recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group |
83 | | -#-Wl,--entry=__start__ |
84 | | -#recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group |
85 | | -recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive "{build.path}/{archive_file}" -Wl,--no-whole-archive -Wl,--end-group |
86 | | - |
87 | | -## Create eeprom |
88 | | -recipe.objcopy.eep.pattern= |
89 | | - |
90 | | -## Create hex |
91 | | -recipe.objcopy.hex.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" |
92 | | - |
93 | | -## Compute size |
94 | | -recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" |
95 | | -#recipe.size.regex=\.text\s+([0-9]+).* |
96 | | -recipe.size.regex=^(?:\.text|\.rodata|\.ARM.exidx)\s+([0-9]+).* |
97 | | -recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* |
98 | | - |
99 | | -# Uploader tools |
100 | | -# ------------------- |
101 | | - |
102 | | -# Upload using Maple bootloader over DFU |
103 | | -tools.maple_upload.cmd=maple_upload |
104 | | -tools.maple_upload.cmd.windows=maple_upload.bat |
105 | | -#tools.maple_upload.cmd.linux= |
106 | | -tools.maple_upload.path={runtime.hardware.path}/tools/win |
107 | | -tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx |
108 | | - |
109 | | -tools.maple_upload.upload.params.verbose=-d |
110 | | -tools.maple_upload.upload.params.quiet= |
111 | | -tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
112 | | - |
113 | | -# Generic STM32 upload via serial to Serial Port 1 (pins PA9 and PA10) - note. Boot0 line needs to high on board reset to enable upload via serial |
114 | | -# at the end of the upload the program is automatically run, without the board being reset |
115 | | - |
116 | | -tools.serial_upload.cmd=serial_upload |
117 | | -tools.serial_upload.cmd.windows=serial_upload.bat |
118 | | -#tools.serial_upload.cmd.linux= |
119 | | -tools.serial_upload.path={runtime.hardware.path}/tools/win |
120 | | - |
121 | | -tools.serial_upload.upload.params.verbose=-d |
122 | | -tools.serial_upload.upload.params.quiet= |
123 | | -tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
124 | | - |
125 | | -# |
126 | | -tools.upload_router.cmd=upload_router |
127 | | -tools.upload_router.cmd.windows=upload_router.bat |
128 | | -#tools.upload_router.cmd.linux= |
129 | | -tools.upload_router.path={runtime.hardware.path}/tools/win |
130 | | - |
131 | | -tools.upload_router.upload.params.verbose=-d |
132 | | -tools.upload_router.upload.params.quiet= |
133 | | -tools.upload_router.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}" {upload.protocol} {build.debuggingMode} "{runtime.ide.path}/hardware/tools/{build.gcc_ver}/bin/" |
134 | | - |
135 | | -# STLINK/V2 |
136 | | - |
137 | | -tools.stlink.cmd=stlink |
138 | | -tools.stlink.cmd.windows=stlink_upload.bat |
139 | | -#tools.stlink.cmd.linux= |
140 | | -tools.stlink.path={runtime.hardware.path}/tools/win |
141 | | -tools.stlink.upload.params.verbose=-d |
142 | | -tools.stlink.upload.params.quiet= |
143 | | -tools.stlink.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
144 | | - |
| 1 | +# |
| 2 | +# |
| 3 | +# For more info: |
| 4 | +# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification |
| 5 | +
|
| 6 | +name=STM32F3 boards |
| 7 | +version=0.1.0 |
| 8 | +
|
| 9 | +# compiler variables |
| 10 | +# ---------------------- |
| 11 | +#build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1 |
| 12 | +
|
| 13 | +compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/ |
| 14 | +compiler.c.cmd=arm-none-eabi-gcc |
| 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} |
| 16 | +compiler.c.elf.cmd=arm-none-eabi-g++ |
| 17 | +compiler.c.elf.flags=-Os -Wl,--gc-sections |
| 18 | +compiler.S.cmd=arm-none-eabi-gcc |
| 19 | +compiler.S.flags=-c -g -x assembler-with-cpp -MMD |
| 20 | +compiler.cpp.cmd=arm-none-eabi-g++ |
| 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} |
| 22 | +compiler.ar.cmd=arm-none-eabi-ar |
| 23 | +compiler.ar.flags=rcs |
| 24 | +compiler.objcopy.cmd=arm-none-eabi-objcopy |
| 25 | +compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 |
| 26 | +compiler.elf2hex.flags=-O binary |
| 27 | +compiler.elf2hex.cmd=arm-none-eabi-objcopy |
| 28 | +compiler.ldflags= |
| 29 | +compiler.size.cmd=arm-none-eabi-size |
| 30 | +compiler.define=-DARDUINO= |
| 31 | +
|
| 32 | +# this can be overriden in boards.txt |
| 33 | +build.cpu_flags= |
| 34 | +build.hs_flag= |
| 35 | +build.common_flags= |
| 36 | +build.extra_flags= {build.cpu_flags} {build.hs_flag} {build.common_flags} |
| 37 | +
|
| 38 | +# These can be overridden in platform.local.txt |
| 39 | +compiler.c.extra_flags= |
| 40 | +compiler.c.elf.extra_flags="-L{build.variant.path}/ld" |
| 41 | +compiler.cpp.extra_flags= |
| 42 | +compiler.S.extra_flags= |
| 43 | +compiler.ar.extra_flags= |
| 44 | +compiler.elf2hex.extra_flags= |
| 45 | +
|
| 46 | +
|
| 47 | +
|
| 48 | +compiler.libs.c.flags="-I{build.core.path}/libmaple" "-I{build.core.path}/libmaple/include" "-I{build.core.path}/libmaple/stm32f3/include" "-I{build.core.path}/libmaple/usb" "-I{build.core.path}/libmaple/usb/usb_lib" "-I{build.core.path}/wirish/include" "-I{build.core.path}/wirish" |
| 49 | +#compiler.libs.c.flags="-I{build.system.path}/libmaple" "-I{build.system.path}/libmaple/include" "-I{build.system.path}/libmaple/stm32f1/include" "-I{build.system.path}/libmaple/usb/stm32f1" "-I{build.system.path}/libmaple/usb/usb_lib" "-I{build.system.path}/wirish/include" |
| 50 | +
|
| 51 | +
|
| 52 | +#compiler.libs.c.flags="-I{build.core.path}/libmaple" -I{build.core.path}/libmaple/usbF4 -I{build.core.path}/libmaple/usbF4/STM32_USB_Device_Library/Core/inc -I{build.core.path}/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc -I{build.core.path}/libmaple/usbF4/STM32_USB_OTG_Driver/inc -I{build.core.path}/libmaple/usbF4/VCP |
| 53 | +
|
| 54 | +
|
| 55 | +
|
| 56 | +# USB Flags |
| 57 | +# --------- |
| 58 | +## build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSBCON '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}' |
| 59 | +
|
| 60 | +# Default usb manufacturer will be replaced at compile time using |
| 61 | +# numeric vendor ID if available or by board's specific value. |
| 62 | +## build.usb_manufacturer="Unknown" |
| 63 | +
|
| 64 | +
|
| 65 | +# build patterns |
| 66 | +# --------------------- |
| 67 | +
|
| 68 | +## Compile c files |
| 69 | +recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
| 70 | +
|
| 71 | +## Compile c++ files |
| 72 | +recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
| 73 | +
|
| 74 | +## Compile S files |
| 75 | +recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}" |
| 76 | +#recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" "{source_file}" -o "{object_file}" |
| 77 | +
|
| 78 | +## Create archives |
| 79 | +recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" |
| 80 | +
|
| 81 | +## Combine gc-sections, archives, and objects |
| 82 | +##recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group |
| 83 | +#-Wl,--entry=__start__ |
| 84 | +#recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group |
| 85 | +recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} -Wl,--whole-archive "{build.path}/{archive_file}" -Wl,--no-whole-archive -Wl,--end-group |
| 86 | +
|
| 87 | +## Create eeprom |
| 88 | +recipe.objcopy.eep.pattern= |
| 89 | +
|
| 90 | +## Create hex |
| 91 | +recipe.objcopy.hex.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" |
| 92 | +
|
| 93 | +## Compute size |
| 94 | +recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" |
| 95 | +#recipe.size.regex=\.text\s+([0-9]+).* |
| 96 | +recipe.size.regex=^(?:\.text|\.rodata|\.ARM.exidx)\s+([0-9]+).* |
| 97 | +recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* |
| 98 | +
|
| 99 | +# Uploader tools |
| 100 | +# ------------------- |
| 101 | +
|
| 102 | +# Upload using Maple bootloader over DFU |
| 103 | +tools.maple_upload.cmd=maple_upload |
| 104 | +tools.maple_upload.cmd.windows=maple_upload.bat |
| 105 | +#tools.maple_upload.cmd.linux= |
| 106 | +tools.maple_upload.path={runtime.hardware.path}/tools/win |
| 107 | +tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx |
| 108 | +
|
| 109 | +tools.maple_upload.upload.params.verbose=-d |
| 110 | +tools.maple_upload.upload.params.quiet= |
| 111 | +tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
| 112 | +
|
| 113 | +# Generic STM32 upload via serial to Serial Port 1 (pins PA9 and PA10) - note. Boot0 line needs to high on board reset to enable upload via serial |
| 114 | +# at the end of the upload the program is automatically run, without the board being reset |
| 115 | +
|
| 116 | +tools.serial_upload.cmd=serial_upload |
| 117 | +tools.serial_upload.cmd.windows=serial_upload.bat |
| 118 | +#tools.serial_upload.cmd.linux= |
| 119 | +tools.serial_upload.path={runtime.hardware.path}/tools/win |
| 120 | +
|
| 121 | +tools.serial_upload.upload.params.verbose=-d |
| 122 | +tools.serial_upload.upload.params.quiet= |
| 123 | +tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
| 124 | +
|
| 125 | +# |
| 126 | +tools.upload_router.cmd=upload_router |
| 127 | +tools.upload_router.cmd.windows=upload_router.bat |
| 128 | +#tools.upload_router.cmd.linux= |
| 129 | +tools.upload_router.path={runtime.hardware.path}/tools/win |
| 130 | +
|
| 131 | +tools.upload_router.upload.params.verbose=-d |
| 132 | +tools.upload_router.upload.params.quiet= |
| 133 | +tools.upload_router.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}" {upload.protocol} {build.debuggingMode} "{runtime.ide.path}/hardware/tools/{build.gcc_ver}/bin/" |
| 134 | +
|
| 135 | +# STLINK/V2 |
| 136 | +
|
| 137 | +tools.stlink.cmd=stlink |
| 138 | +tools.stlink.cmd.windows=stlink_upload.bat |
| 139 | +#tools.stlink.cmd.linux= |
| 140 | +tools.stlink.path={runtime.hardware.path}/tools/win |
| 141 | +tools.stlink.upload.params.verbose=-d |
| 142 | +tools.stlink.upload.params.quiet= |
| 143 | +tools.stlink.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" |
| 144 | + |
0 commit comments