6 years, 5 months ago.

MDK keil compile error

hello, export the example to kei from the online compile, there are some error:use of undeclared identifier 'asm‘. MDK version:V5.27, ARM compiler V 6.12 the build output just like below . thank you for your attention and reply.

mbed-os/platform/mbed_toolchain.h(224): note: expanded from macro 'MBED_BARRIER'

  1. define MBED_BARRIER() MBED_COMPILER_BARRIER() ^ mbed-os/platform/mbed_toolchain.h(190): note: expanded from macro 'MBED_COMPILER_BARRIER'
  2. define MBED_COMPILER_BARRIER() asm volatile("" : : : "memory") ^ mbed-os/rtos/TARGET_CORTEX/mbed_rtos_rtx.c(24): warning: In file included from... mbed-os/platform\mbed_critical.h(368): error: use of undeclared identifier 'asm' MBED_BARRIER(); ^
Be the first to answer this question.