1@ECHO OFF 2 3ECHO INFO: Setting up the environment for IAR... 4 5IF EXIST %AZRTOS_IAR_DIR% GOTO FOUND_IAR_DIR 6SET AZRTOS_IAR_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4_2" 7IF EXIST %AZRTOS_IAR_DIR% GOTO FOUND_IAR_DIR 8SET AZRTOS_IAR_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4" 9IF EXIST %AZRTOS_IAR_DIR% GOTO FOUND_IAR_DIR 10SET AZRTOS_IAR_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3" 11IF EXIST %AZRTOS_IAR_DIR% GOTO FOUND_IAR_DIR 12SET AZRTOS_IAR_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2" 13IF EXIST %AZRTOS_IAR_DIR% GOTO FOUND_IAR_DIR 14ECHO ERROR: IAR Embedded Workbench not found. 15EXIT /B 2 16:FOUND_IAR_DIR 17 18SET AZRTOS_IAR_BUILD=%AZRTOS_IAR_DIR%\common\bin\IarBuild.exe 19IF NOT EXIST %AZRTOS_IAR_BUILD% ( 20 ECHO ERROR: IarBuild.exe not found. 21 EXIT /B 2 22) ELSE ( 23 ECHO INFO: IarBuild.exe found at %AZRTOS_IAR_BUILD% 24) 25 26ECHO INFO: IAR environment setup completed successfully! 27