cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

Hello,

I have two circuit boards interconnected by a cable that communicate using I2C. The JCK-1 board contains the I2C master. THe PSU-1 board contains the slave. The code as it is written now is able to write information successfully to the slave.

However, I am having trouble getting the master to read back information from the slave. The master, after sending out the read request, just sits in the read status loop and hangs. I set up an array of 4 numbers as test information to keep things simple.

Please assist in troubleshooting my code. The issue probably is simple.

Best Regards,

Ben

0 Likes
Reply
1 Solution
Esteemed Contributor

Hi,

I modified my sample the following way

(1) Component(s) to be tested can be selected by enabling/disabling the schematic

(2) Re-target the device to CY8C5868AXI-LP035

(3) i2c pins are changed to match with your JCK project

(4) But my sample needs tty (UART), so I assigned rx/tx to usual P12[6]/P12[7] for USB-Serial connection.

moto

View solution in original post

2 Replies
Esteemed Contributor

Hi,

I'm just curious, but can you re-target my sample below and try i2c > scan and i2c > readreg ?

MCU Tester, a Swiss Army Knife for PSoC (CY8CKIT-059 version)

May be you need to comment out Start() functions of unused components, too.

moto

0 Likes
Reply
Esteemed Contributor

Hi,

I modified my sample the following way

(1) Component(s) to be tested can be selected by enabling/disabling the schematic

(2) Re-target the device to CY8C5868AXI-LP035

(3) i2c pins are changed to match with your JCK project

(4) But my sample needs tty (UART), so I assigned rx/tx to usual P12[6]/P12[7] for USB-Serial connection.

moto

View solution in original post