昨天基本完成一个DEMO,今天整理一下,作个记录。www.yippeesoft.com
一、资源部分:www.yippeesoft.com
KEIL动态库VC6.0制作向导 http://www.vs51.com/ 作者:VS51COM Email:vs51com@163.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.yippeesoft.com
二、开始(大抵按照 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.yippeesoft.com
——————–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.yippeesoft.com
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.yippeesoft.com
Creating library Debug/shengfangagsi.lib and object Debug/shengfangagsi.exp
shengfangagsi.dll – 0 error(s), 0 warning(s)
历史博文
- 20081112 css form - 2009
- 20071022 bayes 垃圾邮件 becky - 2008
- 20070216 opennms install 3 - 2007
- 0316 OnDO SIP Server install - 2006
- Subversion Documentation翻译1目录 - 2005
- Keil uVision c51 agsi 插件DLL制作6 - 2005
- Keil uVision c51 agsi 插件DLL制作5 - 2005
- Keil uVision c51 agsi 插件DLL制作4 - 2005
- Keil uVision c51 agsi 插件DLL制作3 - 2005
- Keil uVision c51 agsi 插件DLL制作2 - 2005