mothercup/nations-tec/N32WB03x_SDK_V2.0.0/utilities/dfu/NSLinkDragFilesToProgram.bat
2026-09-01 06:22:11 +08:00

17 lines
365 B
Batchfile

echo off
if exist "%1" (
echo.
echo Please make sure connect SWD and reset pin of chip to NSLink.
echo This script will reset the chip and start programming...
echo.
.\NSpyocd\NSpyocd.exe erase --chip -M pre-reset -t n32wb031
.\NSpyocd\NSpyocd.exe load -t n32wb031 %1%
)else (
echo.
echo Error! Do not double-click to run this bat!!!
echo.
)
PAUSE
EXIT