PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   Cơ bản về vi điều khiển và PIC (http://www.picvietnam.com/forum/forumdisplay.php?f=8)
-   -   Errors (http://www.picvietnam.com/forum/showthread.php?t=1294)

Dolphin 16-07-2007 04:38 PM

Errors
 
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:
Code:

            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:
Code:

        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



Múi giờ GMT. Hiện tại là 07:52 PM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam