Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what is this message in pic16F84

Status
Not open for further replies.

mr_anderson

Advanced Member level 4
Full Member level 1
Joined
Jan 23, 2007
Messages
100
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,298
Activity points
2,005
Error - section '.org_1' can not fit the absolute section. Section '.org_1' start=0x00000004, length=0x000000be
Errors : 1
 

I guess you are org off limit

It is better if you post the code.
 

I believe there's a section in your *.lkr file named org_1 which starts at 0x04 and extends to 0xbe. You have put a code that cannot fit in this area.

Check you linker file...try to increase that area or change your code (break into other section).

Ric
 

thank u but can u explain more i mean how to increase the area of the linker file and what is "org off limit can u explain more " thank u and here is the code

bsf STATUS , RP0
bsf TRISA , 0
bsf TRISA , 1
bsf TRISA , 2
bsf TRISA , 3
bsf TRISA , 4
clrf TRISB
bcf STATUS,RP0
movlw B'0111111'
movwf PORTB
clrf PORTA
call delay200
start call postA
nop
read1 movf PORTA,1
btfsc PORTA,2
goto ab
btfsc PORTA,4
goto abb
goto read1
ab call delay200
bcf PORTB,3
call tx
bsf PORTB,3
call postA
goto read1
abb call postB
nop
read2 movf PORTA,1
btfsc PORTA,3
goto ba
btfsc PORTA,4
goto bba
goto read2
ba call delay200
bcf PORTB,4
call tx
bsf PORTB,4
call postB
goto read2
bba goto start
postA bsf PORTB,7
nop
nop
bcf PORTB,5
call delay200
bsf PORTB,5
bcf PORTB,7
nop
nop
return
postB bsf PORTB,7
nop
nop
bcf PORTB,6
call delay200
bsf PORTB,6
bcf PORTB,7
nop
return
tx bsf PORTB,7
nop
bcf PORTB,0
call delay200
bsf PORTB,0
call delay200
bcf PORTB,1
call delay200
bsf PORTB,1
call delay200
bcf PORTB,2
call delay200
bsf PORTB,2
call delay200
bcf PORTB,7
return
delay200 movlw 0xFF
movwf delreg1
movwf 0xC
movwf count1
loop2 decfsz count1,1
goto loop1
goto exit
loop1 decfsz delreg1,1
goto loop1
goto loop2
exit return
END ; directive 'end of program'
 

mr_anderson said:
Error - section '.org_1' can not fit the absolute section. Section '.org_1' start=0x00000004, length=0x000000be
Errors : 1

Please refer to document DS33014 of Microchip (www.microchip.com) "MPASM Assembler, MPLINK Object Linker, MPLIB Object Librarian User's Guide" \ part 2 "MPLINK Object Linker" \ chapter 14 "Errors, Warnings and Common Problems" \ section 14.3 Linker Errors \ page 223 for the details of this error.

nguyennam

Added after 7 minutes:

mr_anderson said:
thank u but can u explain more i mean how to increase the area of the linker file and what is "org off limit can u explain more " thank u and here is the code

PROCESSOR 16F84
; LIST p=PIC16F84 , r=hex , f=INHX8M
#include "P16F84.inc"
__CONFIG_CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC

You can delete the sign ";" of "; LIST p=PIC16F84 , r=hex , f=INHX8M" and delete line "PROCESSOR 16F84" either.

nguyennam
 
u should start @ ORG 5 if no interrupts are used
 

thank u guys u helped me very much , i did as u told me i have changed the setting of the linker file as u told me itz working now thank u guys .
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top