preserve flash / full erase flash

- preserve: bonding 정보 및 settings/NVS 유지, application만 다시 올리는 용도
This commit is contained in:
2026-07-01 10:54:02 +09:00
parent 822789ff82
commit 828687b9ac
2 changed files with 48 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
param(
[string]$Hex = "build\merged.hex"
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$RepoRoot = Split-Path -Parent $PSScriptRoot
$HexPath = Join-Path $RepoRoot $Hex
if (-not (Test-Path -LiteralPath $HexPath)) {
throw "Hex file not found: $HexPath. Build the project first."
}
Write-Host "[FLASH] FULL ERASE mode"
Write-Host "[FLASH] This wipes application flash, NVS/settings, and BLE bonds."
Write-Host "[FLASH] Programming: $HexPath"
nrfjprog --program $HexPath --chiperase --verify --reset