Cypress技术论坛
直播中

王翰音

8年用户 288经验值
私信 关注
[问答]

fx2lp端点2

你好,
我定义了一个另一个端点在FX2LP Slave FIFO固件,4X,散装(登记设置>;ep2cfg = 0xA0;)
如果我点击transferout按钮的时候,批量转移是successfull.if我transferout按钮点击超过4次,其给予997的误差。
如果我改变登记设置为ep2cfg = 0xa2;即,2X,散装,如果我transferout按钮点击超过2次,其给予997的误差,前两次请求working.whats问题。
当做,
吉萨
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            HI,
I have defined an another endpoint 2 in fx2lp slave fifo firmware with OUT,4x ,Bulk (register settings -> EP2CFG = 0xA0;)
if i click transferout button  times,bulk out transfer is successfull.if i click transferout button more than 4 times,its giving 997 error.
if i change register setting as EP2CFG = 0xA2; that is OUT,2x,bulk and if i click transferout button more than 2 times,its giving 997 error,first two times request is working.whats the issue.

regards,
geetha.

回帖(5)

杜美娜

2018-8-19 04:11:47
你好Geethanjali,
这不是一个问题。这是怎样的FX2LP预计工作。当你配置端点为四缓冲(4x),四转让出去后,在FX2LP的缓冲区填充。这些数据需要清空。只有这样,FX2LP能够从主机接收下一个数据。
诚挚的问候,
Srinath的
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Hello Geethanjali,
 
This is not an issue. This is how the FX2LP is expected to work. When you have configured the endpoint as quad buffered (4x), after 4 'Transfer Out's, the buffers in the FX2LP are filled. This data needs to be emptied. Only then, FX2LP will be able to receive the next data from the host.
 
Best regards,
Srinath S
举报

王翰音

2018-8-19 04:29:23
引用: wangcong12138 发表于 2018-8-19 04:11
你好Geethanjali,
这不是一个问题。这是怎样的FX2LP预计工作。当你配置端点为四缓冲(4x),四转让出去后,在FX2LP的缓冲区填充。这些数据需要清空。只有这样,FX2LP能够从主机接收下一个数据。
诚挚的问候,

你好,克里斯纳特,
如何清空填充缓冲器?有什么特殊的寄存器吗?
当做,
吉萨
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Hello shrinath,
 
how to emptied filled buffers?is any speccific registers are there?
 
regards,
geetha.
举报

杜美娜

2018-8-19 04:36:01
引用: 不cdvdhgdh 发表于 2018-8-19 04:29
你好,克里斯纳特,
如何清空填充缓冲器?有什么特殊的寄存器吗?
当做,

你好,Geethanjali,
这取决于你的实现。请阅读EZ-USB技术参考手册的注册信息。
HTTP://www. CyPress .COM/FIL/12646/下载
最好的问候,
斯里纳斯
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Hello Geethanjali,
 
It depends on your implementation. Kindly, read through the EZ-USB Technical Reference Manual for register information.
http://www.cypress.com/file/126446/download
 
Best regards,
Srinath S
举报

王翰音

2018-8-19 04:51:17
引用: wangcong12138 发表于 2018-8-19 04:36
你好,Geethanjali,
这取决于你的实现。请阅读EZ-USB技术参考手册的注册信息。
HTTP://www. CyPress .COM/FIL/12646/下载

你好,克里斯纳特,
我试图将端点数据的端点缓冲区。
休息后的FIFO也,问题是相同的。
tdIn()
{
EP2FIFOCFG=0x00;//OutoMod=0;
//EP2FIFOFFG=0x10;//OutoMod=1;
}
TDYPOLL()
{
FIFSET=0x80;//重置FIFO
同步延迟;
FippET= 0x82.
同步延迟;
FippET= 0x00;
同步延迟;
EP2BCH=0x02;/ / 512字节提交
同步延迟;
EP2BCl=0x00;
同步延迟;
}
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Hello shrinath,
I am trying to store OUT endpoint data in the endpoint buffer.
after resting the FIFO also, the problem is same.
TD_INIT()
{
EP2FIFOCFG = 0x00;        //automode=0;
//EP2FIFOCFG = 0x10;      //automode=1;
}
 
TD_poll()
{
FIFORESET = 0x80; // Reset the FIFO
SYNCDELAY;
FIFORESET = 0x82;
SYNCDELAY;
FIFORESET = 0x00;
SYNCDELAY;
EP2BCH=0x02; //512 bytes committed
SYNCDELAY;
EP2BCL=0x00;
SYNCDELAY;
}
举报

更多回帖

发帖
×
20
完善资料,
赚取积分