Awesome. That was it - it works now. The .map file is showing the variables now in the ACCESS RAM. Obviously I am new and have not got a handle on all the nuances yet. I really appreciate your time John - this forum has really been helpful to me as I learn. If there was good tutorial on this kind of stuff(memory, etc) I would love to read it - sometimes I guess it's just common sense and trial and error. I suppose I can keep using access ram as I continue to develop the code - I just must keep an eye on the .map file and make sure it does not get too big. I gather it is also wise to put vars in the access ram that require fast manipulation because no bank switching is required. Thanks again for your help. Shawn -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of piclist@xargs.com Sent: Tuesday, March 01, 2005 6:46 PM To: Microcontroller discussion list - Public. Subject: RE: [PIC]Help with 18F4320 RAM memory allocation and usage On Tue, 1 Mar 2005, Leslie, Shawn J wrote: > I tried the following and got "Error [1303] 'near' symbol defined in > non-access qualified section" > > #pragma udata access accessram > > near volatile char Tmr1SecondsCount = 0; near volatile char > Tmr1MinutesCount = 0; near volatile char Tmr1HoursCount = 0; near > volatile char Tmr1DaysCount = 0; near volatile char Tmr1MonthsCount = > 0; near volatile char Tmr1YearsCount = 0; near volatile char > PresentRTC[6]; > > #pragma udata "udata" means "uninitialized data", and you're initializing those first six variables. I'm guessing this is the source of the error. Try putting them in the "idata" section. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist