Files
VesiScan-Basic_Zephyr/tools/flash_full_erase.ps1
T
jh.chun 828687b9ac preserve flash / full erase flash
- preserve: bonding 정보 및 settings/NVS 유지, application만 다시 올리는 용도
2026-07-01 10:54:02 +09:00

20 lines
528 B
PowerShell

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