Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit c334e7e

Browse files
author
andrea-83
authored
Merge pull request #15 from sergiotomasello/development
fix: 1.8.x compatibility, defined tools and patterns
2 parents 195c03a + 039d567 commit c334e7e

File tree

3 files changed

+19
-62
lines changed

3 files changed

+19
-62
lines changed

boards.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# edited 01 jun 2016 - Arduino Srl (http://www.arduino.org/) - Francesco Alessi (alfran) - [email protected]
21

32
##############################################################
43
star_otto.name=Arduino Star OTTO
54

6-
star_otto.vid.0=0x2341
5+
star_otto.vid.0=0x2A03
76
star_otto.pid.0=0x0058
87

98
star_otto.upload.tool=dfu-util
@@ -20,13 +19,15 @@ star_otto.upload.usbID=0483:DF11
2019
star_otto.upload.altID=0
2120

2221
star_otto.build.mcu=cortex-m4
23-
star_otto.build.board=otto
22+
star_otto.build.board=STM32_STAR_OTTO
2423
star_otto.build.f_cpu=180000000L
2524
star_otto.build.core=arduino
26-
star_otto.build.extra_flags=-DSTM32F469xx -DMCU_STM32F469NI -mthumb -DSTM32_HIGH_DENSITY
25+
star_otto.build.esp_ch_uart_br=460800
26+
star_otto.build.extra_flags=-DSTM32F469xx -DMCU_STM32F469NI -mthumb -DSTM32_HIGH_DENSITY -DESP_CH_UART -DESP_CH_UART_BR={build.esp_ch_uart_br}
2727
star_otto.build.ldscript=link-tools/jtag.ld
2828
star_otto.build.variant=otto
2929
star_otto.build.variant_system_lib=libstm32f4_otto_gcc_rel.a
3030
star_otto.build.vect=VECT_TAB_BASE
3131
star_otto.build.density=STM32_HIGH_DENSITY
32+
3233
##############################################################

platform.txt

+14-47
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
# Arduino STM32 Core and platform
1+
2+
# Arduino STM32F4 Core and platform
3+
# ------------------------------
24
#
35
# For more info:
46
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
57

6-
#
7-
# edited 1 Jun 2016 - Arduino srl - Francesco Alessi (alfran) - [email protected]
8-
#
9-
10-
name=Arduino STM32 (32-bits) boards
11-
version=1.7.0
8+
name=Arduino STM32F4 (32-bits ARM Cortex-M4) Boards
9+
version=1.0.0
1210

13-
# STM32 compiler variables
11+
# STM32F4 compiler variables
1412
# ------------------------
1513

16-
compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
14+
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
1715
compiler.c.cmd=arm-none-eabi-gcc
1816
compiler.c.flags=-c -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -D{build.vect} -Dprintf=iprintf -MMD {compiler.libs.c.flags}
1917
compiler.c.elf.cmd=arm-none-eabi-gcc
@@ -69,10 +67,10 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -m
6967
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}"
7068

7169
## Create archives
72-
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
70+
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
7371

7472
## Combine gc-sections, archives, and objects
75-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls.c.o" {object_files} -Wl,--whole-archive "{build.variant.path}/{build.variant_system_lib}" -Wl,--no-whole-archive "{build.path}/{archive_file}" -Wl,--end-group
73+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/core/syscalls.c.o" {object_files} -Wl,--whole-archive "{build.variant.path}/{build.variant_system_lib}" -Wl,--no-whole-archive "{build.path}/{archive_file}" -Wl,--end-group
7674

7775
## Create eeprom
7876
recipe.objcopy.eep.pattern=
@@ -88,53 +86,22 @@ recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build
8886
recipe.size.regex=^(?:\.text|\.rodata|\.ARM.exidx)\s+([0-9]+).*
8987
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
9088

91-
# STM32 Uploader/Programmers tools
92-
# --------------------------------
93-
94-
# Generic STM32 upload via serial to Serial Port 1 (pins PA9 and PA10) - note. Boot0 line needs to high on board reset to enable upload via serial
95-
# at the end of the upload the program is automatically run, without the board being reset
96-
97-
tools.serial_upload.cmd=serial_upload
98-
tools.serial_upload.cmd.windows=serial_upload.bat
99-
tools.serial_upload.cmd.macosx=serial_upload
100-
#tools.serial_upload.cmd.linux=
101-
102-
tools.serial_upload.path={runtime.hardware.path}/tools/win
103-
tools.serial_upload.path.macosx={runtime.hardware.path}/tools/macosx
104-
105-
tools.serial_upload.upload.params.verbose=-d
106-
tools.serial_upload.upload.params.quiet=
107-
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
108-
109-
# STLINK/V2
110-
111-
tools.stlink.cmd=stlink
112-
tools.stlink.cmd.windows=stlink_upload.bat
113-
tools.stlink.cmd.macosx=stlink_upload
114-
#tools.stlink.cmd.linux=
115-
116-
tools.stlink.path.windows={runtime.hardware.path}/tools/win
117-
tools.stlink.path.macosx={runtime.hardware.path}/tools/macosx
118-
119-
tools.stlink.upload.params.verbose=-d
120-
tools.stlink.upload.params.quiet=
121-
tools.stlink.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
122-
89+
#
12390
# DFU Util
91+
# --------
12492

93+
tools.dfu-util.path={runtime.tools.dfu-util-0.8.0-stm32-arduino1.path}
12594
tools.dfu-util.cmd=dfu-util
126-
tools.dfu-util.cmd.windows=StAr_Write.bat
127-
128-
tools.dfu-util.path={runtime.ide.path}/hardware/tools/dfu-util/
95+
tools.dfu-util.cmd.windows=dfu-util.cmd
12996

13097
tools.dfu-util.upload.params.verbose=-v
13198
tools.dfu-util.upload.params.quiet=
13299
tools.dfu-util.upload.pattern="{path}/{cmd}" "{path}" {upload.usbID} {upload.altID} {upload.mem_start} "{build.path}/{build.project_name}.bin"
133100

101+
#
134102
# USB Flags
135103
# ---------
136104

137105
# Default usb manufacturer will be replaced at compile time using
138106
# numeric vendor ID if available or by board's specific value.
139107
build.usb_manufacturer="Unknown"
140-
tools.dfu-util.upload.pattern="{path}/{cmd}" "{path}" -l -d {upload.usbID} -a {upload.altID} -s {upload.mem_start} -O "{build.path}/{build.project_name}.bin" -f 0x08000000

programmers.txt

-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
/*
2-
Copyright 2015 Arduino Srl (http://www.arduino.org/)
3-
4-
MISSING LICENSE
5-
6-
authors:
7-
created 31 May 2016 - Francesco Alessi (alfran) - [email protected]
8-
*/
9-
10-
11-
# no programmer implemented, the DFU is in ROM.

0 commit comments

Comments
 (0)