Add makefile to automatically compile tests

This commit is contained in:
Daniel Fekete 2017-04-10 20:27:22 +02:00
parent 19f526bca2
commit 48ef86730f
16 changed files with 1589 additions and 0 deletions

1
tools/test/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

33
tools/test/make.py Normal file
View File

@ -0,0 +1,33 @@
import subprocess
import os
projects = ['test/examples/blinkTest/']
variants = os.listdir('makefiles')
for project in projects:
print 'Compiling: ' + project
subprocesses = {}
for variant in variants:
path = 'build/' + variant + '/' + project
if not os.path.exists(path):
os.makedirs(path)
with open(path + '/stdout.txt', 'w') as out, open(path + '/stderr.txt', 'w') as err:
subprocesses[variant] = subprocess.Popen(['make', 'VARIANT=' + variant, 'PROJECT=' + project], stdout = out, stderr = err)
for variant, p in subprocesses.iteritems():
p.wait()
if p.returncode == 0:
print '.',
else:
print
print variant + 'COMPILATION ERROR ! ' + str(p.returncode)
print
print 'FINISH'

103
tools/test/makefile Normal file
View File

@ -0,0 +1,103 @@
PATH_COMPILER = C:\Users\$(USERNAME)\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1
PATH_ROOT = ../../STM32/
PATH_PROJECT = $(PATH_ROOT)/libraries/$(PROJECT)
PATH_CORE = $(PATH_ROOT)/cores/arduino/
PATH_VARIANT = $(PATH_ROOT)variants/$(build.variant)/
PATH_BUILD_ROOT = build/$(VARIANT)/
PATH_BUILD_CORE = $(PATH_BUILD_ROOT)/core/
PATH_BUILD_PROJECT = $(PATH_BUILD_ROOT)/$(PROJECT)/
include makefiles/$(VARIANT)
#### Source files
PROJECT_SOURCES_C += $(wildcard $(PATH_PROJECT)*.cpp)
PROJECT_SOURCES_CPP += $(wildcard $(PATH_PROJECT)*.cpp)
PROJECT_SOURCES_INO += $(wildcard $(PATH_PROJECT)*.ino)
CORE_SOURCES_C = $(wildcard $(PATH_CORE)*.c)
CORE_SOURCES_C += $(wildcard $(PATH_CORE)stm32/*.c)
CORE_SOURCES_C += $(wildcard $(PATH_CORE)stm32_HAL/*.c)
CORE_SOURCES_C += $(wildcard $(PATH_CORE)usb/*.c)
CORE_SOURCES_CPP += $(wildcard $(PATH_CORE)*.cpp)
CORE_SOURCES_S += $(wildcard $(PATH_CORE)stm32_HAL/*.S)
VARIANT_SOURCES_C += $(wildcard $(PATH_VARIANT)*.c)
VARIANT_SOURCES_CPP += $(wildcard $(PATH_VARIANT)*.cpp)
#### Object files
OBJECTS = $(patsubst $(PATH_PROJECT)%,$(PATH_BUILD_PROJECT)%,$(PROJECT_SOURCES_C:.c=.c.o))
OBJECTS += $(patsubst $(PATH_PROJECT)%,$(PATH_BUILD_PROJECT)%,$(PROJECT_SOURCES_CPP:.cpp=.cpp.o))
OBJECTS += $(patsubst $(PATH_PROJECT)%,$(PATH_BUILD_PROJECT)%,$(PROJECT_SOURCES_INO:.ino=.ino.cpp.o))
OBJECTS += $(patsubst $(PATH_CORE)%,$(PATH_BUILD_CORE)%,$(CORE_SOURCES_C:.c=.c.o))
OBJECTS += $(patsubst $(PATH_CORE)%,$(PATH_BUILD_CORE)%,$(CORE_SOURCES_CPP:.cpp=.cpp.o))
OBJECTS += $(patsubst $(PATH_CORE)%,$(PATH_BUILD_CORE)%,$(CORE_SOURCES_S:.S=.s.o))
OBJECTS += $(patsubst $(PATH_VARIANT)%,$(PATH_BUILD_CORE)%,$(VARIANT_SOURCES_C:.c=.c.o))
OBJECTS += $(patsubst $(PATH_VARIANT)%,$(PATH_BUILD_CORE)%,$(VARIANT_SOURCES_CPP:.cpp=.cpp.o))
ifneq ($(wildcard $(PATH_PROJECT)/*.ino),)
ELF = $(PATH_BUILD_CORE)build.elf
BIN = $(PATH_BUILD_CORE)build.bin
endif
INCLUDES = "-I$(PATH_ROOT)cores/arduino/"
INCLUDES += "-I$(PATH_ROOT)cores/arduino/stm32"
INCLUDES += "-I$(PATH_ROOT)cores/arduino/stm32_HAL"
INCLUDES += "-I$(PATH_ROOT)cores/arduino/usb"
INCLUDES += "-I$(PATH_ROOT)system/CMSIS"
INCLUDES += "-I$(PATH_ROOT)system/STM32F1/CMSIS_Inc"
INCLUDES += "-I$(PATH_ROOT)system/STM32F1/CMSIS_Src"
INCLUDES += "-I$(PATH_ROOT)system/STM32F1/HAL_Inc"
INCLUDES += "-I$(PATH_ROOT)system/STM32F1/HAL_Src"
INCLUDES += "-I$(PATH_ROOT)system/STM32F1/stm32_chip"
INCLUDES += "-I$(PATH_VARIANT)"
all: $(OBJECTS) $(BIN)
$(info BUILD SUCCESSFUL)
$(BIN): $(ELF)
$(recipe.objcopy.bin.pattern)
$(ELF):
$(recipe.c.combine.pattern)
$(PATH_BUILD_PROJECT)%.cpp.o: $(PATH_PROJECT)%.cpp
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.cpp.o.pattern)
$(PATH_BUILD_PROJECT)%.ino.cpp.o: $(PATH_PROJECT)%.ino
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(subst -c,-c -include Arduino.h -x c++,$(recipe.cpp.o.pattern) )
$(PATH_BUILD_PROJECT)%.c.o: $(PATH_PROJECT)%.c
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.c.o.pattern)
$(PATH_BUILD_CORE)%.cpp.o: $(PATH_CORE)%.cpp
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.cpp.o.pattern)
$(PATH_BUILD_CORE)%.c.o: $(PATH_CORE)%.c
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.c.o.pattern)
$(PATH_BUILD_CORE)%.s.o: $(PATH_CORE)%.S
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.S.o.pattern)
$(PATH_BUILD_CORE)%.cpp.o: $(PATH_VARIANT)%.cpp
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.cpp.o.pattern)
$(PATH_BUILD_CORE)%.c.o: $(PATH_VARIANT)%.c
-@mkdir $(subst /,\\,$(@D)) 2> build/ignore
$(recipe.c.o.pattern)
clean:
rm -rf $(PATH_BUILD)
rm -f $(ELF)
rm -f $(BIN)

View File

@ -0,0 +1,111 @@
name=BLACK F407VE (upload: STLink)
vid.0=0x0483
pid.0=0x5711
upload.maximum_size=1048576
upload.maximum_data_size=196608
build.mcu=cortex-m4
build.core=arduino
build.variant=BLACK_F407VE
build.board=BLACK_F407VE
build.series=STM32F4
build.extra_flags=-DSTM32F407VE -DHSE_VALUE=8000000 -DSERIAL_USB
upload.tool=stlink_upload
upload.protocol=STLink
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F4/CMSIS_Inc" "-I../../STM32/system/STM32F4/CMSIS_Src" "-I../../STM32/system/STM32F4/HAL_Inc" "-I../../STM32/system/STM32F4/HAL_Src" "-I../../STM32/system/STM32F4/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m4 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m4 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m4 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m4 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F4 -DARDUINO=10802 -DARDUINO_BLACK_F407VE -DARDUINO_ARCH_STM32GENERIC -DSTM32F407VE -DHSE_VALUE=8000000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F4/CMSIS_Inc" "-I../../STM32/system/STM32F4/CMSIS_Src" "-I../../STM32/system/STM32F4/HAL_Inc" "-I../../STM32/system/STM32F4/HAL_Src" "-I../../STM32/system/STM32F4/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F4 -DARDUINO=10802 -DARDUINO_BLACK_F407VE -DARDUINO_ARCH_STM32GENERIC -DSTM32F407VE -DHSE_VALUE=8000000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F4/CMSIS_Inc" "-I../../STM32/system/STM32F4/CMSIS_Src" "-I../../STM32/system/STM32F4/HAL_Inc" "-I../../STM32/system/STM32F4/HAL_Src" "-I../../STM32/system/STM32F4/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -x assembler-with-cpp -DSTM32F4 -DARDUINO=10802 -DARDUINO_BLACK_F407VE -DARDUINO_ARCH_STM32GENERIC -DSTM32F407VE -DHSE_VALUE=8000000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F4/CMSIS_Inc" "-I../../STM32/system/STM32F4/CMSIS_Src" "-I../../STM32/system/STM32F4/HAL_Inc" "-I../../STM32/system/STM32F4/HAL_Src" "-I../../STM32/system/STM32F4/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.BLACK_F407VE.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=BluePill F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=gdb_bmp
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=BLUEPILL
build.core=arduino
build.variant=BLUEPILL
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=bmp_upload
build.upload_flags=
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.BLUEPILL.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,117 @@
name=BluePill F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=maple_dfu
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=BLUEPILL
build.core=arduino
build.variant=BLUEPILL
build.series=STM32F1
build.extra_flags=-DSTM32F103CB -DVECT_TAB_OFFSET=0x2000 -DSERIAL_USB
upload.tool=maple_upload
build.ldscript=ldscript_bootloader_2000.ld
upload.usbID=1EAF:0003
upload.altID=2
flash.maximum_size=122880
maximum_data_size=122880
ram.maximum_size=20480
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x2000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x2000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x2000 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.BLUEPILL.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 2 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 2 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 2 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=BluePill F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=STLink
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=BLUEPILL
build.core=arduino
build.variant=BLUEPILL
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=stlink_upload
build.upload_flags=-DSERIAL_USB -DUSB_DISC_PIN=PB9
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.BLUEPILL.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,111 @@
name=BluePill F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=maple_serial
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=BLUEPILL
build.core=arduino
build.variant=BLUEPILL
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=serial_upload
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_BLUEPILL -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.BLUEPILL.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,111 @@
name=Discovery L053C8 (upload: STLink)
vid.0=0x0483
pid.0=0x5711
upload.maximum_size=524288
upload.maximum_data_size=131072
build.core=arduino
build.board=DISCOVERY_L053C8
build.mcu=cortex-m0
build.series=STM32L0
build.variant=DISCOVERY_L053C8
build.extra_flags=-DSTM32L053C8 -DSERIAL_USB
upload.protocol=STLink
upload.tool=stlink_upload
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32L0/CMSIS_Inc" "-I../../STM32/system/STM32L0/CMSIS_Src" "-I../../STM32/system/STM32L0/HAL_Inc" "-I../../STM32/system/STM32L0/HAL_Src" "-I../../STM32/system/STM32L0/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m0 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m0 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m0 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m0 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32L0 -DARDUINO=10802 -DARDUINO_DISCOVERY_L053C8 -DARDUINO_ARCH_STM32GENERIC -DSTM32L053C8 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32L0/CMSIS_Inc" "-I../../STM32/system/STM32L0/CMSIS_Src" "-I../../STM32/system/STM32L0/HAL_Inc" "-I../../STM32/system/STM32L0/HAL_Src" "-I../../STM32/system/STM32L0/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m0 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32L0 -DARDUINO=10802 -DARDUINO_DISCOVERY_L053C8 -DARDUINO_ARCH_STM32GENERIC -DSTM32L053C8 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32L0/CMSIS_Inc" "-I../../STM32/system/STM32L0/CMSIS_Src" "-I../../STM32/system/STM32L0/HAL_Inc" "-I../../STM32/system/STM32L0/HAL_Src" "-I../../STM32/system/STM32L0/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -c -x assembler-with-cpp -DSTM32L0 -DARDUINO=10802 -DARDUINO_DISCOVERY_L053C8 -DARDUINO_ARCH_STM32GENERIC -DSTM32L053C8 -DSERIAL_USB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32L0/CMSIS_Inc" "-I../../STM32/system/STM32L0/CMSIS_Src" "-I../../STM32/system/STM32L0/HAL_Inc" "-I../../STM32/system/STM32L0/HAL_Src" "-I../../STM32/system/STM32L0/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.DISCOVERY_L053C8.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=MapleMini F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=gdb_bmp
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=MAPLE_MINI
build.core=arduino
build.variant=MAPLE_MINI
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=bmp_upload
build.upload_flags=
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.MAPLE_MINI.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,117 @@
name=MapleMini F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=maple_dfu
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=MAPLE_MINI
build.core=arduino
build.variant=MAPLE_MINI
build.series=STM32F1
build.extra_flags=-DSTM32F103CB -DVECT_TAB_OFFSET=0x5000 -DSERIAL_USB -DUSB_DISC_PIN=PB9
upload.tool=maple_upload
build.ldscript=ldscript_bootloader_5000.ld
upload.usbID=1EAF:0003
upload.altID=1
flash.maximum_size=110592
maximum_data_size=110592
ram.maximum_size=17408
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x5000 -DSERIAL_USB -DUSB_DISC_PIN=PB9 "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x5000 -DSERIAL_USB -DUSB_DISC_PIN=PB9 "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB -DVECT_TAB_OFFSET=0x5000 -DSERIAL_USB -DUSB_DISC_PIN=PB9 "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.MAPLE_MINI.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 1 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 1 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} 1 1EAF:0003 "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=MapleMini F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=STLink
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=MAPLE_MINI
build.core=arduino
build.variant=MAPLE_MINI
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=stlink_upload
build.upload_flags=-DSERIAL_USB -DUSB_DISC_PIN=PB9
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.MAPLE_MINI.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,111 @@
name=MapleMini F103CB
vid.0=0x0483
pid.0=0x5740
upload.protocol=maple_serial
upload.maximum_size=131072
upload.maximum_data_size=20480
build.mcu=cortex-m3
build.board=MAPLE_MINI
build.core=arduino
build.variant=MAPLE_MINI
build.series=STM32F1
build.extra_flags=-DSTM32F103CB
upload.tool=serial_upload
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32GENERIC -DSTM32F103CB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.MAPLE_MINI.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "{massstorage_drive}"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=Nucleo-64 (Select board from submenu)
vid.0=0x0483
pid.0=0x5711
upload.maximum_size=524288
upload.maximum_data_size=131072
build.core=arduino
build.board=NUCLEO_64
build.mcu=cortex-m3
build.series=STM32F1
build.variant=NUCLEO_F103RB
build.extra_flags=-DSTM32F103RB
massstorage_drive=NODE_F103RB
upload.protocol=STLink
upload.tool=stlink_upload
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.NUCLEO_F103RB.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "NODE_F103RB"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,112 @@
name=Nucleo-64 (Select board from submenu)
vid.0=0x0483
pid.0=0x5711
upload.maximum_size=524288
upload.maximum_data_size=131072
build.core=arduino
build.board=NUCLEO_64
build.mcu=cortex-m3
build.series=STM32F1
build.variant=NUCLEO_F103RB
build.extra_flags=-DSTM32F103RB
massstorage_drive=NODE_F103RB
upload.protocol=STLink
upload.tool=stlink_upload
build.project_name=$(VARIANT)/$(PROJECT)/out
object_file=$@
source_file=$<
includes=$(INCLUDES)
object_files=$(OBJECTS)
runtime.tools.arm-none-eabi-gcc.path=$(PATH_COMPILER)
runtime.ide.version=10802
build.path=build
build.arch=STM32GENERIC
runtime.hardware.path=../../STM32
build.system.path=../../STM32/system
build.core.path=../../STM32/cores/arduino
build.variant.path=$(PATH_VARIANT)
name=STM32 boards by danieleff
version=1.0.0
compiler.extra_includes="-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip"
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.path=$(PATH_COMPILER)/bin/
compiler.S.cmd = arm-none-eabi-gcc
compiler.c.cmd = arm-none-eabi-gcc
compiler.cpp.cmd = arm-none-eabi-g++
compiler.ar.cmd = arm-none-eabi-ar
compiler.c.elf.cmd = arm-none-eabi-gcc
compiler.objcopy.cmd = arm-none-eabi-objcopy
compiler.S.flags=-mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp
compiler.c.flags=-mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.cpp.flags=-mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.flags=rcs
compiler.c.elf.flags=-mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.extra_flags=
build.ldscript=ldscript.ld
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
build.usb_flags=-DUSBD_VID={build.vid} -DUSBD_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
build.usb_manufacturer="Unknown"
recipe.c.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -g -MMD -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.cpp.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.S.o.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -c -x assembler-with-cpp -DSTM32F1 -DARDUINO=10802 -DARDUINO_NUCLEO_64 -DARDUINO_ARCH_STM32GENERIC -DSTM32F103RB "-I../../STM32/cores/arduino/stm32" "-I../../STM32/cores/arduino/usb" "-I../../STM32/system/CMSIS" "-I../../STM32/system/STM32F1/CMSIS_Inc" "-I../../STM32/system/STM32F1/CMSIS_Src" "-I../../STM32/system/STM32F1/HAL_Inc" "-I../../STM32/system/STM32F1/HAL_Src" "-I../../STM32/system/STM32F1/stm32_chip" $(INCLUDES) "$<" -o "$@"
recipe.ar.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-ar" rcs "{archive_file_path}" "$@"
recipe.c.combine.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align "-T$(PATH_VARIANT)/ldscript.ld" "-Wl,-Map,build/$(VARIANT)/$(PROJECT)/out.map" -o "build/$(VARIANT)/$(PROJECT)/out.elf" "-Lbuild" -Wl,--start-group $(OBJECTS) -Wl,--end-group -lm -lgcc --specs=nano.specs
recipe.objcopy.bin.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-objcopy" -O binary "build/$(VARIANT)/$(PROJECT)/out.elf" "build/$(VARIANT)/$(PROJECT)/out.bin"
recipe.output.tmp_file=$(VARIANT)/$(PROJECT)/out.bin
recipe.output.save_file=$(VARIANT)/$(PROJECT)/out.NUCLEO_F103RB.bin
recipe.size.pattern="$(PATH_COMPILER)/bin/arm-none-eabi-size" -A "build/$(VARIANT)/$(PROJECT)/out.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.nucleoFlasher.path=../../STM32/tools/win/nucleoFlasher
tools.nucleoFlasher.path.macosx=../../STM32/tools/macosx/nucleoFlasher
tools.nucleoFlasher.path.linux=../../STM32/tools/linux/nucleoFlasher
tools.nucleoFlasher.cmd.linux=nucleoFlasher
tools.nucleoFlasher.cmd.windows=nucleoFlasher.bat
tools.nucleoFlasher.cmd.macosx=nucleoFlasherMacOsX
tools.nucleoFlasher.upload.params.verbose=
tools.nucleoFlasher.upload.params.quiet=
tools.nucleoFlasher.upload.pattern="{path}/{cmd}" {upload.verbose} -I "build/$(VARIANT)/$(PROJECT)/out.bin" -O "NODE_F103RB"
tools.stlink_upload.cmd=stlink_upload
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows=../../STM32/tools/win
tools.stlink_upload.path.macosx=../../STM32/tools/macosx
tools.stlink_upload.path.linux=../../STM32/tools/linux
tools.stlink_upload.path.linux64=../../STM32/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.maple_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"
tools.serial_upload.cmd=serial_upload
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.tools.STM32Tools.path}/tools/win
tools.serial_upload.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
tools.serial_upload.path.linux={runtime.tools.STM32Tools.path}/tools/linux
tools.serial_upload.path.linux64={runtime.tools.STM32Tools.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "build/$(VARIANT)/$(PROJECT)/out.bin"

View File

@ -0,0 +1,102 @@
from collections import OrderedDict
root = '../../STM32';
with open(root + '/boards.txt') as file:
boards = file.readlines()
with open(root + '/platform.txt') as file:
platform = file.readlines()
variants = {}
variant_nucleos = {}
variant_uploads = {}
for line in boards:
line = line.strip()
if not line or line.startswith('#') or line.startswith('menu'):
continue
(board, data) = line.split('.', 1)
(key, value) = data.split('=', 1)
key = key.strip()
value = value.strip()
if key.startswith('menu.nucleo_board.'):
key = key.replace('menu.nucleo_board.', '')
if '.' not in key:
continue
(upload, k) = key.split('.', 1)
variant_nucleos.setdefault(board + '_' + upload, variants[board])[k] = value
elif key.startswith('menu.upload_method.'):
key = key.replace('menu.upload_method.', '')
if '.' not in key or 'MassStorageMethod' in key or 'DFUUploadMethod2' in key:
continue
(upload, k) = key.split('.', 1)
if variant_nucleos:
for name, keyvalues in variant_nucleos.iteritems():
variant_uploads.setdefault(name + '_' + upload, keyvalues)[k] = value
else:
variant_uploads.setdefault(board + '_' + upload, variants[board].copy())[k] = value
else:
variants.setdefault(board, OrderedDict())[key] = value
for variant in variants.keys():
upload_exists = False
for variant_upload in variant_uploads.keys():
if variant in variant_upload:
upload_exists = True
break
if not upload_exists:
variant_uploads[variant] = variants[variant]
for (variant, replaces) in variant_uploads.iteritems():
replaces = replaces.copy()
replaces['build.project_name'] = '$(VARIANT)/$(PROJECT)/out'
replaces['object_file'] = '$@'
replaces['source_file'] = '$<'
replaces['includes'] = '$(INCLUDES)'
replaces['object_files'] = '$(OBJECTS)'
replaces['runtime.tools.arm-none-eabi-gcc.path'] = '$(PATH_COMPILER)'
replaces['runtime.ide.version'] = '10802'
replaces['build.path'] = 'build'
replaces['build.arch'] = 'STM32GENERIC'
replaces['runtime.hardware.path'] = root
replaces['build.system.path'] = root + '/system'
replaces['build.core.path'] = root + '/cores/arduino'
replaces['build.variant.path'] = '$(PATH_VARIANT)'
with open('makefiles/' + variant, 'w') as file:
for key, value in replaces.iteritems():
file.write(key + '=' + value + '\n')
for line in platform:
line = line.strip()
if not line or line.startswith('#'):
continue
for (key, value) in replaces.iteritems():
line = line.replace('{' + key + '}', value)
(key, value) = line.split('=', 1)
key = key.strip()
value = value.strip()
if value or key not in replaces:
replaces[key] = value
line = line.replace('"build/{archive_file}"', '')
file.write(line + '\n')