完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我试图使用GPIF作为读写器和SRAM类型设备的主机。由于这些设备具有不同的特性,所以我需要频繁地更改GPIF配置。但我不想每次重启并加载不同的固件。我计划在运行时通过控制端点来改变配置,如时钟频率和端口宽度。 有可能实现这一点吗? 谢谢! 罗孚 以上来自于百度翻译 以下为原文 Hi, I'm trying to use the GPIF as a master to read/write and SRAM type devices. Since these devices have different characteristics, I need to change GPIF configurations frequently. But I don't want to reboot and load different firmware every time. I plan to change configurations, such as clock frequence and port width, by control endpoint during running time. Is it possible to implement this? Thanks! Rover |
|
相关推荐
4个回答
|
|
|
嗨,罗孚,
这样做是可能的。每次更改GPIF描述符时,不必加载固件。 使用CYU3PGPIFESTABLE(Cyress); 然后,您可以使用CYU3PGPIFLoad()加载新的GPIF配置,并使用CYU3PGPIFSMSTART()API启动状态机。 谢谢, 西克里希纳。 以上来自于百度翻译 以下为原文 Hi Rover, It is possible to do that. You don't have to load firmware every time you want to change the GPIF descriptors. Use CyU3PGpifDisable(CyTrue); Then you can load new GPIF configuration using CyU3PGpifLoad() and start the state machine using CyU3PGpifSMStart() API. Thanks, sai krishna. |
|
|
|
|
|
感谢赛因的回复。我想知道我是否需要重新配置DMA?
以上来自于百度翻译 以下为原文 Thank Sai for the reply. I want to know if I need to config the DMA again? |
|
|
|
|
|
嗨,罗孚,
DMA配置将取决于两个不同的GPIF配置,它们将一个接一个地加载。 如果在GPIF配置之间切换时,DMA大小、计数或类型中没有必要的更改,那么CYU3PDMACHANNELSIETE()和CYU3PDMACHANESETXFER()调用就足够了。但是如果新的GPIF配置需要改变DMA信道参数,那么您需要执行ACYU3PDMACHANNEL DEVICE(),然后用新的参数创建一个新的DMA信道。 当做 沙肖克 以上来自于百度翻译 以下为原文 Hi Rover, The DMA config would depend upon the two different GPIF configurations that are going to be loaded one after the other. If there is no change necessary in the DMA size, count, or type when you are switching between the GPIF configurations, then CyU3PDmaChannelReset() and CyU3PDmaChannelSetXfer() calls would suffice. But if the new GPIF configuration needs the DMA channel parameters to be changed, then you would need to perform a CyU3PDmaChannelDestroy() and then create a new DMA channel with the new parameters. Regards Shashank |
|
|
|
|
|
我试着改变GPIF总线的宽度。然而,在改变宽度之后,新的宽度从第二次传输变得有效。也就是说,我从USB发送的第一个包仍然使用旧的设置。为什么?
以上来自于百度翻译 以下为原文 I tried to change the bus width of GPIF. However, the new width becomes effective from second transfer after I changed the width. That is to say, the first packet I sent from USB still uses the old settings. Why? |
|
|
|
|
只有小组成员才能发言,加入小组>>
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评论
709浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7961浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 19:46 , Processed in 0.707411 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4815