@echo off echo building project with emBuild: emBuild -time -rebuild -nostderr -config "Debug" -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\Debug\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. "C:\Program Files\SEGGER\JLink_V810f\JLinkRTTViewer.exe" --autoconnect -d "NRF52840_XXAA" IF ERRORLEVEL 1 ( echo J-Link RTT Viewer failed to launch. echo. exit /b 1 )