cancel
Showing results for 
Search instead for 
Did you mean: 

ARM library error in arm keil need guidance in adding library issues during compilation of below code

ATama.1
Associate II

Hey I'm trying arm keil to run my code but I'm facing an error.

here is files link https://drive.google.com/open?id=1XFlZseg42zr7erE-cU_o2zDSs3MlGWXf&authuser=ashutamar0%40gmail.com&usp=drive_fs

here is an error 

*** Using Compiler 'V6.18', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'

../USER/main.c(15): warning: In file included from...

../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x\stm32f10x.h(461): warning: In file included from...

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1204): error: unknown type name 'inline'

static __INLINE void __enable_irq()        { __ASM volatile ("cpsie i"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1205): error: unknown type name 'inline'

static __INLINE void __disable_irq()       { __ASM volatile ("cpsid i"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1207): error: unknown type name 'inline'

static __INLINE void __enable_fault_irq()     { __ASM volatile ("cpsie f"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1208): error: unknown type name 'inline'

static __INLINE void __disable_fault_irq()    { __ASM volatile ("cpsid f"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1210): error: unknown type name 'inline'

static __INLINE void __NOP()           { __ASM volatile ("nop"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1211): error: unknown type name 'inline'

static __INLINE void __WFI()           { __ASM volatile ("wfi"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1212): error: unknown type name 'inline'

static __INLINE void __WFE()           { __ASM volatile ("wfe"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1213): error: unknown type name 'inline'

static __INLINE void __SEV()           { __ASM volatile ("sev"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1214): error: unknown type name 'inline'

static __INLINE void __ISB()           { __ASM volatile ("isb"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1215): error: unknown type name 'inline'

static __INLINE void __DSB()           { __ASM volatile ("dsb"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1216): error: unknown type name 'inline'

static __INLINE void __DMB()           { __ASM volatile ("dmb"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1217): error: unknown type name 'inline'

static __INLINE void __CLREX()          { __ASM volatile ("clrex"); }

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1468): error: unknown type name 'inline'

static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)

    ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(751): note: expanded from macro '__INLINE'

 #define __INLINE     inline                   /*!< inline keyword for GNU Compiler    */

              ^

../Libraries/CMSIS/CM3/CoreSupport\core_cm3.h(1489): error: unknown type name 'inline'

static __INLINE uint32_t NVIC_GetPriorityGrouping(void)

    ^

3 REPLIES 3

Doesn't seem to be picking up the V6 compiler.

Under the C/C++ settings pick the V5 compiler.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hey Thanks but I'm getting this error now

Tool: ArmCC [4d365d]

compiling list.c...

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]

compiling queue.c...

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]

compiling tasks.c...

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]

compiling port.c...

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]

compiling heap_2.c...

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]

".\Obj\Project.axf" - 35 Error(s), 0 Warning(s).

Target not created.

Build Time Elapsed: 00:00:01

So a licensing issue with the Keil tools, and the use of an old version of CMSIS libraries that predated, and doesn't recognize, the version 6 compiler.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..