I solved the I2C clock setting problem according to your guide
I have one problem. I'm trying to use the Lpi2c_Ip_MasterEndTransfer function, but I get the following compiler error as below
""" function "Lpi2c_Ip_MasterEndTransfer" declared implicitly """
There is no problem using the other functions below in the Lpi2c_Ip.c file. The same phenomenon occurs when the location of the function is moved to Lpi2c_Ip_MasterDeinit for fear that the Lpi2c_Ip_MasterEndTransfer function has been deactivated by the define process. Is there a related error?
no problem functions
Lpi2c_Ip_MasterDeinit
Lpi2c_Ip_MasterInit
Lpi2c_Ip_MasterSendDataBlocking
Lpi2c_Ip_MasterReceiveDataBlocking
Hi
Please add Clock_Ip_ReferencePoints and configure AIPS_SLOW_CLK as the MODULE_CLK source of LPI2C.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi @Robin_Shen
As your guide, I added Clock_Ip_ReferencePoints and set it to AIPS_SLOW_CLK. The problem is that Baud rage is out of spec and causes an error. My target is 400kHz.
Please change the value of LPI2C Master configurations by refer to CALCULATE S32K312 I2C BAUDRATE IN DETAIL.
I solved the I2C clock setting problem according to your guide
I have one problem. I'm trying to use the Lpi2c_Ip_MasterEndTransfer function, but I get the following compiler error as below
""" function "Lpi2c_Ip_MasterEndTransfer" declared implicitly """
There is no problem using the other functions below in the Lpi2c_Ip.c file. The same phenomenon occurs when the location of the function is moved to Lpi2c_Ip_MasterDeinit for fear that the Lpi2c_Ip_MasterEndTransfer function has been deactivated by the define process. Is there a related error?
no problem functions
Lpi2c_Ip_MasterDeinit
Lpi2c_Ip_MasterInit
Lpi2c_Ip_MasterSendDataBlocking
Lpi2c_Ip_MasterReceiveDataBlocking
Please ask another question in the community if you have any questions that are not related to the original topic of an existing case. It helps to keep it clear.
I will be on leave for a week and my colleague will answer your question.