www.gusucode.com > ArmCompilerSupportPackage > AC5_setup.m
function AC5_setup() % AC5 Toolchain directory path toolPath = getpref('ArmCompiler','AC5_Path'); % Transform path with spaces toolPath = RTW.transformPaths(toolPath, 'pathType','alternate'); % Form compatible path to gmake if ispc toolPath = strrep(toolPath, '\', '/'); end if isempty(toolPath) || ~isequal(exist(strrep(toolPath,'"',''), 'dir'),7) % must take out double quotes to have exist function work properly. Still need them for command line make file however. error('Preference AC5_Path not set or not a valid path. Please set the using the following command and set your <path> equal to the path to your bin directory for Arm Compiler 5: addpref(''ArmCompiler'',''AC5_Path'',fullfile(''C:\'',''"Program Files"'',''"DS-5 v5.28.0"'',''sw'',''ARMCompiler5.06u6'',''bin'')) ') else % set env for build script setenv('PATH_TO_AC5_BIN_DIR',toolPath); disp(['AC5_Path = ', toolPath]); end end