This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enable UART1 interrupts LPC1768

/* Enable UART1 interrupts. */ IN LPC1768 VICVectAddr14 = (U32)handler_UART1; VICVectCntl14 = 0x27; VICIntEnable = (1 << 7);

BUT ERROR:

Serial.c(62): error: #20: identifier "VICVectAddr14" is undefined
Serial.c(63): error: #20: identifier "VICVectCntl14" is undefined
Serial.c(64): error: #20: identifier "VICIntEnable" is undefined
Serial.c(78): error: #20: identifier "VICIntEnClr" is undefined
Serial.c(88): error: #20: identifier "VICIntEnable" is undefined
Serial.c(143): error: #20: identifier "VICVectAddr" is undefined

  • The compiler is unable to find and symbol with the names "VICVectAddr14", "VICVectCntl14", "VICIntEnable", ... i.e. these symbols are not defined (or declared) properly.

    Have you read the user-manual of LPC1768? LPC1768 has NVIC and not VIC.
    Also, the C software does not have access to NVIC.
    there are functions defined in the "core_cm3.h" that has functions defined to enable/disable the interrupts from NVIC (there are many more functions).

    Refer to example of LPC1768 which can be found out with the data accompanying your development board.