I can't build the demo under /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED without any error.
I first have this error:
Code: Select all
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-a5 -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -flto -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=build/lst/ -mno-thumb-interwork -MD -MP -MF .dep/build.d -I. -I. -I../../../os/license -I../../../os/common/portability/GCC -I../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2 -I../../../os/common/ext/ARM/CMSIS/Core_A/Include -I../../../os/common/portability/GCC -I../../../os/hal/include -I../../../os/hal/ports/SAMA/SAMA5D2x -I../../../os/hal/ports/SAMA/LLD/DMAv1 -I../../../os/hal/ports/SAMA/LLD/MACv1 -I../../../os/hal/ports/SAMA/LLD/PIOv1 -I../../../os/hal/ports/SAMA/LLD/SPIv1 -I../../../os/hal/ports/SAMA/LLD/RTCv1 -I../../../os/hal/ports/SAMA/LLD/USARTv1 -I../../../os/hal/ports/SAMA/LLD/CRYPTOv1 -I../../../os/hal/ports/SAMA/LLD/SDMMCv1 -I../../../os/hal/boards/ATSAMA5D2_XULT -I../../../os/hal/osal/rt -I../../../os/rt/include -I../../../os/lib/include -I../../../os/common/ports/ARMCAx-TZ -I../../../os/common/ports/ARMCAx-TZ/compilers/GCC -I../../../test/lib -I../../../test/rt/source/test -I../../../test/oslib/source/test main.c -o main.o
Compiling boot.S
Compiling vectors.S
Compiling crt0.S
Compiling chcoreasm.S
Compiling monitor.S
Compiling crt1.c
Compiling mmu.c
In file included from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_compiler.h:48:0,
from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/core_ca.h:108,
from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/ARMCA5.h:128,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/sama5d2x.h:35,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/armparams.h:74,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/mmu.c:33:
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__L1C_MaintainDCacheSetWay':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:859:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int way = num_ways-1; way >= 0; way--) {
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:859:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:860:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int set = num_sets-1; set >= 0; set--) {
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__L1C_CleanInvalidateCache':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:890:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(uint32_t i = 0; i<7; i++)
^
../../../os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk:235: recipe for target 'build/obj/mmu.o' failed
make: *** [build/obj/mmu.o] Error 1
to resolve that, I haded in the Makefile the standard c99 in line 8.
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -std=c99
But a now have other errors:
Code: Select all
Compiling boot.S
Compiling vectors.S
Compiling crt0.S
Compiling chcoreasm.S
Compiling monitor.S
Compiling crt1.c
Compiling mmu.c
In file included from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_compiler.h:48:0,
from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/core_ca.h:108,
from ../../../os/common/ext/ARM/CMSIS/Core_A/Include/ARMCA5.h:128,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/sama5d2x.h:35,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/armparams.h:74,
from ../../../os/common/startup/ARMCAx-TZ/devices/SAMA5D2/mmu.c:33:
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__enable_irq':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:109:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsie i" : : : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: note: each undeclared identifier is reported only once for each function it appears in
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:109:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsie i" : : : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:109:9: error: expected ';' before 'volatile'
__ASM volatile ("cpsie i" : : : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__disable_irq':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:119:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsid i" : : : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:119:9: error: expected ';' before 'volatile'
__ASM volatile ("cpsid i" : : : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__ISB':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:195:3: note: in expansion of macro '__ASM'
__ASM volatile ("isb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:195:9: error: expected ';' before 'volatile'
__ASM volatile ("isb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__DSB':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:206:3: note: in expansion of macro '__ASM'
__ASM volatile ("dsb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:206:9: error: expected ';' before 'volatile'
__ASM volatile ("dsb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__DMB':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:216:3: note: in expansion of macro '__ASM'
__ASM volatile ("dmb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:216:9: error: expected ';' before 'volatile'
__ASM volatile ("dmb 0xF":::"memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__REV16':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:246:3: note: in expansion of macro '__ASM'
__ASM volatile("rev16 %0, %1" : "=r" (result) : "r" (value));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:246:9: error: expected ';' before 'volatile'
__ASM volatile("rev16 %0, %1" : "=r" (result) : "r" (value));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__LDREXB':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:335:4: note: in expansion of macro '__ASM'
__ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:335:10: error: expected ';' before 'volatile'
__ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__LDREXH':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:357:4: note: in expansion of macro '__ASM'
__ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:357:10: error: expected ';' before 'volatile'
__ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__LDREXW':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:378:4: note: in expansion of macro '__ASM'
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:378:10: error: expected ';' before 'volatile'
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__STREXB':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:395:4: note: in expansion of macro '__ASM'
__ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:395:10: error: expected ';' before 'volatile'
__ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__STREXH':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:412:4: note: in expansion of macro '__ASM'
__ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:412:10: error: expected ';' before 'volatile'
__ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__STREXW':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:429:4: note: in expansion of macro '__ASM'
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:429:10: error: expected ';' before 'volatile'
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__CLREX':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:440:3: note: in expansion of macro '__ASM'
__ASM volatile ("clrex" ::: "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:440:9: error: expected ';' before 'volatile'
__ASM volatile ("clrex" ::: "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CPSR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:449:3: note: in expansion of macro '__ASM'
__ASM volatile("MRS %0, cpsr" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:449:9: error: expected ';' before 'volatile'
__ASM volatile("MRS %0, cpsr" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CPSR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:458:1: note: in expansion of macro '__ASM'
__ASM volatile ("MSR cpsr, %0" : : "r" (cpsr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:458:7: error: expected ';' before 'volatile'
__ASM volatile ("MSR cpsr, %0" : : "r" (cpsr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_mode':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:472:3: note: in expansion of macro '__ASM'
__ASM volatile("MSR cpsr_c, %0" : : "r" (mode) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:472:9: error: expected ';' before 'volatile'
__ASM volatile("MSR cpsr_c, %0" : : "r" (mode) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_SP':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:480:3: note: in expansion of macro '__ASM'
__ASM volatile("MOV sp, %0" : : "r" (stack) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:480:9: error: expected ';' before 'volatile'
__ASM volatile("MOV sp, %0" : : "r" (stack) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_SP_usr':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:488:3: note: in expansion of macro '__ASM'
__ASM volatile(
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:488:9: error: expected ';' before 'volatile'
__ASM volatile(
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_FPEXC':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:506:3: note: in expansion of macro '__ASM'
__ASM volatile("MRS %0, fpexc" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:506:9: error: expected ';' before 'volatile'
__ASM volatile("MRS %0, fpexc" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_FPEXC':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:519:3: note: in expansion of macro '__ASM'
__ASM volatile ("MSR fpexc, %0" : : "r" (fpexc) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:519:9: error: expected ';' before 'volatile'
__ASM volatile ("MSR fpexc, %0" : : "r" (fpexc) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_ACTLR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:529:3: note: in expansion of macro '__ASM'
__ASM volatile("MRS %0, actlr" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:529:9: error: expected ';' before 'volatile'
__ASM volatile("MRS %0, actlr" : "=r" (result) );
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_ACTLR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:538:3: note: in expansion of macro '__ASM'
__ASM volatile ("MSR fpexc, %0" : : "r" (actlr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:538:9: error: expected ';' before 'volatile'
__ASM volatile ("MSR fpexc, %0" : : "r" (actlr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CPACR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:546:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c1, c0, 2" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:546:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c1, c0, 2" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CPACR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:555:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c1, c0, 2" : : "r"(cpacr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:555:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c1, c0, 2" : : "r"(cpacr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CBAR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:565:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 4, %0, c15, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:565:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 4, %0, c15, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_TTBR0':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:579:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c2, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:579:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c2, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_TTBR0':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:590:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c2, c0, 0" : : "r"(ttbr0) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:590:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c2, c0, 0" : : "r"(ttbr0) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_DACR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:603:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c3, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:603:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c3, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_DACR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:614:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c3, c0, 0" : : "r"(dacr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:614:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c3, c0, 0" : : "r"(dacr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_SCTLR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:625:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c1, c0, 0" : : "r"(sctlr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:625:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c1, c0, 0" : : "r"(sctlr) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_SCTLR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:635:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c1, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:635:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c1, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_ACTRL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:644:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c1, c0, 1" : : "r"(actrl) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:644:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c1, c0, 1" : : "r"(actrl) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_ACTRL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:653:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c1, c0, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:653:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c1, c0, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_MPIDR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:666:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c0, c0, 5" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:666:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c0, c0, 5" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_VBAR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:679:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c12, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:679:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c12, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_VBAR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:691:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c12, c0, 1" : : "r"(vbar) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:691:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c12, c0, 1" : : "r"(vbar) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CNTFRQ':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:701:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c14, c0, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:701:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c14, c0, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CNTP_TVAL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:711:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c14, c2, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:711:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c14, c2, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CNTP_TVAL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:724:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c14, c2, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:724:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c14, c2, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CNTP_CTL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:735:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c14, c2, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:735:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c14, c2, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CNTP_CTL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:745:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 0, %0, c14, c2, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:745:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 0, %0, c14, c2, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_TLBIALL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:754:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c8, c7, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:754:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c8, c7, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_BPIALL':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:762:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c5, 6" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:762:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c5, 6" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_ICIALLU':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:770:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c5, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:770:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c5, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_DCCMVAC':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:778:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c10, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:778:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c10, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_DCIMVAC':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:786:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c6, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:786:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c6, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_DCCIMVAC':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:794:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c14, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:794:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c14, 1" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__set_CCSIDR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:801:3: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 2, %0, c0, c0, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:801:9: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 2, %0, c0, c0, 0" : : "r"(value) : "memory");
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CCSIDR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:811:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 1, %0, c0, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:811:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 1, %0, c0, c0, 0" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__get_CLIDR':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:822:3: note: in expansion of macro '__ASM'
__ASM volatile("MRC p15, 1, %0, c0, c0, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:822:9: error: expected ';' before 'volatile'
__ASM volatile("MRC p15, 1, %0, c0, c0, 1" : "=r"(result));
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__L1C_MaintainDCacheSetWay':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:865:11: note: in expansion of macro '__ASM'
__ASM volatile("MCR p15, 0, %0, c7, c6, 2" : : "r"(Dummy) : "memory"); // DCISW. Invalidate by Set/Way
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:865:17: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c6, 2" : : "r"(Dummy) : "memory"); // DCISW. Invalidate by Set/Way
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:869:17: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c10, 2" : : "r"(Dummy) : "memory"); // DCCSW. Clean by Set/Way
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:873:17: error: expected ';' before 'volatile'
__ASM volatile("MCR p15, 0, %0, c7, c14, 2" : : "r"(Dummy) : "memory"); // DCCISW. Clean and Invalidate by Set/Way
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h: In function '__FPU_Enable':
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:41:50: error: 'asm' undeclared (first use in this function)
#define __ASM asm
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:906:3: note: in expansion of macro '__ASM'
__ASM volatile(
^
../../../os/common/ext/ARM/CMSIS/Core_A/Include/cmsis_gcc.h:906:9: error: expected ';' before 'volatile'
__ASM volatile(
^
../../../os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk:235: recipe for target 'build/obj/mmu.o' failed
make: *** [build/obj/mmu.o] Error 1
To build, I use the trunk and I'm under linux.
My GCC version is: arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3
Maybe the Makefile is missing some feature and configuration to run under linux?