Skip to content

Commit 58d6c2f

Browse files
committed
Fix Leven upload
1 parent 9152f6a commit 58d6c2f

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

boards.txt

+5-7
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ santiago.upload.maximum_data_size=32768
9696

9797
##############################################################
9898

99-
composta.name=Santiago Composta (RA4M1)
99+
composta.name=Santiago Leven (RA4M1)
100100
composta.build.core=arduino
101101
composta.build.crossprefix=arm-none-eabi-
102102
composta.build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
@@ -128,15 +128,13 @@ composta.compiler.fsp.includes={build.variant.path}/includes.txt
128128
composta.compiler.fsp.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
129129
composta.compiler.fsp="{build.variant.path}/libs/libfsp.a"
130130

131-
composta.upload.tool=dfu-util
132-
composta.upload.tool.default=dfu-util
133-
composta.upload.protocol=
131+
composta.upload.tool=bossac
132+
composta.upload.tool.default=bossac
133+
composta.upload.protocol=sam-ba
134134
composta.upload.transport=
135135
composta.upload.vid=0x2341
136136
composta.upload.pid=0x0369
137-
composta.upload.address=0x00010000
138-
composta.upload.interface=0
139-
composta.upload.use_1200bps_touch=false
137+
composta.upload.use_1200bps_touch=true
140138
composta.upload.wait_for_upload_port=false
141139
composta.upload.native_usb=true
142140
composta.upload.maximum_size=262144

platform.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,10 @@ tools.dfu-util.upload.params.quiet=
104104
# -Q introduced with latest dfu-util
105105
tools.dfu-util.upload.pattern="{path}/{cmd}" --device {upload.vid}:{pid.0},:{upload.pid} -D "{build.path}/{build.project_name}.bin" -a{upload.interface} -Q
106106

107-
pluggable_discovery.required=builtin:dfu-discovery
107+
pluggable_discovery.required=builtin:dfu-discovery
108+
109+
tools.bossac.path={runtime.tools.bossac-1.9.1-arduino5.path}
110+
tools.bossac.cmd=bossac
111+
tools.bossac.upload.params.verbose=-d
112+
tools.bossac.upload.params.quiet=
113+
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -i -e -w -v "{build.path}/{build.project_name}.bin" -R

variants/SANTIAGO_COMPOSTA/variant.cpp

+13-10
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,19 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
111111
{ BSP_IO_PORT_04_PIN_00, P400 }, /* (26) D26 QWIC SCL */
112112
{ BSP_IO_PORT_04_PIN_01, P401 }, /* (27) D27 QWIC SDA */
113113

114-
{ BSP_IO_PORT_00_PIN_11, P011 }, /* (28) D28 */
115-
{ BSP_IO_PORT_00_PIN_12, P012 }, /* (29) D29 */
116-
{ BSP_IO_PORT_00_PIN_13, P013 }, /* (30) D30 */
117-
{ BSP_IO_PORT_02_PIN_04, P204 }, /* (31) D31 */
118-
{ BSP_IO_PORT_02_PIN_05, P205 }, /* (32) D32 */
119-
{ BSP_IO_PORT_02_PIN_06, P206 }, /* (33) D33 */
120-
{ BSP_IO_PORT_02_PIN_13, P213 }, /* (34) D34 */
121-
{ BSP_IO_PORT_02_PIN_12, P212 }, /* (35) D35 */
122-
123-
{ BSP_IO_PORT_05_PIN_00, P500 }, /* (36) Analog voltage measure pin */
114+
{ BSP_IO_PORT_00_PIN_03, P003 }, /* (28) D28 */
115+
{ BSP_IO_PORT_00_PIN_04, P004 }, /* (29) D29 */
116+
{ BSP_IO_PORT_00_PIN_11, P011 }, /* (30) D30 */
117+
{ BSP_IO_PORT_00_PIN_12, P012 }, /* (31) D31 */
118+
{ BSP_IO_PORT_00_PIN_13, P013 }, /* (32) D32 */
119+
{ BSP_IO_PORT_00_PIN_15, P015 }, /* (33) D33 */
120+
{ BSP_IO_PORT_02_PIN_04, P204 }, /* (34) D34 */
121+
{ BSP_IO_PORT_02_PIN_05, P205 }, /* (35) D35 */
122+
{ BSP_IO_PORT_02_PIN_06, P206 }, /* (36) D36 */
123+
{ BSP_IO_PORT_02_PIN_12, P212 }, /* (37) D37 */
124+
{ BSP_IO_PORT_02_PIN_13, P213 }, /* (38) D38 */
125+
126+
{ BSP_IO_PORT_05_PIN_00, P500 }, /* (39) Analog voltage measure pin */
124127
};
125128

126129
extern "C" const size_t g_pin_cfg_size = sizeof(g_pin_cfg);

0 commit comments

Comments
 (0)