@ECHO OFF
@REM 
@REM This batch file has been generated by the IAR Embedded Workbench
@REM C-SPY Debugger, as an aid to preparing a command line for running
@REM the cspybat command line utility using the appropriate settings.
@REM 
@REM Note that this file is generated every time a new debug session
@REM is initialized, so you may want to move or rename the file before
@REM making changes.
@REM 
@REM You can launch cspybat by typing the name of this batch file followed
@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
@REM 
@REM Read about available command line parameters in the C-SPY Debugging
@REM Guide. Hints about additional command line parameters that may be
@REM useful in specific cases:
@REM 
@REM   --download_only   Downloads a code image without starting a debug
@REM                     session afterwards.
@REM   --silent          Omits the sign-on message.
@REM   --timeout         Limits the maximum allowed execution time.
@REM 

"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\common\bin\CSpyBat.exe" ^
   "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\armPROC.dll.dll" ^
   "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\armjlink2.dll.dll" ^
   "%1" ^
   --plugin ^
   "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\common\plugins\CodeCoverage\CodeCoverage.dll" ^
   --plugin ^
   "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\armbat.dll" ^
   --backend ^
   -B ^
   --endian=little ^
   --cpu=Cortex-M4 ^
   --fpu=VFPv4_SP ^
   -p ^
   $TOOLKIT_DIR$\CONFIG\debugger\NordicSemi\nRF52840_xxAA.ddf ^
   --drv_verify_download ^
   --semihosting ^
   --device=nRF52840_xxAA ^
   --drv_communication=USB0 ^
   --drv_interface_speed=auto ^
   --jlink_initial_speed=1000 ^
   --jlink_reset_strategy=0,0 ^
   --drv_interface=SWD ^
   --drv_swo_clock_setup=120000000,0,16000000 ^
   --board_file=$TOOLKIT_DIR$\config\flashloader\NordicSemi\nrf52840_xxaa.board ^
