How to configure clock for TCM on S32K3x?

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

How to configure clock for TCM on S32K3x?

跳至解决方案
717 次查看
Chris-Sun
Contributor II

am currently using the TCM feature of S32K3x in my RTD.

I encountered an issue while configuring the TCM clock:
According to the source code of RTD, it is necessary to configure a macro definition, CLOCK_IP_HAS_TCM_CM7_0_CLK,  before configuring the TCM clock.
8.png
However, there is currently no corresponding place for CLOCK_IP_HAS_TCM_CM7_0_CLK.
I also couldn't find any configuration options for the TCM clock in S32DS software.
Should I manually modify Clock_Ip_Cfg_Defines.h to add this configuration? 
(I'm using S32K312 Project)
 
The version information:
 

S32DS: 3.5

RTD: S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331

Best regards,
Chris

0 项奖励
回复
1 解答
695 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chris-Sun 

The PRTN2_COFB1_CLKEN[REQ62] field for Cortex-M7_0 is enabled at reset as you can see from the image below:

VaneB_0-1712956908322.png

B.R.

VaneB

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
696 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chris-Sun 

The PRTN2_COFB1_CLKEN[REQ62] field for Cortex-M7_0 is enabled at reset as you can see from the image below:

VaneB_0-1712956908322.png

B.R.

VaneB

 

0 项奖励
回复
658 次查看
Chris-Sun
Contributor II

Hi @VaneB 

Thank you for your response to my post.

Your response resolved my confusion.
 

Best regards,
Chris

0 项奖励
回复
124 次查看
XuanZhangming
Contributor II

Hi Mr.Sun:

------

From your appeal description, I cannot infer a solution to the problem. At present, K312 does not seem to support the enable configuration of TCM-CM7_0_CLK. Can you provide a more detailed solution.

The problem I am currently facing is that after the interrupt is enabled and triggered, I cannot enter the interrupt. I don't know if it is related to TCM-CM7_0_CLK not being enabled?

 

 

 

标记 (1)
0 项奖励
回复