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.
7 years, 4 months ago.
include error
I am getting the following error:
mbed/TARGET_LPC11U24/core_cm0.h(591): error: #13: expected a file name
- include MSIS_VECTAB_VIRTUAL_HEADER_FILE
and the linked code is:
- ifdef CMSIS_NVIC_VIRTUAL
- ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE
- define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h"
- endif
- include CMSIS_NVIC_VIRTUAL_HEADER_FILE
- else /*#define NVIC_SetPriorityGrouping NVIC_SetPriorityGrouping not available for Cortex-M0 */ /*#define NVIC_GetPriorityGrouping NVIC_GetPriorityGrouping not available for Cortex-M0 */
- define NVIC_EnableIRQ NVIC_EnableIRQ
- define NVIC_GetEnableIRQ NVIC_GetEnableIRQ
- define NVIC_DisableIRQ NVIC_DisableIRQ
- define NVIC_GetPendingIRQ NVIC_GetPendingIRQ
- define NVIC_SetPendingIRQ NVIC_SetPendingIRQ
- define NVIC_ClearPendingIRQ NVIC_ClearPendingIRQ /*#define NVIC_GetActive NVIC_GetActive not available for Cortex-M0 */
- define NVIC_SetPriority NVIC_SetPriority
- define NVIC_GetPriority NVIC_GetPriority
- define NVIC_SystemReset NVIC_SystemReset
- endif /* CMSIS_NVIC_VIRTUAL */
Does anyone know whee is it coming from? There is no error when I complie with the online compiler. The error come in the uVision5.
1 Answer
7 years, 4 months ago.
Hey Bogdan,
I think line 1 should have a "C" before MSIS_
i.e.
#include CMSIS_VECTAB_VIRTUAL_HEADER_FILE