PIC Vietnam

Go Back   PIC Vietnam > Microchip PIC > Các ngôn ngữ lập trình khác (CCS C, HT PIC,...)

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Bài Trong Ngày Vi điều khiển

 
 
Ðiều Chỉnh Xếp Bài
Prev Previous Post   Next Post Next
Old 27-03-2010, 12:07 AM   #6
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
 


Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến


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


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam