@echo off
rem Flash the anchor firmware. Runs from any directory; ignores execution policy.
rem   flash_anchor.bat             -> full flash (bootloader + partition table + app)
rem   flash_anchor.bat -DryRun     -> show the plan, write nothing
rem   flash_anchor.bat -AppOnly    -> app only, leave board data alone
rem   flash_anchor.bat -Monitor    -> flash then open the serial monitor
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0flash_anchor.ps1" %*
echo.
pause
