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.