TWR-KV58F220M I2C DOESN'T WORK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-KV58F220M I2C DOESN'T WORK

621 Views
berkcinar
Contributor I

I'm using MCUXpresso IDE v10.02_441 for TWR-KV58F220M programming.I connected TWR-KV58F220M to Elevator model(TWR-ELEV) and then I run "driver example" code in this processor.I followed "driver examples" --> "IC2" --> "interrupt_transfer" --> "read.me" instructions.
Firstly I connected A-71 to A-7 and A-72 to A-8 on A side expension port from TWR-ELEV.I didnt change anything from the example code but I debuged the code and I realized this code can't enter "i2c_slave_callback" function and stuck into "while(!g_SlaveCometionFlag){}" loop and output
"I2C example -- MasterInterrupt_SlaveInterrupt.
Master will send data :
0x 0 0x 1 0x 2 0x 3 0x 4 0x 5 0x 6 0x 7
0x 8 0x 9 0x a 0x b 0x c 0x d 0x e 0x f
0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e 0x1f"
and stop.
Can anyone help me about this topic?

Original Attachment has been moved to: interrupt_transfer.rar

Labels (2)
0 Kudos
2 Replies

401 Views
berkcinar
Contributor I

And I checked I2C0_SCL(83),I2C0_SDA(84),I2C1_SCL(137),I2C1_SCL(138) pins with oscilloscope and there are no change in signals. 

0 Kudos

401 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi BERK,

After connect the I2C signals on TWR-EVEL according to the readme file.

pinnum.png

J8.png

I can see the whole information from the terminal.

information.png

I import the i2c\interrupt_transfer example refer 'How to choose UART output during the project import' MCUXpresso IDE and Semihosting.

The on-board debugger use the CMSIS-DAP (Default Image) in TWR-KV58F220M-QSP.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos