I2c cannot work under CyCx3UvcAppThread

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
siYU_4688301
Level 1
Level 1
5 replies posted First question asked First reply posted

你好,

    I use the cyfxusbi2cregmode under INC to operate I2c, which can work normally and catch the correct waveform;However, in other projects, CyCx3UvcAppThread cannot be started by calling CyFxUsbI2cTransfer function I2c. The waveform caught through oscilloscope always catches the waveform initialized by MIPI through I2c (address 0x0E).Anybody can help me?

0 Likes
1 Solution

打印log信息表明没有进去执行这个函数

View solution in original post

0 Likes
4 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

您好,

CX3的I2C模块会用于内部控制自身的MIPI模块以及外部的sensor。能不能请您用中文解释下 CyCx3UvcAppThread cannot be started by calling CyFxUsbI2cTransfer function I2c.这句话说什么意思?

pastedImage_0.png

0 Likes

就是我在CyCx3UvcAppThread这个线程下调用CyFxUsbI2cTransfe来操作其它的slave设备,发现抓不到I2c操作其它设备的波形,地址肯定是对的因为我用别的板子通过I2c来操作可以读写成功。

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

你用uart打印过CyFxUsbI2cTransfer的返回值是否是success吗?是否有错误代码?

0 Likes

打印log信息表明没有进去执行这个函数

0 Likes