首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(2) | 引用(0) | 阅读3925次
Keil uVision c51 agsi 插件DLL制作1

昨天基本完成一个DEMO,今天整理一下,作个记录。www.shengfang.org

一、资源部分:www.shengfang.org

KEIL动态库VC6.0制作向导 http://www.vs51.com/  作者:VS51COM Email:vs51com at 163 dot com 

http://www.keil.com/appnotes/docs/apnt_154.asp 154: Implementing DLLs for User-defined Simulation (AGSI)
Application Note 154uVision
Implementing DLLs for User-defined Simulation (AGSI)
This application note shows how to create μVision DLLs for simulating user-defined hardware. This is useful for developers who wish to create high-performance simulation drivers for external hardware or for on-chip peripherals that are not directly supported by the Keil μVision Debugger. An example program that will help you get started is provided.
The 4nd Edition now includes information about the recent additions including extensions that are provided by Infineon.

Application Note
APNT_154.PDF (317,253 bytes) Wednesday, December 22, 2004
Example Code  APNT_154.ZIP (385,285 bytes)

同事TUBH的一些资料和代码、帮助www.shengfang.org

二、开始(大抵按照 KEIL动态库VC6.0制作向导,经过简化)

     运行 Microsoft Visual C++ 6.0,File-NEW-projects--MFC APPWIZARD(DLL),在project name处输入 shengfangagsi,点击 OK。

     MFC APPWIZARD-STEP1 OF 1 界面,选择:REGULAR DLL WITH MFC STATICALLY LINKED,点击FINISH,再点击下一个界面的确定。

    按下F7进行初步编译,应该:www.shengfang.org

--------------------Configuration: shengfangagsi - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
shengfangagsi.cpp
Linking...
   Creating library Debug/shengfangagsi.lib and object Debug/shengfangagsi.exp
shengfangagsi.dll - 0 error(s), 0 warning(s)

三、设置编译环境www.shengfang.org

     project-setting-DEBUG--EXECUTEABLE FOR DEBUG SESSION:输入 O:\Keil\UV3\Uv3.exe 这是一个DLL,指示运行调用程序;CUSTOM BUILD-commands:输入 copy $(InputPath) O:\Keil\C51\BIN\$(InputName).dll 这是指示编译完成后复制文件到C51目录。OUTPutS:输入 O:\Keil\C51\BIN\$(InputName).dll。(如果指定OUTPUT应该没有必要COPY了)

四、加入头文件 解压APNT_154.ZIP 获得STimerDLL.zip,再解压 找到 [hide] common.cpp,common.h,AGSI.h [/hide]复制到 M:\apnt_145\shengfangagsi,PROJECT-ADD TO PROJECTS,选择刚才的那三个文件,按下F7编译。

--------------------Configuration: shengfangagsi - Win32 Debug--------------------
Compiling...
common.cpp
Linking...www.shengfang.org
   Creating library Debug/shengfangagsi.lib and object Debug/shengfangagsi.exp
shengfangagsi.dll - 0 error(s), 0 warning(s)


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/keilagsi1.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1121823733

2005年7月20日09:42星期三  [Dev开发] 追踪此文的RSS
zouxianlu在 2006年8月31日08:11星期四 评论:
jkjkjkjk

chonggwx在 2006年6月18日16:40星期日 评论:
在第4步中加入的头文件APNT-154.ZIP是什么???
Yippee 回复于 2006年6月18日20:56
在KELI网站提供下载的。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1839
在线: 21||用户: 2576 [列表]
今日:2182||到访:2854036
Rss:885216||评论:1604

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8