K64F I2C + lwip_udpecho_demo

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K64F I2C + lwip_udpecho_demo

1,024件の閲覧回数
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 返信

813件の閲覧回数
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 件の賞賛
返信