1@ECHO OFF 2 3ECHO INFO: Setting up the environment for ARM Compiler v5... 4 5IF EXIST "%AZRTOS_ARM_COMPILER_5_DIR%" GOTO FOUND_ARM_COMPILER_5 6 7SET "AZRTOS_ARM_COMPILER_5_DIR=%ProgramFiles%\Arm\Development Studio 2021.0\sw\ARMCompiler5.06u7\bin" 8IF EXIST "%AZRTOS_ARM_COMPILER_5_DIR%" ( 9 SET "PATH=%AZRTOS_ARM_COMPILER_5_DIR%;%PATH%" 10 IF "%ARMLMD_LICENSE_FILE%"=="" ( 11 SET "ARMLMD_LICENSE_FILE=%APPDATA%\arm\ds\licenses" 12 ) 13 SET "ARM_CONFIG_PATH=%APPDATA%\arm\ds\2021.0" 14 SET "ARM_PRODUCT_DEF=%ProgramFiles%\Arm\Development Studio 2021.0\sw\mappings\gold.elmap" 15 GOTO FOUND_ARM_COMPILER_5 16) 17 18SET "AZRTOS_ARM_COMPILER_5_DIR=%ProgramFiles%\Arm\Development Studio 2020.1\sw\ARMCompiler5.06u7\bin" 19IF EXIST "%AZRTOS_ARM_COMPILER_5_DIR%" ( 20 SET "PATH=%AZRTOS_ARM_COMPILER_5_DIR%;%PATH%" 21 IF "%ARMLMD_LICENSE_FILE%"=="" ( 22 SET "ARMLMD_LICENSE_FILE=%APPDATA%\arm\ds\licenses" 23 ) 24 SET "ARM_CONFIG_PATH=%APPDATA%\arm\ds\2020.1" 25 SET "ARM_PRODUCT_DEF=%ProgramFiles%\Arm\Development Studio 2020.1\sw\mappings\gold.elmap" 26 GOTO FOUND_ARM_COMPILER_5 27) 28 29SET "AZRTOS_ARM_COMPILER_5_DIR=%ProgramFiles%\Arm\Development Studio 2020.0\sw\ARMCompiler5.06u6\bin" 30IF EXIST "%AZRTOS_ARM_COMPILER_5_DIR%" ( 31 SET "PATH=%AZRTOS_ARM_COMPILER_5_DIR%;%PATH%" 32 IF "%ARMLMD_LICENSE_FILE%"=="" ( 33 SET "ARMLMD_LICENSE_FILE=%APPDATA%\arm\ds\licenses" 34 ) 35 SET "ARM_CONFIG_PATH=%APPDATA%\arm\ds\2020.0" 36 SET "ARM_PRODUCT_DEF=%ProgramFiles%\Arm\Development Studio 2020.0\sw\mappings\gold.elmap" 37 GOTO FOUND_ARM_COMPILER_5 38) 39 40SET "AZRTOS_ARM_COMPILER_5_DIR=%ProgramFiles%\DS-5 v5.29.3\sw\ARMCompiler5.06u6\bin" 41IF EXIST "%AZRTOS_ARM_COMPILER_5_DIR%" ( 42 SET "PATH=%AZRTOS_ARM_COMPILER_5_DIR%;%PATH%" 43 IF "%ARMLMD_LICENSE_FILE%"=="" ( 44 SET "ARMLMD_LICENSE_FILE=%APPDATA%\arm\ds\licenses" 45 ) 46 SET "ARM_CONFIG_PATH=%APPDATA%\ARM\DS-5_v5.29.3" 47 SET "ARM_PRODUCT_PATH=%ProgramFiles%\DS-5 v5.29.3\sw\mappings" 48 GOTO FOUND_ARM_COMPILER_5 49) 50 51ECHO ERROR: ARM Compiler v5 not found! 52EXIT /B 2 53 54:FOUND_ARM_COMPILER_5 55ECHO INFO: ARM Compiler v5 found in %AZRTOS_ARM_COMPILER_5_DIR% 56ECHO INFO: ARM Compiler v5 environmnet setup completed successfully! 57