s32k312 I2C Clock Source

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

s32k312 I2C Clock Source

跳至解决方案
678 次查看
Hoon
Contributor III

Hoon_0-1750297620843.png

 

 

标记 (1)
0 项奖励
回复
1 解答
637 次查看
Hoon
Contributor III

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

 

 

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
659 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Please add Clock_Ip_ReferencePoints and configure AIPS_SLOW_CLK as the MODULE_CLK source of LPI2C.

Clock_Ip_ReferencePoints LPI2C AIPS_SLOW_CLK.png

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.
-------------------------------------------------------------------------------

0 项奖励
回复
647 次查看
Hoon
Contributor III

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.

Hoon_1-1750378063894.png

Hoon_3-1750378197654.png

 

0 项奖励
回复
642 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please change the value of LPI2C Master configurations by refer to CALCULATE S32K312 I2C BAUDRATE IN DETAIL.

0 项奖励
回复
638 次查看
Hoon
Contributor III

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

 

 

 

0 项奖励
回复
633 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复