K64F I2C + lwip_udpecho_demo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

K64F I2C + lwip_udpecho_demo

1,077 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

866 次查看
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 项奖励
回复