Help me to understand following error ?

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

Help me to understand following error ?

1,122件の閲覧回数
sandipmule
Contributor II

I am using keil uvision 5 as programing environment for TRK-KEA128 board ,my task is to read data from and to write data into eeprom using I2C protocol .

For this I get Two files ready made that is i2c.h and i2c.c , I have included this files into my project  , here in my project  without  any modification I get a error that

i2c.c(675): error:  #167: argument of type "I2C_MemMapPtr *" is incompatible with parameter of type "I2C_MemMapPtr"

 

if anyone knows how to solve this please let me know !!!!

 

PFA

of  my project !!!!!

 

 

 

thank you !!!!

Original Attachment has been moved to: eeprom-interfacing.zip

タグ(2)
0 件の賞賛
返信
3 返答(返信)

983件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Sandip,

The type between argument and parameter not the same:

pastedImage_3.png

so the error is incompatible.

I send you a driver for KEA128, please see the attachment.

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

983件の閲覧回数
sandipmule
Contributor II

I have tried same project into S32 Design Studio and it works fine !!!! 

0 件の賞賛
返信

983件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi ,

Is header file for SKEZ128 the same ?

Is the same for the define of  "I2C_Type" ?

BR

Alice

0 件の賞賛
返信