AnsweredAssumed Answered

K64F I2C + lwip_udpecho_demo

Question asked by Vojtěch Moravec on Dec 9, 2015
Latest reply on Dec 12, 2015 by Jorge_Gonzalez

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.