Skip to content

Commit 1b4ee05

Browse files
Tidied up platform.txt
1 parent 95f1169 commit 1b4ee05

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

STM32F1/platform.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ compiler.ar.extra_flags=
5757
compiler.elf2hex.extra_flags=
5858

5959

60-
##compiler.libsam.c.flags="-I{build.system.path}/libsam" "-I{build.system.path}/CMSIS/CMSIS/Include/" "-I{build.system.path}/CMSIS/Device/ATMEL/"
61-
62-
##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/stm32f1/include/series" "-I{build.system.path}/libmaple/usb/stm32f1" "-I{build.system.path}/libmaple/usb/usb_lib"
6360
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"
6461

6562

@@ -85,14 +82,12 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -m
8582

8683
## Compile S files
8784
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}"
88-
#recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" "{source_file}" -o "{object_file}"
8985

9086
## Create archives
9187
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
9288

9389
## Combine gc-sections, archives, and objects
9490
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.path}/{archive_file}" -Wl,--end-group
95-
#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
9691

9792
## Create eeprom
9893
recipe.objcopy.eep.pattern=
@@ -102,10 +97,7 @@ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf
10297

10398
## Compute size
10499
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
105-
#recipe.size.regex=\.text\s+([0-9]+).*
106-
#recipe.size.regex=^(?:\.text|\.rodata|\.ARM.exidx)\s+([0-9]+).*
107100
recipe.size.regex=^(?:\.text|\.data|\.rodata|\.text.align|\.ARM.exidx)\s+([0-9]+).*
108-
109101
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
110102

111103
## Save Compiled Binary
@@ -120,7 +112,6 @@ recipe.output.save_file={build.project_name}.{build.variant}.bin
120112
# Upload using Maple bootloader over DFU
121113
tools.maple_upload.cmd=maple_upload
122114
tools.maple_upload.cmd.windows=maple_upload.bat
123-
#tools.maple_upload.cmd.linux=maple_upload
124115
tools.maple_upload.path={runtime.hardware.path}/tools/win
125116
tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx
126117
tools.maple_upload.path.linux={runtime.hardware.path}/tools/linux
@@ -167,12 +158,8 @@ tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.alt
167158

168159
# blackmagic probe upload
169160
tools.bmp_upload.cmd=arm-none-eabi-gdb
170-
#tools.bmp_upload.cmd.windows=bmp_upload.bat
171161
tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
172-
#tools.bmp_upload.path.windows={runtime.hardware.path}/tools/win
173-
174162
tools.bmp_upload.upload.speed=230400
175163
tools.bmp_upload.upload.params.verbose=
176164
tools.bmp_upload.upload.params.quiet=-q --batch-silent
177165
tools.bmp_upload.upload.pattern="{path}{cmd}" -cd "{build.path}" -b {upload.speed} {upload.verbose} -ex "set debug remote 0" -ex "set target-async off" -ex "set remotetimeout 60" -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "set height 0" -ex "target extended-remote {serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "x/wx 0x8000004" -ex "monitor erase_mass" -ex "echo 0x8000004 expect 0xffffffff after erase\n" -ex "x/wx 0x8000004" -ex "file {build.project_name}.elf" -ex "load" -ex "x/wx 0x08000004" -ex "tbreak main" -ex "run" -ex "echo \n\n\nUpload finished!" -ex "quit"
178-
#tools.bmp_upload.upload.pattern.windows="{path}/{cmd}" {runtime.tools.arm-none-eabi-gcc.path}/bin/ {upload.speed} {upload.verbose} "target extended-remote {serial.port}" "{build.path}/{build.project_name}.elf"

0 commit comments

Comments
 (0)