6 years, 10 months ago.

include error

I am getting the following error:

mbed/TARGET_LPC11U24/core_cm0.h(591): error: #13: expected a file name

  1. include MSIS_VECTAB_VIRTUAL_HEADER_FILE

and the linked code is:

  1. ifdef CMSIS_NVIC_VIRTUAL
  2. ifndef CMSIS_NVIC_VIRTUAL_HEADER_FILE
  3. define CMSIS_NVIC_VIRTUAL_HEADER_FILE "cmsis_nvic_virtual.h"
  4. endif
  5. include CMSIS_NVIC_VIRTUAL_HEADER_FILE
  6. else /*#define NVIC_SetPriorityGrouping NVIC_SetPriorityGrouping not available for Cortex-M0 */ /*#define NVIC_GetPriorityGrouping NVIC_GetPriorityGrouping not available for Cortex-M0 */
  7. define NVIC_EnableIRQ NVIC_EnableIRQ
  8. define NVIC_GetEnableIRQ NVIC_GetEnableIRQ
  9. define NVIC_DisableIRQ NVIC_DisableIRQ
  10. define NVIC_GetPendingIRQ NVIC_GetPendingIRQ
  11. define NVIC_SetPendingIRQ NVIC_SetPendingIRQ
  12. define NVIC_ClearPendingIRQ NVIC_ClearPendingIRQ /*#define NVIC_GetActive NVIC_GetActive not available for Cortex-M0 */
  13. define NVIC_SetPriority NVIC_SetPriority
  14. define NVIC_GetPriority NVIC_GetPriority
  15. define NVIC_SystemReset NVIC_SystemReset
  16. 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

6 years, 10 months ago.

Hey Bogdan,

I think line 1 should have a "C" before MSIS_

i.e.

#include CMSIS_VECTAB_VIRTUAL_HEADER_FILE