Help me to understand following error ?

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

Help me to understand following error ?

1,123 Views
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

Tags (2)
0 Kudos
Reply
3 Replies

984 Views
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!
-----------------------------------------------------------------------------------------------------------------------

984 Views
sandipmule
Contributor II

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

0 Kudos
Reply

984 Views
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 Kudos
Reply