"16F84.lnk" is an "linker script" What file are you talking about ?? Jan-Erik. Steve Smith skrev: > Jan-Erik = > = > Linker ??? its an include header file not a linker file = > = > Steve > = > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf = Of > Jan-Erik S=F6derholm > Sent: 13 November 2006 20:22 > To: Microcontroller discussion list - Public. > Subject: Re: [PIC]: Very New User Problem > = > Hi ! > = > First, please use your ENTER key now and then to enter line-breakes > at suitable intervalls to get a nice and readable text. > = > Now, > Since you're adding a LNK file, MPLAB/MPASM expects a source file > written using "relocatable code". You're code isn't. > First try to simply remove the LNK file from your project. > Or add the CODE and other stuff to your source to make > it a true reloctable source file. > = > Regards, > Jan-Erik. > = > PS. > Are you aure that you're not usinf the 16F84A processor ? > = > = > = > Dr. Ed Edmondson, PhD wrote : >> I am attempting to use the "PIC Elmer 160 Course" as referenced on the n= ew > user FAQ. My problem is every time I try to build the code I get an Error > 152 on lines 5 thru 9. Error 152 tells me: "Executable code and data must= be > defined in an appropriate section" = >> = >> I looked the error up in Chapter 8 of the Assembler,Linker/Librarian > User Guide and it tells me that "When generating an object file, all > executable code and data declarations must be placed within appopriate > sections". I am using MPLAB 7.43 (what I downloaded from the Microchip web > site) an installed it on my computer which runs Windows XP. I am using the > Microchip 16F84.lnk . = >> = >> The code is as follows: >> = >> 1. Processor 16F84 >> 2. include >> 3. __config _HS_OSC & _WDT_OFF & _PWRTE_ON >> 4. spot1 equ H'30' >> 5. movlw D'5' >> 6. movwf spot1 >> 7. clrw >> 8. clrf spot1 >> 9. nop >> 10. end >> = >> Please tell me what I am missing? I have been working on this problem > for several days now. >> = >> Thanks, Ed >> >> = >> --------------------------------- >> Want to start your own business? Learn how on Yahoo! Small Business. > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist