LPI2C_MasterTransferNonBlocking() Not Starting

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

LPI2C_MasterTransferNonBlocking() Not Starting

1,471 Views
chadgraham
Contributor V

Hello,

I am trying to convert from a basic I2C implementation to one that uses the non-blocking functions.  Using the lpi2c_interrupt_b2b_transfer_master example, I converted my read function to use LPI2C_MasterTransferNonBlocking(), but I am unable to get the I2C function to do anything on the bus even though it returns kStatus_Success and the handle now contains the data.  Converting it to LPI2C_MasterTransferBlocking causes the data to be sent so I'm certain that the setup portion is still working.

That said, I am suspecting that the handle may be the culprit.  If I hover over the handle after issuing the LPI2C_MasterTransferNonBlocking command, I can see that the handle has the correct information, but it seems to just stay in the '1' state.

Has anyone else experienced this kind of thing?  I've attached a slightly modified example of my read stream function.

 

Tags (2)
0 Kudos
Reply
1 Reply

1,458 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi chadgraham,

I can't find any problem in this short piece of code. Since none blocking function need interrupt, please check other related part and LPI2C initialize code. If the lpi2c_interrupt_b2b_transfer_master example can run well on your board, there should not be hardware problem.

 

Regards,

Jing

0 Kudos
Reply