Ðề tài: C18 và P18F458
View Single Post
Old 27-03-2010, 12:07 AM   #10
sit_alone76816
Đệ tử 2 túi
 
Tham gia ngày: Aug 2008
Bài gửi: 38
:
Cách Rebuild thư viện xlcd.h

Em có đọc 1 tài liệu trên trang này
http://www.electronicfr.com/index.ph...rograming.html

Em thấy có chỉ cách rebuild lại thư viện như sau:

How to rebuild the library
• - Create a folder where you while build the C18 library and into copy the header (\mcc18\h\xlcd.h) and any source files (from \mcc18\src\traditional\pmc\XLCD\*)
• - Start MPLAB with a new project
• - Choose a appropriate device
• - Onto menu "Project->Build Options...->Project", select Build library target radio button in MPASM/C17/C18/Suite tab
• - Add all the source code files and the header file to the project.
• - Modify the pin assignment in the xlcd.h file and then build the project
• - Copy the p18fxxx.lib file from \mcc18\lib folder to the project folder (where xxx is the device type)
• - Run this command in a 'cmd' terminal window: for %%i in (*.o) do mplib /r .\p18fxxx.lib %%i . The modified functions will be changed in the library
To use this library, then you can:
Open you main project
• Copy the modifyed header file xlcd.h and the library p18fxxx.lib into the project folder
• Use only local reference of xlcd.h :
#include ".\xlcd.h"
• Remove the reference to the library in the Linker Scripts
• Add the local copy of p18fxxx.lib to the project


Em đọc còn vấp váp, không hiểu lắm, đặc biệt là từ chỗ " Run this command in a 'cmd' terminal window: for %%i in (*.o) do mplib /r .\p18fxxx.lib %%i "

Vậy có anh chị nào biết cách làm,xin chỉ cho em từng bước để Rebuild lại .

Chân thành cảm ơn nhiều !
sit_alone76816 vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn