完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我已经尝试在VelDeX-5板上以流模式运行样例程序AN6997。不幸的是,它不能正常工作,除非PKTAIN PIN被切换,而在相关文档中提到PKAN是流模式中的“1”。实际上,如果PKTACK没有切换,FLAB仍然保持“0”,并且没有数据被传输。 你能帮我解决这个问题吗? 当做, 哈尼族 以上来自于百度翻译 以下为原文 Hello, I have been trying to run the sample program AN65974 on Virtex-5 board in Stream in Mode. unfortunately, it does not work correctly ,unless PKTEND pin is toggled, while it is mentioned in related documents that PKTEND is to be '1' in Stream In Mode. Actually, if PKTEND is not toggled, FLAGB remains '0' and no data is transmitted. Could you please help me to solve this problem? Regards, Hani |
|
相关推荐
2个回答
|
|
你好,
只有当没有完全填充任何DMA缓冲器时,才需要切换PKTAN信号。例如,假设你有6个大小为16K的DMA缓冲器。在前5个DMA缓冲器被填充后,它们将被包装(准备发送到USB),然后可以被提交(传输到USB外围设备)。假设第六DMA缓冲器部分被填充,并且FPGA没有更多的日期要发送。现在PKTACK信号被断言(拉低),因此缓冲区被包装。 你能让我们知道PC能接收多少数据、丢失多少数据以及FPGA实际上发送了多少数据、缓冲区计数和大小的详细信息、调试日志(如果有的话)? 当做, - Madhu Sudhan 以上来自于百度翻译 以下为原文 Hi, The PKTEND signal needs to be toggled only when any DMA buffer is not completely filled. For example, assume that you have 6 DMA Buffers each of size 16K. After first 5 DMA Buffers are filled they will be wrapped (ready to be sent to the USB) and then can be committed (transferred to the USB Peripheral). Assume that the 6th DMA Buffer is partially filled and the FPGA has no more date to be sent. Now the PKTEND signal is asserted (pulled low), so the Buffer is wrapped. Can you please let us know how much data is the PC able to receive, how much data is being lost and how much data is actually sent be the FPGA, details of your buffer count and size, Debug logs if any? Regards, - Madhu Sudhan |
|
|
|
dfzvzs 发表于 2018-11-29 09:44 你好, 谢谢你的回复。实际上,我想理解为什么这个示例程序不起作用,因此我试着测试它的不同部分。事实上,当PKKAND被切换,而其余的程序保持不变,数据传输没有任何损失。 最后,上周我可以通过同一个平台(ViRTEX-5+EZ-USB FX3)通过另一个程序进行数据传输。就我个人而言,我认为AN6997程序可能在与FlagA/B有关的章节中有一些问题。 当做, 哈尼族 以上来自于百度翻译 以下为原文 Hi, Thank you for your reply. Actually, I wanted to understand why this sample program did not work, thereby I tried to test the different sections of it. As a matter of fact, When PKTEND was toggled, while the rest of the program remained unchanged, data was transferred without any lost. Finally, last week I could have a data transferring via the same platform (Virtex-5 + EZ-USB FX3) by another program. Personally, I think AN65974 program may have some problems specially in the sections related to FlagA/B. Regards, Hani |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2111 浏览 1 评论
1858 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1792 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
579浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
432浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
442浏览 2评论
391浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
979浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 12:34 , Processed in 1.217857 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号