I was getting out of memory errors using Hi-Tech PICC-18 with an 18F452 at around 50% ROM usage. Hi-Tech support told me it was due to a bug in the silicon and the fix was to split my program into multiple files which could be linked separately. No further problems since doing this. Regards, Nigel Carl Denk wrote: > > Thanks for the reply. From MPLAB >view > memory useage gauge > program > memory 2259/4096 and data memory 155/256 if those are the correct place > to look, should be lots to go. The normal output of this is via > "putcUSART" in a loop. I'm trying to use the printf a minimum work to > output 6 integer variables to scale/calibrate the ADC. > > Harold Hallikainen wrote: > >> How's your overall rom usage? I get these errors when stuff gets tight. >> The linker just goes along stuffing stuff in rom until it runs out of >> room, which appears to have happened with the printf code. >> >> Harold >> >> >> -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist