Post Go back to editing

build issue, compiler issue, libraries

Category: Software
Product Number: ADUCM355
Software Version: MDK 540, Arm compiler version 6,

Hi, I am new to Analog devices and keil MDK IDE, using it for first time.

I am using EWAL - ADCM355QSPZ board I have Installled Keil MDK5.40 version and Installed required AnalogDevices.ADuCM355_DFP.1.0.4 software pack

When i build a example code of GPIO and I am getting this error

Rebuild started: Project: M355_GPIO
*** Using Compiler 'V6.22', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'ADuCM355'
compiling IntLib.c...
C:/Arm/Packs/AnalogDevices/ADuCM355_DFP/1.0.4/ADuCM355/common/ARM/retarget.c(15): error: '#pragma import' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-import]
15 | #pragma import(__use_no_semihosting_swi)
| ^
C:/Arm/Packs/AnalogDevices/ADuCM355_DFP/1.0.4/ADuCM355/common/ARM/retarget.c(17): error: redefinition of '__FILE'
17 | struct __FILE { int handle; /* Add whatever you need here */ };
| ^
C:\Keil_v5\ARM\ARMCLANG\bin\..\include\stdio.h(119): note: previous definition is here
119 | struct __FILE {
| ^
2 errors generated.
compiling retarget.c...
compiling CrcLib.c...
compiling ADuCM355Port.c...
compiling ClkLib.c...
compiling DioLib.c...
../M355_GPIO.c(54): warning: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat]
54 | printf("Button %ld pressed\r\n",ucButtonPress);
| ~~~ ^~~~~~~~~~~~~
| %u
../M355_GPIO.c(63): warning: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat]
63 | printf("%lx",ucUniqueID);
| ~~~ ^~~~~~~~~~
| %x
2 warnings generated.
compiling M355_GPIO.c...
assembling startup_ADuCM355.s...
startup_ADuCM355.s: Warning: A1950W: The legacy armasm assembler is deprecated. Consider using the armclang integrated assembler instead.
startup_ADuCM355.s: warning: RTE/Device/ADuCM355/startup_ADuCM355.s: 'assembler' input unused [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I .\RTE\Device\ADuCM355' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I .\RTE\_ADuCM355' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I C:\Arm\Packs\ARM\CMSIS\6.1.0\CMSIS\Core\Include' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I C:\Arm\Packs\AnalogDevices\ADuCM355_DFP\1.0.4\ADuCM355\common' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I C:\Arm\Packs\AnalogDevices\ADuCM355_DFP\1.0.4\ADuCM355\common\ad5940lib' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-I C:\Arm\Packs\AnalogDevices\ADuCM355_DFP\1.0.4\ADuCM355\inc' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-D __UVISION_VERSION=540' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-D _RTE_' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-U __STDC__' [-Wunused-command-line-argument]
startup_ADuCM355.s: warning: argument unused during compilation: '-D __ASSEMBLER__' [-Wunused-command-line-argument]
RTE/Device/ADuCM355/startup_ADuCM355.s(1): warning: A1313W: Missing END directive at end of file
compiling UrtLib.c...
compiling system_ADuCM355.c...
compiling ad5940.c...
".\Objects\M355_GPIO\M355_GPIO.axf" - 2 Error(s), 15 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03

it has mentioned in one of the above  line that "pragma import' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6"

So i tried installing Compiler 5.06 update 6 (build 750). Though it dint workout for me telling that unknown compiler

Please tell me if i am missing any configuration or steps while setting up which are not mentioned in guide.

I would be great if you help me as soon as possible.

Thanks in advance.

Thread Notes

  • Hi,

    We will contact the product owner and get back to you.

    Thanks,
    Janine

  • Hi  ,

    Can your team please help check this?

    Thanks,
    Janine

  • Hi,

    Please use V5.06 update 7. Also, note that this should be selected as the ARM compiler. See the image below.

    -Mark

  • Hi, Thanks for the reply,

    I have added the V5.06 update 7(build 960) compiler and selected the same from options->target  and build the target example code 

    Rebuild started: Project: M355_ECSns_CycloVoltammetry
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'ADuCM355'
    compiling ADuCM355Port.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\aducm355port.__i"'
    compiling AD5940Main.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\ad5940main.__i"'
    compiling retarget.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\retarget.__i"'
    compiling main.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\main.__i"'
    compiling Ramp.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\ramp.__i"'
    compiling DioLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\diolib.__i"'
    compiling ClkLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\clklib.__i"'
    compiling IntLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\intlib.__i"'
    linking...
    --- Error: failed to execute 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmLink'
    ".\Objects\M355_ECSns_CycloVoltammetry\M355_ECSns_CycloVoltammetry.axf" - 1 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:00

    after building when I go back to options->target tab I dont find the arm compilers list its all vanish and I have to reinstall whole again

  • Hi, Thanks for the reply,

    I have added the V5.06 update 7(build 960) compiler and selected the same from options->target  and build the target example code 

    Rebuild started: Project: M355_ECSns_CycloVoltammetry
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'ADuCM355'
    compiling ADuCM355Port.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\aducm355port.__i"'
    compiling AD5940Main.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\ad5940main.__i"'
    compiling retarget.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\retarget.__i"'
    compiling main.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\main.__i"'
    compiling Ramp.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\ramp.__i"'
    compiling DioLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\diolib.__i"'
    compiling ClkLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\clklib.__i"'
    compiling IntLib.c...
    *** Error: CreateProcess failed, Command: '"C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmCC" --via ".\objects\m355_ecsns_cyclovoltammetry\intlib.__i"'
    linking...
    --- Error: failed to execute 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\bin\ARM_Compiler_5.06u7\Bin\ArmLink'
    ".\Objects\M355_ECSns_CycloVoltammetry\M355_ECSns_CycloVoltammetry.axf" - 1 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:00

    after building when I go back to options->target tab I dont find the arm compilers list its all vanish and I have to reinstall whole again

  • Hi,

    I changed CMSIS version from 6.22 to 5.9 in packet manager and it got resolved.

    Thanks for you support and thanks for your quickest replies in the world