Skip to content

Commit 05191bd

Browse files
committed
nano_matter: add static linking support
1 parent e1bb38c commit 05191bd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

boards.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,11 @@ nano_matter.menu.debug.false=Standard
538538
nano_matter.menu.debug.true=Debug
539539
nano_matter.menu.debug.true.build.zsk_args.debug=-debug
540540

541+
nano_matter.menu.link_mode.dynamic=Dynamic
542+
nano_matter.menu.link_mode.static=Static
543+
nano_matter.menu.link_mode.static.build.link_mode=static
544+
nano_matter.menu.link_mode.static.upload.extension=bin-zsk.bin
545+
541546
nano_matter.build.zephyr_target=arduino_nano_matter
542547
nano_matter.build.zephyr_args=
543548
nano_matter.build.zephyr_hals=hal_silabs

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ tools.sl_openocd.cmd={path}/bin/openocd
187187

188188
tools.sl_openocd.upload.params.verbose=-d2
189189
tools.sl_openocd.upload.params.quiet=-d0
190-
tools.sl_openocd.upload.pattern="{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f interface/cmsis-dap.cfg -f target/efm32s2_g23.cfg -c "init; reset_config srst_nogate; reset halt; flash write_image erase {{build.path}/{build.project_name}.elf-zsk.bin} {upload.address} bin; reset; exit"
190+
tools.sl_openocd.upload.pattern="{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f interface/cmsis-dap.cfg -f target/efm32s2_g23.cfg -c "init; reset_config srst_nogate; reset halt; flash write_image erase {{build.path}/{build.project_name}.{upload.extension}} {upload.address} bin; reset; exit"
191191

192192
tools.sl_openocd.program.params.verbose=-d2
193193
tools.sl_openocd.program.params.quiet=-d0
194-
tools.sl_openocd.program.pattern="{cmd}" {program.verbose} -s "{path}/share/openocd/scripts/" -f interface/cmsis-dap.cfg -f target/efm32s2_g23.cfg -c "init; reset_config srst_nogate; reset halt; flash write_image erase {{build.path}/{build.project_name}.elf-zsk.bin} {upload.address} bin; reset; exit"
194+
tools.sl_openocd.program.pattern="{cmd}" {program.verbose} -s "{path}/share/openocd/scripts/" -f interface/cmsis-dap.cfg -f target/efm32s2_g23.cfg -c "init; reset_config srst_nogate; reset halt; flash write_image erase {{build.path}/{build.project_name}.{upload.extension}} {upload.address} bin; reset; exit"
195195

196196
tools.sl_openocd.erase.params.verbose=-d2
197197
tools.sl_openocd.erase.params.quiet=-d0

0 commit comments

Comments
 (0)