In #defines don't you have a "space" between LED4 and PORT? It is not in your mail, you need for the compiler to work properly. >>> I am working on pic32 and I noticed a problem turning LED on >>> when i am using LED4=3D1; it doesn't work when I program but it works when I debug >>> but when i use macro it works when i program. any idea? >>> >>> >>> #define LED4PORTGbits.RG12 // BGA C3 >>> #define LED5PORTGbits.RG14 // BGA C4 >>> --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .