2006/4/8, Josh Koffman : > On 4/7/06, Olin Lathrop wrote: > > Josh Koffman wrote: > > > So, assuming I change my radix, would the code: > > > bank2 udata > > > BuffL res 255 > > > actually be correct? > > > > It could be. Whether it is or isn't depends on your intent and what's in > > the linker file. If you intend BUFFL to be in bank 2, then "bank2" must be > > defined as a section in the linker file and mapped to the memory region > > defined for bank 2. > > Ok, I'll double check my linker file. I'm using the default one (for > ICD) that comes with MPLINK. I'm away from my development computer > right now though. > > Am I using the correct syntax? > > Josh Hello Josh, If your intention is to allocate a chunk of RAM in a certain bank, then bank2 in "bank2 udata" must be defined in the linker script as a SECTION and this section has to refer to a valid RAM region. If you don't, like in the default linker script, where SECTION hasn't been defined, the ASM file will be assembled as well. BUT you cannot be sure where the address of the RAM has finally been allocated. The linker will put it anywhere in udata section where it deems fix. Well there are many udata there, bank0 ~ bank15 for 18F452 for example. Hope this helps. -- WH Tan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist