K64F I2C + lwip_udpecho_demo

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

K64F I2C + lwip_udpecho_demo

567 Views
vojt_chmoravec
Contributor I

Hi everyone,

 

I tried to use I2C in lwip_udpecho_demo with FreeRTOS (KSDK 1.2) for reading data from accelerometer FXOS8700CQ. I set  I2C: ports ( PTE24,PTE25) , slave address to 0x1D, baud 250k. There is also interrupt on PTC6 (data ready- INT1)  and IC0_IRQHandler- for this I had to include fsl_i2c_shared_function.h. There is no problem with Initializing I2C and accelerometer, but when I want to read data- call I2c driver function I2C_DRV_MasterReceiveDataBlocking- it will not return and program "freeze". Is there any collision with I2C and ethernet/lwip or I have to configure FreeRTOSConfig file? 

 

Note: Acc. data reading with i2c setup above  works in "clean" project without ethernet/lwip.

Labels (1)
0 Kudos
1 Reply

356 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Moravec:

Your issue might be related with this reported bug:

fsl i2c master busy

I would highly recommend you to migrate to KSDK v1.3, which includes the latest bug fixes and improvements.

Regards!

Jorge Gonzalez

0 Kudos