From b9ddb1040cf68600bfc33a60edf36d91d82fcf1b Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 06 Jul 2026 23:58:02 +0800
Subject: [PATCH] Update tasks.json to fix must flash twice bug

---
 ex1.auto-light/.vscode/tasks.json |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ex1.auto-light/.vscode/tasks.json b/ex1.auto-light/.vscode/tasks.json
index 4586022..c8d0ec6 100644
--- a/ex1.auto-light/.vscode/tasks.json
+++ b/ex1.auto-light/.vscode/tasks.json
@@ -6,8 +6,8 @@
             "type": "shell",
             "command": "D:\\Program Files\\ST\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe",
             "args": [
-                "-c",
-                "port=SWD",
+                "-c port=SWD",
+                "-e all",
                 "-w",
                 "${workspaceFolder}\\build\\Release\\ISKBoard.elf",
                 "0x08000000",

--
Gitblit v1.10.0