-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatform.txt
30 lines (23 loc) · 1.18 KB
/
platform.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# These definitions are specific to myStorm
# Everything not specified here is taken from platform.txt in grumpyoldpizza:stm32l4
name=myStorm Boards (STM32L4 + ICE40)
version=0.1.1
compiler.elf2hex.extra_flags=
compiler.elf2hex.flags=-O binary
compiler.elf2hex.flags2=-O ihex
recipe.objcopy.dfu.pattern=
recipe.hooks.objcopy.postobjcopy.1.pattern=
recipe.hooks.objcopy.postobjcopy.2.pattern=
## Create bin
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
## Create hex
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags2} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
#
# Program STM32 flash via DFU
#
tools.dfu-util.path={runtime.tools.dfu-util.path}
tools.dfu-util.cmd=dfu-util
tools.dfu-util.cmd.windows=dfu-util.exe
tools.dfu-util.upload.params.verbose=-v
tools.dfu-util.upload.params.quiet=
tools.dfu-util.upload.pattern="{path}/{cmd}" -d 0483:df11 -a 0 -s 0x08000000:leave -t {upload.xfer} -D "{build.path}/{build.project_name}.bin"