完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
通常我们使用CYFX3BOOTUSBSTART(CyTr..,…),选项“重新枚举将不被完成”,并按预期工作。
在异常的情况下,设备上电,启动它的USB连接周期,在CYFX3BOOTUSTBSTART,CYFX3BOOTUBBConnect之后,但在设备变得模糊不清之前,出现一个非常短的USB断开/重新连接。从这一刻起,设备就不会启动它的枚举周期,固件停留在引导加载程序,等到USB连接就绪。 在调用CYFX3BOOTUBSCONtiON之后,通过重新启动调试会话,可以在调试会话中很容易地再现这种行为。从下到下一个设备复位(电源周期或CYFX3BOOTDEVICESESET),不会触发USB枚举。在调试器中重新加载固件将无法修复。 如果我们调用CYFX3BOOTUSBSTART(CyFalm,…),选择“重新枚举”将比它在任何情况下都能工作。 是否有一种方法在第二阶段引导加载程序中复位USB,以确保与第一次启动后一样的行为?用CYFX3BOOTUSBSTART选项“撤销枚举”将不会撤销更改吗? 以上来自于百度翻译 以下为原文 Normally we use CyFx3BootU***Start( CyTrue, ..) with option "Re-Enumeration will NOT be done" and it works as expected. At the unusual situation where the device power up, start it's USB connect cycle, short after CyFx3BootU***Start, CyFx3BootU***Connect but before device became emumerated, a very short USB disconnect / re-connect occur. From this moment on, the device don't start it's enumeration cycle, firmware stay at bootloader and wait until USB connection is ready. This behaviour can be easily reproduced within a debug session, by restarting the debug session directly after CyFx3BootU***Connect have been called. From than till next device reset (power cycle or CyFx3BootDeviceReset), no USB enumeration will be triggered. Further firmware reloads within the debugger won't fix that. If we call CyFx3BootU***Start( CyFalse, ..) with option "Re-Enumeration will be done" than it seems to work in any situation. Is there a way to reset the USB within Second Stage Bootloader to ensure the same behavior like after first power up? Any thing to undo the changes cause by CyFx3BootU***Start - option "Re-Enumeration will NOT be done"? |
|
相关推荐
2个回答
|
|
你好,
您是指枚举之前和调用CYFX3BOOTUBConnect()之后发生的(DeNeNect和Access)吗? 但是在上述断开和连接之后,该设备没有枚举? -为了重现这个问题,您建议使用JTAG调试吗? 当做, 血竭 以上来自于百度翻译 以下为原文 Hi, Do you mean there is a (diconnect&connect) happening before enumeration and after calling CyFx3BootU***Connect()? But after the above disconnect and connect, the device does not enumerate? - For reproducing the problem, did you suggest using JTAG debugging? Regards, Hemanth |
|
|
|
xianhaizhe 发表于 2018-9-25 19:06 你好, 短断开/连接不是由FX3或我们的设备引起的。这是客户的插件电缆,等待很短的时间删除它,并再次插入它。地狱知道为什么,但如果他找到正确的评论之间的CYFX3BOOTUS连接()和枚举结束,为他的插件行动,比相机从未枚举。这可以用JTAG调试器重放,因为我认为FX3在这个插件动作期间不被完全清除,并且在从第二阶段引导加载程序到应用程序切换期间避免重新枚举的设置仍然存在,并导致这种行为(只是猜测)。 当做, 海子 以上来自于百度翻译 以下为原文 Hi, the short disconnect / connect is not caused by fx3 or our device. It's the customer which plugin the cable, wait very short time remove it and plug it in again. The hell know's why, but if he find the right comment between CyFx3BootU***Connect() and end of enumeration, for his plug action, than the camera never enumerate. This can be reproduced with JTAG debugger, because I think the the fx3 is not entierly cleared during this plug action and the settings, which avoid re-enumeration during switch from second stage bootloader to application, are still in place and cause this behaviour (only a guess). Regards, Heiko |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2081 浏览 1 评论
1833 浏览 1 评论
3648 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1773 浏览 6 评论
1520 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
529浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
384浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
421浏览 2评论
367浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
878浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 16:51 , Processed in 1.019174 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号