Isaac Marino Bavaresco wrote: > Interesting, this is THE PICLIST and my PIC post didn't receive any > response yet, > I saw your post but didn't respond because: 1 - The obvious thing to do is to try it in a real chip. For some reason you didn't seem to do this and I didn't feel like writing a post "So try it in a real chip, duh.". 2 - I saw C code. I generally avoid helping people when they program in C because I don't want to spend time on possible compiler problems, and don't want to spend time on people that may not be interested in learning the low level details. I'm not saying you don't, but since the example is in C, the chances are greater. 3 - The error message was complaining about a "mode", which is probably the NVMCON opcode, but I didn't see you pay any attention to the information the system was already giving you or show us the NVMCON value. I didn't feel like playing 20 questions, and it seemed to me you were just throwing up your hands and calling for help before having exhausted reasonable means at your disposal to diagnose the problem. 4 - You didn't even say which line of code caused the error. That's a so blantantly obvious piece of important information that I felt your level of diagnostic skill was going to make getting into this too much trouble, with lots of back and forth just to get basic information you should have seen was necessary for yourself. So I hit delete and moved on. To all those that always say you shouldn't reply when you don't have anything useful to say, here is a example where I did exactly that. See what happens? The OP had no idea why nobody replied. To anyone who now feels the need to complain about this post: First, he asked. Second, I originally didn't respond and that didn't work. You can't have it both ways. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .