Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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'
- define MBED_BARRIER() MBED_COMPILER_BARRIER() ^ mbed-os/platform/mbed_toolchain.h(190): note: expanded from macro 'MBED_COMPILER_BARRIER'
- 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(); ^