Ðề tài: Pvn Tiny Bootloader
View Single Post
Old 15-06-2012, 12:44 AM   #51
elvies
Nhập môn đệ tử
 
Tham gia ngày: Oct 2010
Bài gửi: 4
:
Xin thầy Nam vui lòng xem qua và trợ giúp phần biên dịch bootloader cho pic18f4520

Xin thầy Nam vui lòng xem qua phần lỗi này dùm em, em thường sử dụng ccsc để lập trình nên em không nắm rõ được các thanh ghi và nội dung đoạn code trong file TinyB18F của thầy, tuy nhiên em cũng đọc được các hướng dẫn ngay trong đoạn code và làm theo, tuy nhiên khi biên dịch thì lại xảy ra lỗi bên dưới. Em đã copy toàn bộ các file header vào cùng thư mục của file ".asm". Em cũng đã kiểm tra file nguồn đúng chuẩn windows(em sử dụng folder thầy gửi sau này và đã mở bằng notepad).
----------------------------------------------------------------------
Debug build of project `D:\picsource\new\Pic18f4520_20MHz_38400bps.mcp' started.
Language tool versions: MPASMWIN.exe v5.45, mplink.exe v4.43, mplib.exe v4.43
Preprocessor symbol `__DEBUG' is defined.
Thu Jun 14 23:11:23 2012
----------------------------------------------------------------------
Make: The target "D:\picsource\other\TinyB18F\TinyB18F.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4520 "TinyB18F.asm" /l"TinyB18F.lst" /e"TinyB18F.err" /d__DEBUG=1
Error[176] D:\PICSOURCE\OTHER\TINYB18F\TINYB18F.ASM 35 : CONFIG Directive Error: (setting "OSCSError[176] D:\PICSOURCE\OTHER\TINYB18F\TINYB18F.ASM 57 : CONFIG Directive Error: (setting "BORError[176] D:\PICSOURCE\OTHER\TINYB18F\TINYB18F.ASM 80 : CONFIG Directive Error: (setting "CCP2MUXError[176] D:\PICSOURCE\OTHER\TINYB18F\TINYB18F.ASM 99 : CONFIG Directive Error: (setting "STVRHalting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\picsource\new\Pic18f4520_20MHz_38400bps.mcp' failed.
Language tool versions: MPASMWIN.exe v5.45, mplink.exe v4.43, mplib.exe v4.43
Preprocessor symbol `__DEBUG' is defined.
Thu Jun 14 23:11:25 2012
----------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------------


----------------------------------------
Đoạn config sửa lại file TinyB18F.asm của thầy như sau:
----------------------------------------
radix DEC
LIST P=18F4520
xtal EQU 20000000
baud EQU 38400

#include "D:\picsource\new\icdpictypes.inc"
#include "D:\picsource\new\spbrgselect.inc"
#include "D:\picsource\new\bankswitch.inc"
#define first_address max_flash-200 ;100 words

CONFIG OSC = HS, OSCS = OFF
CONFIG PWRT = ON, BOR = ON, BORV = 27
CONFIG WDT = OFF, WDTPS = 128
CONFIG CCP2MUX = OFF
CONFIG STVR = ON, LVP = OFF, DEBUG = OFF
--------------------------------------------------------------
elvies vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn