完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我编写了一个基于FX3和视频传感器的固件系统。我编程了GPIF,如在AN75 799中描述的,并创建了DMACHANEL以将数据翻译成PC。我没有对数据进行修改,只翻译。
如在AN75 799中所描述的,我将DMAbufer的大小定义为16KB,而BuffER计数为4。但是,当我尝试翻译数据时,它只翻译了几个帧,然后翻译终止,设备没有检测到CyPress CC。 我把DMAbufer的尺寸缩小到1KB。现在TrasHeT没有终止,但是数据不一致地到达,所以我不能正确地捕捉图像。 哪里有问题,怎么解决? 以上来自于百度翻译 以下为原文 I write a firmware for a system based on FX3 and videosensor. I programmed GPIF as described in AN75779 and created DMA chanel for translate data to the PC. I didn't make changes in data, only translate. As described in AN75779, I define the size of DMA bufer as 16kB, and the bufer count as 4. But when I try to translate data it translate only few frames, and then translation terminated and device didn't detect by Cypress CC. I reduced the size of DMA bufer to 1kB. Now traslate didn't terminat, but the data arrived discordantly, so i can't capture properly image. Where there is may be a problem and how solve it? |
|
相关推荐
4个回答
|
|
|
如何调试它?您可能想添加一些打印消息到固件,看看到底发生了什么?
以上来自于百度翻译 以下为原文 How do you debug it? You may want to add some print messages to the firmware and see what exactly is happening? |
|
|
|
|
|
功能cyu3pdmamultichannelcommitbuffer返回cy_u3p_error_invalid_sequence和翻译终止。是什么意思我不懂,因为没有描述的技术文件。设备不检测由柏CC,但在系统的设备管理器是目前。
当我使用小型BuffER设备时,不会返回任何错误。 以上来自于百度翻译 以下为原文 Function CyU3PDmaMultiChannelCommitBuffer returns CY_U3P_ERROR_INVALID_SEQUENCE and translation terminated. What this mean I don't understand because there aren't any description in technical documentations. Also device don't detects by Cypress CC, but in system device manager it is present. When I use the small bufer device don't returns any errors. |
|
|
|
|
|
我用传输数据解决了这个问题。但是现在还有一个问题,低数据传输速度。如果我的传输量小于10Mb/s,所有的OK都可以,而且包不会丢失。但是当我把数据速度提高到50Mb/s时,许多数据包丢失了。
当我用USBBulkSourceSink的例子来测试速度时,它达到了380Mb/s,但是当我使用视频传感器的数据来传输时,它就丢失了。这可能是什么原因造成的。 以上来自于百度翻译 以下为原文 I solved the problem with transfer data. But now there is another problem with the low data transfer speed. If I've transfer less then 10MB/s there are all ok, and packets havn't lost. But when I have increased data trasfer speed to 50MB/s many packets become lost. I when I try to test the speed with USBBulkSourceSink example it was up to 380MB/s. But when I use data from videosensor to transfer in this exapmple it transefr with loses. What may be cause of this lases. |
|
|
|
|
|
尝试使用可用的最大DMA缓冲区。
当做, 西克里希纳。 以上来自于百度翻译 以下为原文 Try using the maximum dma buffer that is available. Regards, sai krishna. |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2474 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2073 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 02:32 , Processed in 0.708105 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2943