Đúng là PutEP1 em dùng ở 'aMain.asm', PUTEP1 là một macro được khai báo như sau (marco viết trong file 'def.inc')
PUTEP1 macro
PutEP1
global PutEP1
...
return
endm
có một cái macro PUTEP2 cũng được khai báo tương tự như PUTEP1 ở trên và cũng nằm trong file 'def.inc'
PUTEP2 macro
PutEP2
global PutEP2
...
return
endm
Trong file 'aMain.asm' có khai báo
#include "def.inc"
extern PutEP1
extern PutEP2
Và lạ ở một điều nữa là em không sửa gì cái project đó cả mà chỉ buld all lại một lần nữa thì nó báo lỗi sau
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" "E:\Output files for pic\NTDV\16c765.lkr" "E:\Output files for pic\NTDV\aMain.o" "E:\Output files for pic\NTDV\bdescript.o" "E:\Output files for pic\NTDV\chidclass.o" "E:\Output files for pic\NTDV\dusb_ch9.o" /o"RCMF.cof" /M"RCMF.map"
MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'PutEP2' in file 'E:\Output files for pic\NTDV\aMain.o'.
Errors : 1
Không biết có phải do MLAB IDE hay Mplink có vấn đề hay không
thay đổi nội dung bởi: Ngoc Du, 18-07-2006 lúc 05:31 AM.
|