Flash할 때 NVS 보존

This commit is contained in:
2026-06-19 14:22:35 +09:00
parent 08b8d3001e
commit f68b3296ee
4 changed files with 51 additions and 1 deletions
+14
View File
@@ -7,6 +7,20 @@
"name": "Launch blinky/build/blinky",
"config": "${workspaceFolder}/build/blinky",
"runToEntryPoint": "main"
},
{
"type": "nrf-connect",
"request": "launch",
"name": "Launch blinky/build",
"config": "${workspaceFolder}/build",
"runToEntryPoint": "main"
},
{
"type": "nrf-connect",
"request": "launch",
"name": "Launch blinky/build/mcuboot",
"config": "${workspaceFolder}/build/mcuboot",
"runToEntryPoint": "main"
}
]
}
+3 -1
View File
@@ -1,5 +1,7 @@
{
"nrf-connect.debugging.bindings": {
"${workspaceFolder}/build/blinky": "Launch blinky/build/blinky"
"${workspaceFolder}/build/blinky": "Launch blinky/build/blinky",
"${workspaceFolder}/build": "Launch blinky/build",
"${workspaceFolder}/build/mcuboot": "Launch blinky/build/mcuboot"
}
}
+29
View File
@@ -0,0 +1,29 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Flash: full erase (wipe NVS/bonds)",
"type": "shell",
"command": "powershell",
"args": [
"-ExecutionPolicy",
"Bypass",
"-File",
"${workspaceFolder}\\tools\\flash_full_erase.ps1"
],
"problemMatcher": []
},
{
"label": "Flash: preserve settings/bonds",
"type": "shell",
"command": "powershell",
"args": [
"-ExecutionPolicy",
"Bypass",
"-File",
"${workspaceFolder}\\tools\\flash_preserve_settings.ps1"
],
"problemMatcher": []
}
]
}
+5
View File
@@ -1,6 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
macro(app_set_runner_args)
board_runner_args(nrfutil "--erase-mode=ranges")
endmacro()
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(vesiscan)