How to configure clock for TCM on S32K3x?

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

How to configure clock for TCM on S32K3x?

Jump to solution
717 Views
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 Kudos
Reply
1 Solution
695 Views
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

 

View solution in original post

0 Kudos
Reply
3 Replies
696 Views
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 Kudos
Reply
658 Views
Chris-Sun
Contributor II

Hi @VaneB 

Thank you for your response to my post.

Your response resolved my confusion.
 

Best regards,
Chris

0 Kudos
Reply
124 Views
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?

 

 

 

Tags (1)
0 Kudos
Reply