完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,大家好,
我开始着手进行电力状态管理。FX3 API包含一个函数,称为Cyu3PysStudioStudioDead模式。 在API指南的第16页中描述。第一个参数是唤醒标记。 “位掩码,表示允许FX3退出暂停模式的唤醒源。” 所提到的选项是: CyuU3pSysSypPixWakupp.SrcEnEn CyuU3PySysSubBaWakupp.SrcEnEn CyuU3PysSysUualtWakuupSrcEnEn 然而,据我所知,它们并没有被定义。它们没有出现在API指南中的任何地方,他们只提到了iCyu3Stult.h,它只与评论中的API指南相同的文本。 是否有人知道这些定义在哪里,如果有的话,如果没有,他们的价值观应该是什么? 谢谢, 马克加里森 以上来自于百度翻译 以下为原文 Hi all, I am starting to work on power state management. The FX3 API includes a function called CyU3PSysEnterSuspendMode described on page 16 of the API guide. The first parameter is wakeupFlags. "Bit mask representing the wakeup sources that are allowed to bring FX3 out of suspend mode." The options mentioned are: CY_U3P_SYS_PPORT_WAKEUP_SRC_EN CY_U3P_SYS_USB_WAKEUP_SRC_EN CY_U3P_SYS_UART_WAKEUP_SRC_EN However, as far as I can tell, they aren't defined ANYWERE. they don't show up anywhere else in the API guide, and their only mention is in cyu3system.h, which simply has the same text as the API guide in the comments. Does anyone know where these are defined, if at all, and if not, what should their values be? Thanks, Mark Garrison |
|
相关推荐
4个回答
|
|
希加亚特里
谢谢!它就在头文件的顶部。 谢谢你的快速响应时间。 -马克 以上来自于百度翻译 以下为原文 Hi Gayathri, Thanks a ton! It's right there at the top of the header file. Thanks for the quick response time too. -Mark |
|
|
|
你好,
我还有另一个相关问题。 我试图暂停USB后,从我的电脑断开连接,使用SAMECY3PysSysStudioMead函数。 现在,我正在测试的是,当事件类型为CyuU3pUSbBEASTIVE断开连接时,在CyfxBrrScCncpAppNUBeVcCB回调中设置事件标志。然后,使用Cuy3pEvGET函数在BulkSrcSkAppTraceRead条目循环中标识此事件标志。然后我将暂停称为: 状态= Cyu3PysSysStudioMead模式(CyuU3PySysU***bVBuxWakuPuxSRC,1,和WakuPuxSoad); 但是,当设备被断开时,它似乎总是返回CyuU3PyErrOrdBADION参数。从那时起,我发现,如果USB连接仍有不同的原因,它将成功地休眠。 有什么想法吗?我已经慢慢地剥离了所有其他功能的应用,以确保没有其他事情正在进行。我也在用其他唤醒源进行测试。CyuU3PySysU***BuxActVyTyWaKuPuxSRC具有相同的错误。 我注意到,在DOCS中,它提到了这个错误被抛出……如果指定的唤醒源无效,“由于某种原因,当USB断开时,指定的源不再有效。 我已经做了一个公平的测试,以确保事件在正确的时间只被调用一次。它只在物理断开事件中被调用,它只在每次断开时被调用一次。 非常感谢您的帮助! 谢谢, 作记号 以上来自于百度翻译 以下为原文 Hi, I have another related question. I'm trying to Suspend the CPU after a USB disconnect from my PC, using the same CyU3PSysEnterSuspendMode function. Right now, they way I am testing this is setting an event flag in the CyFxBulkSrcSinkApplnUSBEventCB callback when the event type is CY_U3P_USB_EVENT_DISCONNECT. This event flag is then identified in the BulkSrcSinkAppThread_Entry loop using the CyU3PEventGet function. Then I call suspend with this: status = CyU3PSysEnterSuspendMode(CY_U3P_SYS_USB_VBUS_WAKEUP_SRC, 1, &wakeup_source); However, it seems that it will always return CY_U3P_ERROR_BAD_ARGUMENT when the device has been disconnected. I have since discovered that it will successfully sleep the device if called for a different reason when USB is still connected. Any ideas why? I have been slowly stripping the application of all other functionality to make sure that nothing else is going on. I've been testing with other wakeup sources too - CY_U3P_SYS_USB_BUS_ACTVTY_WAKEUP_SRC has the same error. I did notice that in the docs, it mentions that this error is thrown... "if the wakeup sources specified are invalid." The For some reason, when the USB is disconnected, the specified source is no longer valid. I've already done a fair bit of testing to make sure that the event is called in at the right time only once. It definitely is only called on a physical disconnect event, and it's only getting called once per disconnect. Your help is greatly appreciated! Thanks, Mark |
|
|
|
你好,
在上述问题上,我没有取得任何进展:在USB断开后,使FX3进入挂起模式。 同时,我已经开始看待机模式了。 我们的应用程序是自供电的,总是在运行。我们想把所有的东西都放在最低的电源状态,而断开电源并切断大部分的铁轨供电。 我一直在查阅数据表中的备用电源状态(L3)和程序员手册。 数据表表示通过CPU中的寄存器控制来进入待机状态。它还说,它可以通过检测VBUS而退出,并且程序计数器被重置。 程序员指南中说了一些类似的东西。 API指南什么也没说。如何进入这种模式已有解释。程序员手册提到了一些与设备热重置有关的寄存器,但不足以做任何事情。 我注意到Cyu3Stalk中的一个函数,称为Cyu3PysSerialStand。描述表明,这就是我正在寻找的。我给应用程序添加了一个调用,现在应用程序无法编译。它说“未定义的引用toYou3PysStudioStand”。我猜这就是为什么它不在API指南中。我用的是SDK 1.2。我已经检查了1.2.1的发行说明,但没有提到待机。 此外,H文件提到了这样的功能:“这个函数直到设备已经恢复正常操作才返回。” 这意味着函数最终返回。我发现这是不寻常的,因为程序计数器被重置。 我的问题是:1。有没有办法让处理器进入待机状态? 2。我怎样才能确保它从VBUS连接(或任何其他来源)恢复过来? 三。上面提到的函数在上电后会返回吗?如果是,它是如何存储堆栈等的? 明天我要和Triton会面,我也会问他。 谢谢, 作记号 以上来自于百度翻译 以下为原文 Hi, I have not made any progress on the above issue: getting the FX3 to go into suspend mode after USB disconnect. In the mean time, I have started looking at standby mode. Our application is self powered and always on. We want to put everything in the lowest power state possible while disconnected and power down most of the rail supplies. I have been looking into the standby power state (L3) in the datasheet and the programmers manual. The datasheet says that standby is entered through a register control in the CPU. It also says that it can be exited by the detection of VBUS, and that the program counter is reset. The programmer's guide says something similar. The API Guide says nothing. There is explanation of how to enter this mode. The programmers manual mentions a few registers related to device warm reset, but not enough to do anything. I did notice a function in cyu3system.h called CyU3PSysEnterStandby. The description suggests that this is what I am looking for. I've added a call to my application, and now the application won't compile. It says 'undefined reference to CyU3PSysEnterStandby'. I'm guessing that's why it's not in the API guide. I'm using SDK 1.2. I've checked the release notes for 1.2.1, but there is no mention of standby. Also, the h file mentions that the functions this: "This function does not return until the device has already resumed normal operation." This implies that the function returns eventually. I find this unusual since the program counter is reset. My questions: 1. Is there any way to currently get the processor into standby, and how? 2. How can I make sure it powers back on from VBUS connection (or any other source)? 3. Can the function mentioned above actually return after power up, and if so, how does it store the stack, etc? I'm meeting with Triton (FAE) tomorrow and I will ask him then too. Thanks, Mark |
|
|
|
嗨,马克,
请在www. CyPress网站上创建一个技术支持案例。我们的一位工程师会调查你的询问。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi Mark, Please create a tech support case at www.cypress.com -> support -> Technical Support. One of our engineers will look into your queries. Regards, Gayathri |
|
|
|
只有小组成员才能发言,加入小组>>
750个成员聚集在这个小组
加入小组2054 浏览 1 评论
1809 浏览 1 评论
3621 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1746 浏览 6 评论
1499 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
484浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
337浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
400浏览 2评论
341浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
834浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-9 03:30 , Processed in 0.992763 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号