Keil MDK5 why I can not build simple LED blink demo?

Very disapointed with the software from first use, used microchip for last 5 years. Version 5.43

I have a target device MM32F003 and want to write same code for this device; cortex M0. From manufacturer website I saw it is suppoortel by arm Keil and IAR.
So First try with a Keil.

Pack installer gives me LED blink demo which I want to build, then later run.

With out of the box compiler, V6.24 I am getting 57 errors: first one is

C:/Users/Administrator/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include\cmsis_armclang.h(308): error: unknown type name 'inline'

My guess to modern compiler for such device, then I tried to install and build with compiler V5.06

5 errors after building:

Build target 'Target 1'
compiling led.c...
Error: C9555E: Failed to check out a license.

WTF ? MDK-Lite evaluation version out of the box in single user License tab active.

They do not allow to run simple code with blinking LED, joke. How they can invite new users or students to use their IDE ?

OK, maybe I want to much..I  made second try, the user-based license was activated

1st error after build:

*** Warning: The configured compiler version '5.06 update 7 (build 960)' does not support the selected User Based Licensing technology.

Build target 'Target 1'
compiling led.c...
Error: C9555E: Failed to check out a license.

Closed endless loop, either compiler to modern or licensing problem.

What a piece of shi., Anyone have idea how to build simple LED blink demo?

Parents
  • John

    I will first point you to the Arm Community Guidelines regarding use of this forum.
    Community Guidelines 

    The issue is not with the tools but rather this project, which uses an older version of CMSIS.

    If not installed (likely not if this is your first use), go to Arm Pack Manager, locate Arm::CMSIS, and expand down to locate version 5.9 (the latest 5.x version). Download and install.

    In your project, open the Manage Run-Time Environment view, and click Select Packs at the bottom.

    Deselect "Use latest versions of all installed Software Packs" and locate Arm::CMSIS.
    Select 5.9 (and deselect 6.2). Click OK.

    The project can now build with Arm Compiler 6.24.


    Rebuild started: Project: BLINK
    *** Using Compiler 'V6.24', folder: 'C:\Arm\Keil_v5\ARM\ARMCLANG\Bin'
    Rebuild target 'armclang'
    assembling startup_MM32F003.s...
    compiling system_MM32F003.c...
    compiling led.c...
    compiling test.c...
    linking...
    Program Size: Code=744 RO-data=196 RW-data=0 ZI-data=1120
    FromELF: creating hex file...
    "..\OBJ\test.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:00:01


    Regarding Arm Compiler 5, this is a very old toolchain, and is not supported any more by the Arm Community license.
    Usage requires purchase of a Professional Edition license.
    Also for completeness CMSIS 6.x does not support use of this compiler.

    However with the above CMSIS pack change, the project can also build without issue.

    Rebuild started: Project: BLINK
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Arm\Compilers\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'Target 1'
    assembling startup_MM32F003.s...
    compiling led.c...
    compiling test.c...
    compiling system_MM32F003.c...
    linking...
    Program Size: Code=904 RO-data=196 RW-data=0 ZI-data=1120
    FromELF: creating hex file...
    "..\OBJ\test.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:00:03

Reply
  • John

    I will first point you to the Arm Community Guidelines regarding use of this forum.
    Community Guidelines 

    The issue is not with the tools but rather this project, which uses an older version of CMSIS.

    If not installed (likely not if this is your first use), go to Arm Pack Manager, locate Arm::CMSIS, and expand down to locate version 5.9 (the latest 5.x version). Download and install.

    In your project, open the Manage Run-Time Environment view, and click Select Packs at the bottom.

    Deselect "Use latest versions of all installed Software Packs" and locate Arm::CMSIS.
    Select 5.9 (and deselect 6.2). Click OK.

    The project can now build with Arm Compiler 6.24.


    Rebuild started: Project: BLINK
    *** Using Compiler 'V6.24', folder: 'C:\Arm\Keil_v5\ARM\ARMCLANG\Bin'
    Rebuild target 'armclang'
    assembling startup_MM32F003.s...
    compiling system_MM32F003.c...
    compiling led.c...
    compiling test.c...
    linking...
    Program Size: Code=744 RO-data=196 RW-data=0 ZI-data=1120
    FromELF: creating hex file...
    "..\OBJ\test.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:00:01


    Regarding Arm Compiler 5, this is a very old toolchain, and is not supported any more by the Arm Community license.
    Usage requires purchase of a Professional Edition license.
    Also for completeness CMSIS 6.x does not support use of this compiler.

    However with the above CMSIS pack change, the project can also build without issue.

    Rebuild started: Project: BLINK
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Arm\Compilers\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'Target 1'
    assembling startup_MM32F003.s...
    compiling led.c...
    compiling test.c...
    compiling system_MM32F003.c...
    linking...
    Program Size: Code=904 RO-data=196 RW-data=0 ZI-data=1120
    FromELF: creating hex file...
    "..\OBJ\test.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:00:03

Children
No data