Keil Logo

ARMCC: Error: C9555E with FlexNet Licensing error:-140,148


Information in this knowledgebase article applies to:

  • MDK v5.24 and newer versions
  • ARMCC compiler toolchain v5.06u5 and newer
  • ARMCLANG compiler toolchain v6.7 and newer
  • Flexnet floating license

SYMPTOM

After updating to MDK version 5.24, or DS-MDK version 5.27 compiling a project fails. The FlexNet license server reports the following licensing error messages:

When using Arm compiler version 5.06u5:

compiling MySourceFile.c...
Error: C9555E: Failed to check out a license.Bad message command.
Feature:       mdk_pro_compiler5
License path:  8224@MyFlexLicenseServer;
FlexNet Licensing error:-140,148
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 http://www.keil.com/support/man/docs/license/license_management.htm
 If you need further help, provide this complete error report to your supplier or license.support@arm.com.
 - ARMLMD_LICENSE_FILE: '8224@FlexLicenseServer'
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: C:\Keil_v5\ARM\sw\mappings
 - Toolchain location: C:\Keil_v5\ARM\ARMCC\Bin
 - Selected tool variant: mdk_pro_flex
 - Checkout feature: mdk_pro_compiler5
 - Feature version: 5.0201701
 - Flex error code: -140
Product: MDK Professional 5.24 (Flex)
Component: ARM Compiler 5.06 update 5 (build 528)
Tool: ArmCC [4d3621]

(Alternative licensing error codes could be A9555E, L9555E, or Q9555E)

When using ArmM compiler version 6.7:

compiling Blinky.c...
ArmClang.exe: error: Failed to check out a license.Bad message command.
Feature:       mdk_pro_compiler5
License path:  8224@MyFlexLicenseServer;
FlexNet Licensing error:-140,148
ArmClang.exe: note: Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 http://www.keil.com/support/man/docs/license/license_management.htm
 If you need further help, provide this complete error report to your supplier or license.support@arm.com.
 - ARMLMD_LICENSE_FILE: '8224@MyFlexLicenseServer'
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: C:\Keil_v5\ARM\sw\mappings
 - Toolchain location: C:\Keil_v5\ARM\ARMCLANG\Bin
 - Selected tool variant: mdk_pro_flex
ArmClang.exe: note:  - Checkout feature: mdk_pro_compiler5
 - Feature version: 5.0201703
 - Flex error code: -140
Product: MDK Professional 5.24 (Flex)
Component: ARM Compiler 6.7
Tool: armclang [5c9efc00]

Other variants of license error messages are:

  • Failed to check out a license.Bad message command.
  • Failed to check out a license.Version of vendor daemon is too old.
  • Flex error code: -83.
  • Flex error code: -140.

CAUSE

The Arm compiler version 5.06u5 (and later) as well as the Arm compiler version 6.7 (and later) absolutely need FlexNet license server version 11.14.1.0 or later. This was already announced in the ReleaseNotes of MDK 5.23.Using older versions of FlexNet (formerly called FlexLM) causes licensing errors.

RESOLUTION

Resolve this issue by:

  • Check the FlexNet licensing server version
  • Verify the license server is running
  • Update the FlexNet license server

Note: FlexNet version 11.14.1.0 or later is required for:

FlexNet version 11.14.1.0 and later remain backwards-compatible with older versions of MDK and Arm Compiler

CHECK THE LICENSING SERVER

There are 3 main ways to verify server information:

  1. Ask your license administrator
  2. Use the lmutil command line tool found at C:\Keil_v5\UV4\FlexNet\lmutil.exe . The invocation syntax is:
    lmutil lmstat -c Port@LicenseServer
    
    The example below shows a server version 11.12.1, which is too old:
    C:\Keil\UV4\FlexNet>lmutil lmstat -c 8224@MyFlexLicenseServer
    lmutil - Copyright (c) 1989-2016 Flexera Software LLC. All Rights Reserved.
    Flexible License Manager status on Tue 5/9/2017 17:41
    
    [Detecting lmgrd processes...]
    License server status: 8224@MyFlexLicenseServer
        License file(s) on MyFlexLicenseServer: C:\Flex-Server\license_valid.dat:
    
       MyFlexLicenseServer: license server UP (MASTER) v11.12.1
    
    Vendor daemon status (on MyFlexLicenseServer):
    
        armlmd: UP v11.12.1
    
  3. Use the lmtools.exe GUI tool (Windows only)
    You can find this tool in the MDK directory ..\Keil_v5\UV4\FlexNet. Start it with a double click and select the items marked in red.

    Then select the tab Server Status and press the button Perform Status Enquiry. You will see the same output as with the commandline tool lmutil lmstat above.

UPDATE THE FLEXNET LICENSE SERVER

If the FlexNet version is older than 11.14.0.1, perform these steps for a smooth update:

MORE INFORMATION

SEE ALSO

Last Reviewed: Tuesday, January 12, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.