完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
您好!
是否有可能在没有DVK板的情况下调试固件?因为在所有解释如何调试的数据表(AN42499和AN59009)中,我必须使用开发板。 谢谢你 以上来自于百度翻译 以下为原文 Hi Is it possible to debug a firmware without the DVK board? because in all the datasheet which explain how to debug one (AN42499 and AN58009) I must use the developement board. Thank you |
|
相关推荐
17个回答
|
|
你好,
我没有注意到供应商命令代码的任何变化,所以我假设您只是尝试与EEPROM进行通信。你使用DVK还是自定义板?什么是EEPROM大小/部件号和什么逻辑电平绑定了EEPROM的地址引脚。 当做, 阿南德 以上来自于百度翻译 以下为原文 Hi, I didn't notice any change in the vendor command code so I assume you're just trying to communicate with the EEPROM. Are you using the DVK or a custom board? What is the EEPROM size/part number and what logic level have you bound the address pins of the EEPROM. Regards, Anand |
|
|
|
我正在使用一个自定义板,但我的电路板上没有EEPROM,所以问题来自它,但我的问题是如何测试我的固件,如果我没有EEPROM?
我不能读取数据,所以我无法验证它是否工作。 以上来自于百度翻译 以下为原文 I am using a custom board but I don't have EEPROM on my board so the problem come from it but my question is how to test my firmware if I don't have an EEPROM? I am not able to read data so I am not able to verify that it work. |
|
|
|
Lokas
以下是我所说的方法, 比如说你知道你的代码卡在某个特定的函数上。你想知道哪一行代码引起了这个问题。您有一个计数器,在每个代码行之后递增。 然后在固件中实现一个供应商命令,其中将此计数器变量作为数据发送。因此,为了找出它被卡在哪里,现在你可以从PC发送供应商命令,然后找出它被卡在哪里以及为什么。 我不明白为什么你试图在没有EEPROM的自定义电路板上读取EEPROM。 当做, 阿南德 以上来自于百度翻译 以下为原文 Lokas, Following is the approach I'm talking about, Say you know your code is getting stuck at a particular function. You want to find which line of code is causing the issue. You have a counter which you increment after each line of code. Then you implement a vendor command in the firmware in which you send this counter variable as the data. So to find out where it is getting stuck now you can send vendor command from PC and then find out where it is stuck and why. I don't understand why you are trying to read from EEPROM in a custom board without EEPROM. Regards, Anand |
|
|
|
我们的应用程序笔记将演示基于DVK板的调试,因为这是我们使用的平台。如果您在板上有串行端口连接器,那么您也可以使用自定义板进行调试。
当做, 阿南德 以上来自于百度翻译 以下为原文 Our app notes would demonstrate debugging based on DVK board since that is the platform we use. You can debug with custom boards as well provided you've the serial port connectors on the board. Regards, Anand |
|
|
|
|
|
|
|
我见过的串行到USB转换器是用于连接到PC的USB连接器和连接到FX2LP的串行端口。你在用另一种方式描述它。请澄清。如果你有一个特定的串行USB安装在手上,请让我知道它的制作(网站链接),以便我能了解它是什么。
如果您的板上没有串行端口连接器, 您可以使用供应商命令来发送您正在寻找的调试参数。 或者,您可以实现另一个接口,它是一个虚拟编译器,然后通过该接口将调试消息发送到超级终端。 当做, 阿南德 以上来自于百度翻译 以下为原文 The serial to USB converters I've seen are for USB connector connected to PC and serial port connected to FX2LP. You are describing it the other way around. Please clarify. If you've a specific serial-USB setup in hand please let me know the make (site link) of it so that I can check out what it is all about. If you do not have a serial port connector on the board already, you can use vendor commands for sending the debug parameters you're looking for. or you can implement another interface which is a Virtual COM port and then send debug messages over that interface to hyperterminal. Regards, Anand |
|
|
|
事实上,我描述了另一种方式,但我自己建的,所以没有网站链接。
关于你建议我使用的虚拟COM,是不是当计算机上没有端口COM时?因为我有一个,问题不在计算机的一侧,而是在我的板的一侧,因为我的板上只有一个连接器:迷你USB一。 我不知道你在用什么样的供应商命令来发送调试参数。有文档或数据表来解释吗? 当做 以上来自于百度翻译 以下为原文 Indeed I described the other way around but I built it myself so there is no site link. About the virtual COM you suggest I could use, is not when there is no port COM on the computer? Because I have one, the problem is not on the side of the computer but on the side of my board because I have just one connector on my board : a mini u*** one. And I don't see what you are talkimg about using vendor commands for sending the debug parameters.... Is there documents or datasheet which explain it Regards |
|
|
|
HTTP://www. CyPress?COM/?RID=34485显示了如何实现供应商请求。您可以使用它来获取变量和数据的值。
虚拟COM端口是像COM端口设备(虚拟)那样运行的USB端口,即USB分组以原生Windows虚拟COM端口驱动程序理解的格式发送,并将该分组转换成一种格式,就好像它是从COM端口设备获得的。因此,Windows驱动程序将基于接收到的数据包对设备进行查询并在超级终端中打印值。HTTP://www. CyPress?COM/?在这种情况下,RID=40248将是您感兴趣的。 当做, 阿南德 以上来自于百度翻译 以下为原文 http://www.cypress.com/?rID=34485 shows how to implement vendor requests. You can use this to obtain values of variables and stuff. Virtual COM port is the USB port behaving like a COM port device (VIRTUAL) i.e. USB packets are sent in a format which the native windows virtual com port driver understands and converts the packet to a format as if it was got from a COM port device. So the Windows driver will poll the device and print values in hyperterminal based on packet received. http://www.cypress.com/?rID=40248 would be of interest to you in this case. Regards, Anand |
|
|
|
又喜
我还有一个问题:我的设计不包括一个外部EEPROM,我只有内部RAM,所以我不确定我应该使用什么样的技术来下载我的固件到FX2LP,然后测试它… 谢谢您 以上来自于百度翻译 以下为原文 Hi again I have another question : my design don't include an external EEPROM, I have just the internal RAM so I am mot sure what kind of technique I should use to download my firmware into the FX2LP and then test it... thank you |
|
|
|
对不起的
我可以通过厂商命令下载我的固件而没有EEPROM(我做了什么),但是我不知道如何测试它,因为我不确定它是否有效。 我发现的供应商命令测试需要一个EEPROM… 以上来自于百度翻译 以下为原文 sorry I can download my firmware without EEPROM by vendor command (what I did) but then I don't know how to test it because I am not sure it worked. The Vendor Command Testing I found need an EEPROM.... |
|
|
|
其中一个供应商命令演示了如何使用Apple Note中的供应商命令发送EEPROM数据。
在您的情况下,您可以发送需要使用供应商命令(而不是EEPROM数据)分析问题的数据。这就是我的意思。这给了你调试问题的方法。 当做, 阿南德 以上来自于百度翻译 以下为原文 One of the vendor command demonstrates how to send EEPROM data using vendor command in that app note. In your case you can send data that you need to analyze the issue using the vendor commands (instead of the EEPROM data). This is what i meant. This gives you way to debug your issues Regards, Anand |
|
|
|
实际上,在AN45 447中,供应商命令测试示例使用IIC文件编程方法,因此它使用EEPROM。
但是我使用了HEX文件方法来加载我的固件,所以供应商命令测试不适合我的方法。 以上来自于百度翻译 以下为原文 Indeed in the AN45471 the Vendor Command Test example use the IIC file programming method so it use EEPROM. But I used the HEX File method to dowmload my firmware so the Vendor command test is not adapted to my method. |
|
|
|
Lokas
如何加载固件并不重要。固件如何处理供应商命令是使用厂商命令调试固件的原则。 在您的固件中实现一个供应商命令,它将发送您想要观察的值。然后使用CySalm发送供应商命令并获取这些值。 当做, 阿南德 以上来自于百度翻译 以下为原文 Lokas, How the firmware is loaded does not matter. How the firmware handles the vendor command is the principle behind using vendor commands to debug firmware. Implement a vendor command in your firmware which will send the values that you want to observe. Then use CyConsole to send the vendor command and get these values. Regards, Anand |
|
|
|
好啊
然后我有两个问题; 然后跟随应用笔记我认为我设法写字节通过供应商请求(例如,C2 A1 B1 C2 D3 E4 F5 06),但当我尝试阅读它们时,我有CD CD CD CD CD CD CD CD… 第二个问题: 我一直认为它是在固件中配置FX2LP(在TDY-IIT中)工作在GPIF /从FIFOMODE,异步/同步。但是我在VundAx.c中既不尝试配置也不不改变任何东西。 以上来自于百度翻译 以下为原文 Ok Then I have two questions ; Then following the app note I think I manage to write bytes throught Vendor Request (for example C2 A0 B1 C2 D3 E4 F5 06 ) but then when I try to read them I have CD CD CD CD CD CD CD CD.. Second question : I always thought it was in the firmware that you configure the FX2LP ( in the TD_Init fonction) into working in GPIF/Slave FIFO mode , Asynchrone/Synchrone.. but in the vend_ax.c neither I try to configure or not it doest not change anything |
|
|
|
1)请在这里张贴您的代码。我想看看你为什么收到CDCD…(我看过CD光盘…当无法访问内存区域时被发送。
2)VundAX不使用GPIF /从FIFO。它在端口I/O模式下工作。这就是为什么你在那里看不到的原因。GPIF/从属FIFO在哪里和如何初始化是基于自己的意愿。对它应该初始化的地方没有限制。 当做, 阿南德 以上来自于百度翻译 以下为原文 1) Please post your code here. I would like to take a look at why you are receiving CD CD .... (I've seen CD CD ... being sent when the memory area is not accessible). 2) Vend_ax does not use GPIF/Slave FIFO. It works in port I/O mode. That is why you don't see it there. Where and how GPIF/Slave FIFO is initialized is based on one's own wish. There is no restriction on where it should be initialized. Regards, Anand |
|
|
|
代码附在这个帖子上(只是VANDAYAX.C)
那么,如果想初始化FX2LP INT的VDIAXAX.C的TDYINIT函数,它会起作用吗? 当做 荷兰邮政 3.4 K 以上来自于百度翻译 以下为原文 The code is attached to this post (just the vend_ax.c ) Then if I try to to initialize the FX2LP int the TD_Init fonction of the vend_ax.c will it work? Regards
|
|
|
|
是的。它应该。我看看你的代码,很快就会回复你。
当做, 阿南德 以上来自于百度翻译 以下为原文 Yep. It should. I'll look at your code and get back to you soon. Regards, Anand |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2070 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1513 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
510浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
360浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
857浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 09:02 , Processed in 1.148601 second(s), Total 112, Slave 95 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号