On Nov 21, 2011, at 3:05 AM, Chris Roper wrote: > uart_interrupt.c:174:1: error: Vector number must be an integer between 0= and 63 >=20 > with this code snippet: >=20 > void __ISR(_UART4_VECTOR, ipl2) IntUart2Handler(void) Hmm. I installed MPLAB X on my Mac (including pic32-gcc 2.01), and there i= s no symbol _UART4_VECTOR defined anywhere that I can see. There *is* a _UART_4_VECTOR off in p32mx695f512l.h And there are _UART1_VECTOR and _UART2_VECTOR in ppic32mx.h: #define _UART1_VECTOR _UART_1_VECTOR #define _UART2_VECTOR _UART_2_VECTOR (what, won't your windows system do a quick content search of your entire d= isk, like the Mac's "spotlight" feature? PShaw!) There are also a bunch of other _UART4_xxx_IRQ defines that appear to be IR= Q numbers rather than vector numbers, and have values exceeding 63. Why th= e inconsistency? I dunno! (cursed HW companies trying to write software!) So, try: > void __ISR(_UART_4_VECTOR, ipl2) IntUart4Handler(void) BillW --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .