Isaac Marino Bavaresco wrote: > The problem may be with your linker script. > The original linker scrips declare the RAM memory as being split into > 256 bytes data banks. You say that like it's a bad thing, when it is exactly what the linker script should do since that's how the PIC workds. > If any data section grows larger than 256 bytes > then it won't fit into any declared data bank. > You may modify the linker script to join some data banks (bring up > some problems though) Yes, it can definitely bring up some problems. In other words, anyone that doesn't understand the potential problems shouldn't be doing this. Furthermore, I think it's irresponsible to suggest this solution without explaining what the problems are or how to avoid them. > or declare some variables in a new source file, > because the C18 will put them in a different data section. Putting them in a different module just to put the in a different section is downright silly. Just specify a different section explicitly. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist