Control I2C peripheral on a Denebola CX3 Kit

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

cross mob
lock attach
Attachments are accessible only for community members.
Takuya
Level 1
Level 1
First solution authored 5 sign-ins First reply posted

Hi,

I am working on a Denebola CX3 Kit ,using CX3RDK project.

I added master I2C write control using the following example project as a reference.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbi2cregmode

But the set signal is not output when I observed CN8 23 pin(CAM_CX3_I2C_SCL) and 24 pin (CAM_CX3_I2C_SDA)with an oscilloscope.

Do I need to configure anything else to be able to output I2C?

thanks and Regards,

Matsui

 

 

0 Likes
1 Solution

Hi,

Thank you for your reply,and thank you for checking my code.

I have resolved this problem.

When I check the uart , The CPU was not working because the power supply was not working properly.

 

Best Regards,

Matsui

 

View solution in original post

0 Likes
4 Replies
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi Matsui,

Could you share with us the return status of the CyU3PI2CTransmitBytes API?

What triggers an I2C write in the firmware? Could you explain your application in a bit more detail?

Best Regards,
AliAsgar

0 Likes
lock attach
Attachments are accessible only for community members.

Hi, AliAsgar,

 Thank you for your answer.

>Could you share with us the return status of the CyU3PI2CTransmitBytes API?

I don't have a debugger and a UART cable, so I will buy a UART cable and check the status.

 

>What triggers an I2C write in the firmware? Could you explain your application in a bit more detail?

I'm using See3CAM  CX3RDK,  e-CAM59CX3 project,

added I2C write control to esUVCUvcApplnInit function.

I supposed the master I2C Write is done by executing the esUVCUvcApplnInit function.

Do I need a trigger other than esUVCUvcApplnInit function execution to do I2C writes?

 

I've attached the source code with the master I2C write added.

thanks and Regards,

Matsui

 

 

 

0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

The source code looks fine to me. Could you please share the return status of the transmitBytes API using UART logging?

Also is there any activity on I2C lines, if yes please share the I2C traces with us.

Best Regards,
AliAsgar

0 Likes

Hi,

Thank you for your reply,and thank you for checking my code.

I have resolved this problem.

When I check the uart , The CPU was not working because the power supply was not working properly.

 

Best Regards,

Matsui

 

0 Likes