完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
最后,我想创建一个脚本文件…但是首先,我需要得到CySalm来下载我的HEX文件到我的设备(FX2)。不管我尝试了什么,我总是会有一个“下载失败”的错误。如果我选择“EZ USB接口”…在那个对话框中,我点击“下载”并指向我的十六进制文件…HEX文件加载和我的设备重置和重命名,因为它应该。此外,如果我使用CySCORE应用程序,在那个菜单上,我选择“程序FX2”并指向我的HEX文件…一切正常。但是,“记录”选项将不跟踪这些操作来创建一个脚本文件,它只会跟踪实际手动文件传输操作。我试过的每一个端点和配置,无论什么只要我选择“文件传输”将有一个很长的停顿,然后“传送失败”错误消息。我的十六进制文件的大小是8402字节。不知道我需要做什么来让我的HEX文件加载到我的设备通过传送文件的方法吗????非常感谢你的建议和建议。
以上来自于百度翻译 以下为原文 Ultimately I want to create a script file ... but first, I need to get CyConsole to actually download my hex file to my device (FX2). No matter what I have tried, I always get a "download failed" error. If I select the "EZ-U*** Interface" .... and on that dialog I click "Download" and point to my hex file .... the hex file loads and my device resets and renumerates as it should. Also, if I use the CyControl application, and on that menu I select "Program FX2" and point to my hex file .... everything works properly. But, the "Record" option will not track those operations to create a script file, it will only track actual manual File Transfer operations. I have tried every endpoint and configuration and no matter what whenever I select "File Transfer" there will be a long pause, and then "Transfer Failed" error message. My hex file is 8402 bytes in size. Any idea WHAT I need to do to get my hex file to load to my device through the File Transfer method???? Thanks much for any suggestions or advice. |
|
相关推荐
6个回答
|
|
可以。。。我犯了个愚蠢的错误…在进行文件传输之前,我需要将CPU放入重置模式。所以,现在我做一个0xA0 BREQUEST并发送一个0x01把CPU重置模式,然后当我做一个文件传输,并指向我的十六进制文件…文件已成功下载…然后我做的另一breguest 0xA0发送0x00作为CPU复位的…但是…我的代码仍然没有运行(我没有得到重新编号)。如果我选择“从EZUSB接口面板下载”,然后我看到了头去,然后我的文件发送,然后送我renumerates 0x00装置正确和一切工作。为什么我不能得到这个工作的时候我手动使用“传送文件”选项,而不是“下载”的选项吗????还有什么我需要说明的吗??顺便说一下,我在第一个帖子中说,我的HEX文件是8402字节,而令我惊奇的是,这部作品甚至与下载功能,我认为我是加载到车载设备RAM,我以为只是8K程序空间??
以上来自于百度翻译 以下为原文 Okay ... I was making a dumb mistake .... BEFORE doing the File Transfer I needed to put the cpu into reset mode. So, now I do a 0xA0 bRequest and send a 0x01 to put the cpu into reset mode, and THEN when I do a file transfer and point to my hex file .... the file does download successfully ... and then I do another 0xA0 bReguest sending a 0x00 to take the cpu out of RESET .... BUT .... still my code does not run (I do not get a renumeration). If I select "Download" from the EZUSB Interface panel, then I see the 0x01 get sent, then my file is sent, and then the 0x00 is sent and my device renumerates properly and everything is working. WHY can I not get this to work when I manually use the "Transfer File" option instead of the "Download" option???? Is there something else that I need to specify?? By the way, as I said in the first post, my hex file is 8402 bytes, and I am surprised that this works even with the Download function as I assume that I am loading to the onboard device ram which I thought just had 8K of program space?? |
|
|
|
|
|
|
|
谢谢你的回复…在我看来,柏树的文件必须是我见过的最差的文件!关于你的评论“下载”…使用CySalk,如果我激活EZ-USB接口,并从EZ-USB对话框中选择“下载”,并指向我的HEX文件…它将正确下载。但是,如果我留在主CyStand接口,并尝试下载我的十六进制文件使用“转移”…这行不通。在任何情况下,我下载并使用“CyPress USB套件”…我找不到任何被引用的文件。原来,为了得到这些文件,我还必须下载和安装柏树DVK分立…然后…当我这么做的时候…我在bin文件夹中找到了CyScript程序(由于一些奇怪的原因,它没有包含在USB套件下载中)。Soooo…使用CyScript程序,我可以通过指向我的十六进制文件来创建脚本文件。现在,我可以去cyconsole和选择我的脚本文件,并运行该脚本,我的固件正确下载我的设备和装置,那么薪酬(这是我想做的事我的固件下载后)。我现在的问题是…现在,我不能把脚本文件必须从我的INF文件执行!!!!(……)我只是简单的修改cyu***.inf文件只是增加我的VID/PID增加这部分(我已经改名为我的脚本文件,适用于CYUSB。SPT):[适用于CYUSB。addreg。GUID ]目前,DriverGUID,,,% %,目前适用于CYUSB。GUID,driverexecscript,,C: Windows System32 司机 cyu***.spt我有cyu***.inf文件Windows INF文件夹我cyu***.sys和cyu***.spt在 Windows System32 驱动文件夹可以用cyconsole指出脚本文件,并运行该脚本,我renumerates下载装置。但是,如果我把我的设备的INF文件活动…我的设备不会再数,它告诉我,没有执行的脚本文件。我也曾试过:[适用于CYUSB。addreg。GUID ]目前,DriverGUID,,,% %,目前适用于CYUSB。GUID,driverexecscript,,% % [线]适用于CYUSB。execscript适用于CYUSB。execscript =“C: Windows System32 司机适用于CYUSB。SPT”和不工作!帮助…
以上来自于百度翻译 以下为原文 Thank you for your reply ... it really seems to me that the Cypress documentation has got to be the worst I have ever seen! Regarding your comment about "Download" .... using CyConsole, if I activate the EZ-USB interface and from the EZ-USB dialog I select "Download" and point to my HEX file ... it will properly download. BUT, if I stay in the main CyConsole interface and try to download my hex file using "Transfer" ... it will not work. In any case, I downloaded and was using "Cypress USB Suite" ... I could not find anywhere the files that were being referenced .... it turns out that in order to get those files I had to ALSO download and install the Cypress DVK seperately ... THEN ... when I did that ... I found in the bin folder the CyScript program (which is NOT included in the USB Suite download for some strange reason). Sooooo .... using the CyScript program I WAS able to create a script file by pointing to my hex file. NOW, I can go into CyConsole and select my script file, and run the script and my firmware properly downloads to my device, and the device then does a renumeration (which is what I want it to do after my firmware download). MY PROBLEM NOW IS .... now, I can NOT get that script file to be executed from my INF file!!! (grrrrrrr arrrrgghhhh) ..... I have just simply modified the CYUSB.INF file by only just adding my VID/PID and by adding this section (I have renamed my script file to CYUSB.spt): [CYUSB.AddReg.Guid] HKR,,DriverGUID,,%CYUSB.GUID% HKR,,DriverEXECSCRIPT,,c:windowsSystem32DriversCYUSB.spt I have the CYUSB.INF file in the windowsinf folder I have CYUSB.SYS and CYUSB.SPT in the windowssystem32drivers folder I can use CyConsole and point to that script file, and run the script and it downloads and my device renumerates. However, if I just attach my device with that INF file active ... my device does NOT renumerate, which tells me that the script file did not execute. I have also tried this: [CYUSB.AddReg.Guid] HKR,,DriverGUID,,%CYUSB.GUID% HKR,,DriverEXECSCRIPT,,%CYUSB.EXECSCRIPT% [Strings] CYUSB.EXECSCRIPT="c:windowssystem32driversCYUSB.spt" And that does not work either! HELP ..... |
|
|
|
通过传输,我相信你是在讨论文件传输方法…下载按钮解析HEX并使用A0供应商命令发送HEX文件的固件部分…当你做文件传输方法时,它实际上需要整个HEX文件并把它推到设备上,而不是这是怎么做的。整个操作是不同的,你可以看到…你正在运行什么操作系统,即XP32、ViSt64等……我记得脚本成功运行在所有4个OS变种…
以上来自于百度翻译 以下为原文 By transfer i believe you are talking about file transfer method... download button parses the hex and send the firmware part of the hex file using A0 vendor command... when you do the file transfer method it actually takes the whole hex file and shoves it down to the device which is not how this is supposed to be done... the entire operation is different as you can see... What OS are you running i.e. xp32, vista64 etc etc.... I remember script successfully running in all 4 OS variations... |
|
|
|
谢谢你的回复…是的,我终于发现了“下载”和“传输”的区别…所以,我已经超出了这个问题,现在我有一个脚本文件,将正确工作在CySub内。我使用的是常规的XP(32位,SP2)…而且我不能从我的INF文件中执行脚本文件。我在前一条消息中插入了我的INF文件中的相关行…你看到一个错误或丢失的东西,这会解释为什么脚本文件不在设备附件上执行吗?谢谢。
以上来自于百度翻译 以下为原文 Thank you for your reply .... yes, I did eventually discover the difference between "Download" and "Transfer" ..... so, I am past that issue, and I now have a script file that will work correctly from within CyConsole. I am using regular XP (32bit, SP2) .... and I can NOT get the script file to execute from within my INF file. I inserted the relevant lines from my INF file in previous message ... do you see anthing that is wrong or missing that would explain why the script file does not execute on device attachment?? Thanks. |
|
|
|
上传您的INF文件在这里…我来查一下,让你知道…
以上来自于百度翻译 以下为原文 upload your inf file here... i'll check it out and let you know.... |
|
|
|
只有小组成员才能发言,加入小组>>
751个成员聚集在这个小组
加入小组2062 浏览 1 评论
1820 浏览 1 评论
3629 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1757 浏览 6 评论
1505 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
496浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
352浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
407浏览 2评论
353浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
846浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-17 04:19 , Processed in 0.946184 second(s), Total 89, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号