Lee McLaren wrote : > I am writing a program in C18 for the 18F1320 and keep running out of > data memory, according to the "Memory Usage Gauge" in MPLAB 7.30 I am > only using 138 out of 256 but every time I try to increase > the size of a serial buffer I get:... It seems as the C18 stack is "eating" half of your mem : > SHAREBANKS: > > DATABANKS: > Memory Start End Section > --------- ------ --- --------- > gpr0 0x0080 0x00f3 .stack Maybe try to decrease the stack size (no idea how to do that). Or, of course, rewrite your app or use a processor with more RAM... Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist