按照移远公司提供的文档来做DS-5的安装。
DS-5的安装文件,已经上传到网盘上,可以自由下载,包含DS-5安装包和对应的**。版本是:5.26.0
网盘地址:
DS-5: https://t00y.com/dir/25372526-39655010-62e3baDS-5: ctfile://xturlDWwNZ1MzBT0HZQMxB2QAblUxADQFJ1IoBjtaMgBkUWQBMwdiUjQGNQZkAiNRcw9sVzI
重点是需要做环境变量配置:
Path中添加armcc.exe的目录。在安装文件中找到armcc.exe所在的目录,默认安装话是:
C:\Program Files\DS-5 v5.26.0\sw\ARMCompiler5.06u4\bin
需要注意,是否path中还有其他armcc.exe的目录,如果有,则需要去掉,需要让该armcc.exe生效,避免冲突。
ARMLMD_LICENSE_FILE中添加license目录,默认安装话,目录是:
C:\Users\Administrator\AppData\Roaming\ARM\DS-5\licenses
起作用的是该目录下的:license.lic文件。
在cmd.exe中输入armcc,版本号一致,无error则表示成功。
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\Users\Administrator>armcc
Product: DS-5 Professional 5.26.0
Component: ARM Compiler 5.06 update 4 (build 422)
Tool: armcc [4d3604]
For Educational purposes only
Software supplied by: ARM LimitedUsage: armcc [options] file1 file2 ... filen
Main options:--arm Generate ARM code
--thumb Generate Thumb code
--c90 Switch to C mode (default for .c files)
--cpp Switch to C++ mode (default for .cpp files)
-O0 Minimum optimization
-O1 Restricted optimization for debugging
-O2 High optimization
-O3 Maximum optimization
-Ospace Optimize for codesize
-Otime Optimize for maximum performance
--cpu <cpu> Select CPU to generate code for
--cpu list Output a list of all the selectable CPUs
-o <file> Name the final output file of the compilation
-c Compile only, do not link
--asm Output assembly code as well as object code
-S Output assembly code instead of object code
--interleave Interleave source with disassembly (use with --asm or -S)
-E Preprocess the C source code only
-D<symbol> Define <symbol> on entry to the compiler
-g Generate tables for high-level debugging
-I<directory> Include <directory> on the #include search pathC:\Users\Administrator>