@@ -37,7 +37,7 @@ compiler.cpp.flags={compiler.extra_flags} -c {build.flags.optimize} {compiler.wa
37
37
38
38
compiler.ar.flags=rcs
39
39
40
- compiler.c.elf.flags=-mcpu={build.mcu} -mthumb {build.flags.optimize} {build.flags.ldspecs} -Wl,--defsym=LD_MAX_SIZE={upload.maximum_size} -Wl,--defsym=LD_MAX_DATA_SIZE={upload.maximum_data_size} -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common
40
+ compiler.c.elf.flags=-mcpu={build.mcu} -mthumb {build.flags.optimize} {build.flags.ldspecs} -Wl,--defsym=LD_FLASH_OFFSET={build.flash_offset} -Wl,--defsym= LD_MAX_SIZE={upload.maximum_size} -Wl,--defsym=LD_MAX_DATA_SIZE={upload.maximum_data_size} -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common
41
41
42
42
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
43
43
@@ -50,6 +50,7 @@ compiler.define=-DARDUINO=
50
50
51
51
# These can be overriden in boards.txt
52
52
build.extra_flags=
53
+ build.bootloader_flags=
53
54
build.ldscript=ldscript.ld
54
55
55
56
# These can be overridden in platform.local.txt
@@ -83,6 +84,7 @@ build.usb_speed=
83
84
build.startup_file=
84
85
build.flags.optimize=-Os
85
86
build.flags.ldspecs=--specs=nano.specs
87
+ build.flash_offset=0
86
88
87
89
# Pre and post build hooks
88
90
build.opt.name=build_opt.h
@@ -166,3 +168,14 @@ tools.bmp_upload.upload.speed=230400
166
168
tools.bmp_upload.upload.params.verbose=-batch
167
169
tools.bmp_upload.upload.params.quiet=--batch-silent
168
170
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"
171
+
172
+ # Upload using Maple bootloader over DFU
173
+ tools.maple_upload.cmd=maple_upload
174
+ tools.maple_upload.cmd.windows=maple_upload.bat
175
+ tools.maple_upload.path={runtime.hardware.path}/tools/win
176
+ tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx
177
+ tools.maple_upload.path.linux={runtime.hardware.path}/tools/linux
178
+ tools.maple_upload.path.linux64={runtime.hardware.path}/tools/linux64
179
+ tools.maple_upload.upload.params.verbose=-d
180
+ tools.maple_upload.upload.params.quiet=n
181
+ tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
0 commit comments