PDA

View Full Version : Errors


Dolphin
16-07-2007, 04:38 PM
2 lỗi này sửa thế nào vậy?
+ Error - section '.config' type is non-overlay and absolute but occurs in more than one input file.
+ Error - section '.org_0' can not fit the absolute section. Section '.org_0' start=0x00000000, length=0x00000028

falleaf
16-07-2007, 06:29 PM
Bạn viết code như thế nào, bạn post lên luôn, post cái đoạn phần config cho tới đoạn nhảy vào main.

Chúc vui

Dolphin
16-07-2007, 11:22 PM
Mình post 2 đoạn code có lỗi đây:
+ Cái này cho lỗi thứ 2:
PROCESSOR PIC16f877A
include <p16f877A.inc>


__CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF

;---------------------------------------------------------------------------
count1 equ 0x20
counta equ 0x21
countb equ 0x22

;---------------------------------------------------------------------------

ORG 0
GOTO start
;---------------------------------------------------------------------------
start
;-------------------------------------------------------------------------
+ Đây là lỗi thứ 1:
PROCESSOR PIC16f877A ; list directive to define processor
include <p16f877A.inc> ; processor specific variable definitions


__CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF

;---------------------------------------------------------------------------

ORG 0X000
GOTO start

;--------------------------------------------------------------------------
count2 res 1
count1 res 1
counta res 1
countb res 1

;--------------------------------------------------------------------------
start