20楼#
发布于:2003-12-08 17:33
^_^,终于知道问题出在哪里了,在设置各个链接文件的目录环境时,应该在主菜单的project->fielextension的enviroment setup的inc folder选项中加入“c:\\Cypress\\USB\\Target\\Inc\\;C:\\Keil\\C51\\INC\\”,原因是来源文件或函数库文件是由Keil和Cypress所分别提供的,
可俺还不明白的是:到底包含了几个ezusb.h文件啊?一个还是两个,既然是分别提供的,那么应该是两个了?这两个ezusb.h文件之间的关系怎样啊? 为了解决这个疑问,我在Keil\\C51\\INC目录下查找ezusb.h和ezregs.h文件,可是没有啊!更困惑了! :(大家做驱动时都是怎样的? |
|
|
21楼#
发布于:2003-12-08 17:35
搜到了一个关于keilu vision编译器的使用方法的pdf文件,可惜不能保存。 [url]http://www.zlgmcu.com/tools/fangzhenqi/TKS-764/TKS_shiyongzhinan.pdf [/url]
|
|
|
22楼#
发布于:2003-12-08 17:57
^_^,终于知道问题出在哪里了,在设置各个链接文件的目录环境时,应该在主菜单的project->fielextension的enviroment setup的inc folder选项中加入“c:\\Cypress\\USB\\Target\\Inc\\;C:\\Keil\\C51\\INC\\”,原因是来源文件或函数库文件是由Keil和Cypress所分别提供的, 应该只有一个EZUSB.H啊,另一个是REG.H啊。 |
|
23楼#
发布于:2003-12-08 18:00
搜到了一个关于keilu vision编译器的使用方法的pdf文件,可惜不能保存。 [url]http://www.zlgmcu.com/tools/fangzhenqi/TKS-764/TKS_shiyongzhinan.pdf [/url] 你的链接直接另存为就可以啊,怎么不能保存呢? |
|
24楼#
发布于:2003-12-08 18:17
我在inc folder选项中去掉C:\\Keil\\C51\\INC\\,只用c:\\Cypress\\USB\\Target\\Inc\\也可以成功,目录C:\\Keil\\C51\\INC\\应该是默认的吧!你说的那个网站上的PDF可以保存.
还有你说的LIB文件,那些寄存器不是在EZUSB.H和EZRGS.H中定义的吗!我不知道库文件有什么作用? :D |
|
|
25楼#
发布于:2003-12-09 13:32
给你贴一段cy的回答,我想你应该知道怎么做吧,其实就是个路径而已!
Q16: What\'s all this set environment stuff? A16: If you install into the default directory, \"C:\\CYPRESS\\USB\" then you can build and debug examples with the Keil uV2 project files provided. Since the project files have hard-coded paths in them, installing to a different, non-default directory location will break these project files. Also, there are build.bat files for the projects in the Example folders. In order to run the build.bat files from the command line, you need to set some paths and environment variables, which can be done for you by running the batch file C:\\CYPRESS\\USB\\Bin\\setenv.bat prior to typing \"build\". Again, if the Dev Kit software or Keil tools are installed to a nondefault location, you would need to modify the setenv.bat file. The setenv.bat also has directions on how to create a Start menu option to open an MS-DOS window with the correct environment set up. |
|
上一页
下一页