How to use I2C interface in cypd3125 of cy4531?

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
rttt_3611331
Level 3
Level 3
First like given

Hello,

     I want to use my pc to connect cypd3125. However the HPI Interface not open,and then I deleted the hpi code and try to use I2c connect directly. But I got nothing.

In my PC,I use “CyI2cWrite” to send data。

pastedImage_0.png

And cypd3125 in cy4531, I use callback in "i2c_scb_init" to get data.

pastedImage_1.png

And I set breakpoint in i2c_command, then use cyi2cwrite to send data, but not stoped. (I call i2c_init in main function).

thanks.

0 Likes
1 Reply
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hello,

Can you share your PSoC Creator project on CYPD3125?

Regards,

Rajath

0 Likes