From c40e4ba01e2ce8083e8c462d23ce2bd9b00ecc44 Mon Sep 17 00:00:00 2001 From: Sergey Gavrilov Date: Thu, 10 Aug 2023 12:53:12 +0300 Subject: [PATCH] FBT: devboard_flash to update WiFi devboard (#2968) --- SConstruct | 3 +++ documentation/fbt.md | 1 + 2 files changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index b51154f70..d968254b1 100644 --- a/SConstruct +++ b/SConstruct @@ -327,6 +327,9 @@ distenv.PhonyTarget( "cli", "${PYTHON3} ${FBT_SCRIPT_DIR}/serial_cli.py -p ${FLIP_PORT}" ) +# Update WiFi devboard firmware +distenv.PhonyTarget("devboard_flash", "${PYTHON3} ${FBT_SCRIPT_DIR}/wifi_board.py") + # Find blackmagic probe distenv.PhonyTarget( diff --git a/documentation/fbt.md b/documentation/fbt.md index c19780ef5..1ab67b4e6 100644 --- a/documentation/fbt.md +++ b/documentation/fbt.md @@ -69,6 +69,7 @@ To run cleanup (think of `make clean`) for specified targets, add the `-c` optio - `debug` - build and flash firmware, then attach with gdb with firmware's .elf loaded. - `debug_other`, `debug_other_blackmagic` - attach GDB without loading any `.elf`. It will allow you to manually add external `.elf` files with `add-symbol-file` in GDB. - `updater_debug` - attach GDB with the updater's `.elf` loaded. +- `devboard_flash` - update WiFi dev board with the latest firmware. - `blackmagic` - debug firmware with Blackmagic probe (WiFi dev board). - `openocd` - just start OpenOCD. - `get_blackmagic` - output the blackmagic address in the GDB remote format. Useful for IDE integration.