完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
在我的基于CX3的应用程序中,我通过注册CYU3pPIN TrcButtBuffic函数与Cyu3pPIbReistalCalpCou后缀API实现了“PIB中断”回调:在任何情况下,我不需要这样做,除了在整个应用程序的调试阶段中检查意外情况之外。 令人惊讶的是,在明显的正常操作中,我调用了多次调用回调,CBType== Cyu3PyPiBi内错误和Cyu3PyGETY-GPIFYErrRoRyType(CBARG)= = CYU3PY-GPIIFEL RealEndiDySt. 即使我不确定这样做是合法的,但在这种情况下,我试图通过调用回调内部的CYU3PGPIFGETSMSTATE来理解哪个GPIF SM状态被认为是“无效的”。根据该过程,似乎触发错误的状态是:Cx3AIDLYESCK0/ 1,CX3WAITYOFFRIGHYSTARKSTARKSCK0/ 1,CX3SUPARALL BuffelSyIn SCK0/1和未记录状态131和132。 由于我正在使用CX3设备,所以我使用的是“固定”函数GPIF配置,这是由于调用CYU3PMIPICSIGIFFILLATE(CyuU3PYMIPICSIIB BuSU24,BuffrySead)导致的。 所描述的行为正常/预期吗?如果不是,什么会引起这些错误的触发? 请注意,我的应用程序目前有点奇怪,因为我正在编写一个自定义的DPHY/CSII传感器的图像帧组成的单行:因此,我目前保持线/帧率相当低(相比于传感器HW所支持的),以便能够在Cx3IDE,以跟上相应的中断率。 谢谢你,尼古拉。 以上来自于百度翻译 以下为原文 Hello, in my CX3-based application I enabled the 'PIB interrupt' callback, by registering my CyU3PPibIntrCb_t-compliant function with the CyU3PPibRegisterCallback API: I don't need this for any purpose apart checking for unexpected conditions while I'm in a debug phase for the entire application. Surprisingly I'm having my callback called many times during apparently normal operation, with cbType == CYU3P_PIB_INTR_ERROR and CYU3P_GET_GPIF_ERROR_TYPE(cbArg) == CYU3P_GPIF_ERR_INVALID_STATE. Even if I'm not sure that it is legal to do so, in those circumstances I'm trying to understand which GPIF SM state is considered 'invalid', by calling the CyU3PGpifGetSMState from inside the callback. According to that procedure the states that seem to trigger the error are: CX3_IDLE_SCK0/1, CX3_WAIT_FOR_FRAME_START_SCK0/1, CX3_PARTIAL_BUFFER_IN_SCK0/1 and undocumented states 131 and 132. Since I'm working on the CX3 device, I'm using the 'fixed'function' GPIF configuration that results from the call to CyU3PMipicsiGpifLoad(CY_U3P_MIPICSI_BUS_24, buffer_size). Is the described behavior normal/expected ? If not, what could be causing the triggering of those errors ? Please note that my application is currently a bit peculiar because I'm programming a custom D-PHY/CSI-2 sensor for image frames composed of a single line: as a result I'm currently keeping the line/frame rate quite low (compared to what supported by the sensor HW) in order to be able, on the CX3 side, to keep up with the corresponding interrupt rate. Thanks in advance and best regards, Nicola. |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
568浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
422浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 07:26 , Processed in 0.847274 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号