25 lines
706 B
Batchfile
25 lines
706 B
Batchfile
@echo off
|
|
echo building project with emBuild:
|
|
emBuild -time -rebuild -nostderr -config "Release" -solution "Multimodal_CV_USB_ADS1298R_pca10056" Multimodal_CV_USB_ADS1298R_pca10056.emProject
|
|
IF ERRORLEVEL 1 (
|
|
echo Building solution failed.
|
|
echo.
|
|
exit /b 1
|
|
)
|
|
echo build success.
|
|
|
|
nrfjprog --program Output\Release\Exe\Multimodal_CV_USB_ADS1298R_pca10056.hex --chiperase --verify --reset
|
|
IF ERRORLEVEL 1 (
|
|
echo Flashing target device failed.
|
|
echo.
|
|
exit /b 1
|
|
)
|
|
echo flash success.
|
|
|
|
rem "C:\Program Files\SEGGER\JLink_V810f\JLinkRTTViewer.exe" --autoconnect -d "NRF52840_XXAA"
|
|
rem IF ERRORLEVEL 1 (
|
|
rem echo J-Link RTT Viewer failed to launch.
|
|
rem echo.
|
|
rem exit /b 1
|
|
rem )
|