I am by no means an 18F expert, but the 452 linker script has a program memory segment that is 29 locations long, followed by another segment starting at 2a. The code is 46 long so it won't fit. Since you are using the linker, you don't want to be using org. Use code instead. So, to break your goto Main apart from the rest of your code, the following should work: Start code 0x0000 ; Any old name will apparently work here goto Main code Main: etc. The goto will still be loaded into 0x0000, but Main will end up after 0x2a, and in fact, after .cinit (assuming you are using the default linker script), so when I ran a quick test, Main ended up at 002c. The CBLOCK code is fine if your point is to specifcally access location 0x0000. Normally, you would allocate space for a variable with udata EXAMPLE res 1 but this would cause the variable to be located in the gpr0 bank instead of the accessram. --McD ----- Original Message ----- From: "Bob J" To: "Microcontroller discussion list - Public." Sent: Wednesday, February 09, 2005 4:47 PM Subject: Re: [PIC] A/D Issues > The CBLOCK 0x0000 statement is not correct. Try CBLOCK 0x20 if you > want to go that route, or better yet use the linker and an > uninitialized data section (udata) and res, let the linker figure out > the starting address: > > udata > example res 1 > > Regards, > Bob > > > On Wed, 9 Feb 2005 22:02:19 +0100 (MET), Jan-Erik Soderholm > wrote: > > Ale[x] Garbino wrote : > > > > > I'm getting the following error: > > > > > > MPLINK 3.90, Linker > > > Copyright (c) 2004 Microchip Technology Inc. > > > Error - section '.org_0' can not fit the absolute section. > > .... > > .... > > > > > ORG 0x0000 > > > > I'm not 100% sure, but try with "CODE 0x0000" instead > > > > (Now, since you are linking relocatable code, you could/should > > also read-up on the use of "RES" instead of "CBLOCK", but I > > don't think that's the problem...) > > > > Jan-Erik. > > > > > > -- > > 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 > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist