適用範囲
:
-
Keil MDK v5.12以降
-
Arm Compiler 5 (Armcc) 5.04u1 (build 49) 以降
-
Arm Compiler for Embedded (従来のArm Compiler 6) 6.01 以降
-
Arm Compiler for Embedded FuSa v6.16 以降
現象
以下の操作後、
-
Arm Compiler for Embedded FuSa v6.16.xをダウンロードおよびインストール
-
uVisionにコンパイラを登録
-
ビルドを実行
下に類似するようなエラーが表示されます。
ArmClang: error: Failed to check out a license.
The provided license does not enable these tools.
ArmClang: note: Information about this error is available at:
General licensing information is available at:
If you need further help, provide this complete error report to your supplier or license.support@arm.com.
ARMLMD_LICENSE_FILE: unset
LM_LICENSE_FILE: unset
ARM_PRODUCT_DEF: unset
ARM_PRODUCT_PATH: unset
ARM_TOOL_VARIANT: unset
Product location: C:¥Keil_v5¥ArmCompilerFuSa6.16.2¥sw¥mappings
Toolchain location: C:¥Keil_v5¥ArmCompilerFuSa6.16.2¥Bin
Selected tool variant: product
ArmClang: note: - Checkout feature: compiler_em616
またはArm Compiler 5登録時に以下のような類似するエラーが見られます:
Error: C9555E: Failed to check out a license.
The license file could not be found. Check that ARMLMD_LICENSE_FILE is set correctly.
ARMLMD_LICENSE_FILE is not set. You must set this to the path to your license.
Information about this error is available at: http://ds.arm.com/support/lic87/m1
General licensing information is available at: http://ds.arm.com/support/licensing/
If you need further help, provide this complete error report to your supplier or license.support@arm.com.
ARMLMD_LICENSE_FILE: unset
LM_LICENSE_FILE: unset
ARM_TOOL_VARIANT: unset
ARM_PRODUCT_PATH: unset
Product location: C:¥Program Files (x86)¥ARM_Compiler_5.06u7¥sw¥mappings
Toolchain location: C:¥Program Files (x86)¥ARM_Compiler_5.06u7¥Bin
Selected tool variant: product
Checkout feature: compiler5
Feature version: 5.0202006
Flex error code: -1
Product: ARM Compiler 5.06
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
原因
いずれのケースもArm CompilerがC:¥Keil_v5¥ARM¥ 以下の適切なフォルダにインストールされていません。
解決策[/b][/size]
以下の手順に従い、インストレーションフォルダを適切な場所に変更してください:
注意:
-
以下の手順では誤ってコンパイラをC:¥Keil_v5¥ のフォルダにインストールしたことを前提としています。
-
以下はArm Compiler v6.16.2 LTS をインストールした例となりますが、他の32-bit Windows版のコンパイラを間違ったフォルダにインストールした場合も以下の方法を適用できます。
-
uVision上で、
Project
→
Manage
→
Project Items
のメニューを選択します。
-
Folders/Extensions
タブをクリックし、
Use ARM Compiler
の箇所で"..." ボタンをクリックします。
-
新しく登録したコンパイラを選択します。例:Arm Compiler v6.16.2 (FuSa)
-
Remove selected ARM Compiler Version from the list
をクリックし、
Close
、
OK
の順にボタンをクリックします。
-
Windowsで、C:¥Keil_v5¥ にインストールしたコンパイラのフォルダを C:¥Keil_v5¥ARM のフォルダ下に移動します。(コピーはしないでください)
-
uVision上で、
Project
→
Manage
→
Project Items
のメニューを選択します。
-
Folders/Extensions
タブをクリックし、
Use ARM Compiler
の箇所で"..." ボタンをクリックします。
-
Add another ARM Compiler Version to List
をクリックします。
-
コンパイラを移動したC:¥Keil_v5¥ARM のフォルダ下に移動し、
ArmCompilerFuSa6.16.2
フォルダを選択したあと、
OK
、
Close
、
OK
の順にボタンをクリックします。
-
プロジェクトで、
V6.16.2 (FuSa)
を選択し、OKをクリックします。
-
プロジェクトをリビルドします。
uVision上からコンパイラを使用したのではなく、コマンドラインからコンパイラを呼び出して同様のエラーが発生した場合も、上述にあるように追加したコンパイラのインストレーションフォルダをC:¥Keil_v5¥ARM のフォルダ下に移動することで対応可能です。