Hi All,
I am trying to use my SAMD21 Xplained Pro with Keil uVision, but I am getting the following errors (see screen shot). I've tried everything I can think of to no avail. Am I missing something?
I've just tried the same with MSP432 and also get errors. I'm following the instructions in http://www.microdigitaled.com/ARM/MSP432_ARM/Tutorial/Keil%20C%20project%20tutorial%20v8.pdf
Build started: Project: test3*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'Build target 'Target 1'main.c(5): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include\msp.h(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp432p401r.h(235): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include\core_cm4.h(162): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_compiler.h(47): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_armclang.h(33): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_compat.h(7): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: too many arguments provided to function-like macro invocationstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp_compatibility.h(144): note: macro '__wfi' defined here#define __wfi() __asm(" wfi") ^main.c(5): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include\msp.h(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp432p401r.h(235): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include\core_cm4.h(162): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_compiler.h(47): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_armclang.h(33): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_compat.h(7): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: 'inline' can only appear on functionsstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: variable has incomplete type 'void'static __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: expected ';' after top level declaratorstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(351): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sxtab16(int16x2_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(355): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sxtb16(int8x4_t __a) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(359): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__uxtab16(int16x2_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(363): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__uxtb16(int8x4_t __a) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(378): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(379): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(379): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(382): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(383): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qsub8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(383): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qsub8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(386): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(387): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(387): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(390): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(391): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__shadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^fatal error: too many errors emitted, stopping now [-ferror-limit=]20 errors generated.compiling main.c...RTE/Device/MSP432P401R/system_msp432p401r.c(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include\msp.h(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp432p401r.h(235): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include\core_cm4.h(162): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_compiler.h(47): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_armclang.h(33): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_compat.h(7): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: too many arguments provided to function-like macro invocationstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp_compatibility.h(144): note: macro '__wfi' defined here#define __wfi() __asm(" wfi") ^RTE/Device/MSP432P401R/system_msp432p401r.c(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include\msp.h(46): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/TexasInstruments/MSP432P4xx_DFP/3.2.6/Device/Include/msp432p401r.h(235): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include\core_cm4.h(162): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_compiler.h(47): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/ARM/CMSIS/5.7.0/CMSIS/Core/Include/cmsis_armclang.h(33): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_compat.h(7): warning: In file included from...C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: 'inline' can only appear on functionsstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: variable has incomplete type 'void'static __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(39): error: expected ';' after top level declaratorstatic __inline__ void __attribute__((__always_inline__, __nodebug__)) __wfi(void) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(351): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sxtab16(int16x2_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(355): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sxtb16(int8x4_t __a) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(359): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__uxtab16(int16x2_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(363): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__uxtb16(int8x4_t __a) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(378): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(379): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(379): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(382): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(383): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qsub8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(383): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__qsub8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(386): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(387): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(387): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__sadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(390): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?static __inline__ int8x4_t __attribute__((__always_inline__, __nodebug__)) ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(391): error: unknown type name 'int8x4_t'; did you mean 'uint8x4_t'?__shadd8(int8x4_t __a, int8x4_t __b) { ^C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\arm_acle.h(347): note: 'uint8x4_t' declared heretypedef uint32_t uint8x4_t; ^fatal error: too many errors emitted, stopping now [-ferror-limit=]20 errors generated.compiling system_msp432p401r.c...".\Objects\test3.axf" - 38 Error(s), 0 Warning(s).Target not created.Build Time Elapsed: 00:00:01
Build started: Project: blinky*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'Build target 'Target 1'blinky.c(4): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include\sam.h(36): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include/samd21j18a.h(258): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include/component/sercom.h(1721): warning: padding size of 'sercom_i2cm_registers_t' with 3 bytes to alignment boundary [-Wpadded]typedef struct ^blinky.c(9): error: use of undeclared identifier 'REG_PORT_DIR1'REG_PORT_DIR1 |= 0x40000000; /* make PB30 output */^blinky.c(12): error: use of undeclared identifier 'REG_PORT_OUT1'REG_PORT_OUT1 &= ~0x40000000; /* turn on LED0 */^blinky.c(14): error: use of undeclared identifier 'REG_PORT_OUT1'REG_PORT_OUT1 |= 0x40000000; /* turn off LED0 */^1 warning and 3 errors generated.compiling blinky.c...".\Objects\blinky.axf" - 3 Error(s), 1 Warning(s).Target not created.Build Time Elapsed: 00:00:00
Cross-Post: https://community.atmel.com/forum/keil-ide