From ddcf8559d4fbb9bd6942ac46d5c4970ef08b16d1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 12 Apr 2025 11:33:07 +0200 Subject: fw: Add flash and erase targets These targets are added: - fw/erase - fw/app/flash - fw/btl/flash They make it easier to perform a mass-erase, flashing of the bootloader and flashing of the application for development. --- fw/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'fw/meson.build') diff --git a/fw/meson.build b/fw/meson.build index 8194827..f61058c 100644 --- a/fw/meson.build +++ b/fw/meson.build @@ -7,3 +7,14 @@ subdir('rtos') subdir('app') subdir('btl') subdir('sim') + +erase = custom_target( + build_always_stale: true, + build_by_default: false, + command: [ + 'st-flash', + '--connect-under-reset', + 'erase', + ], + output: ['erase'], +) -- cgit v1.2.3-70-g09d2