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
1,868 Views
Chris-Sun
Contributor III

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
1,846 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
1,847 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
1,809 Views
Chris-Sun
Contributor III

Hi @VaneB 

Thank you for your response to my post.

Your response resolved my confusion.
 

Best regards,
Chris

0 Kudos
Reply
1,275 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
%3CLINGO-SUB%20id%3D%22lingo-sub-1845932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20configure%20clock%20for%20TCM%20on%20S32K3x%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1845932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EI%26nbsp%3B%3C%2FSPAN%3Eam%20currently%20using%20the%3CSPAN%3E%26nbsp%3BTCM%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efeature%20of%20S32K3x%20in%20my%20RTD.%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3EI%20encountered%20an%20issue%20while%20configuring%20the%20TCM%20clock%3A%3C%2FDIV%3E%3CDIV%3EAccording%20to%20the%20source%20code%20of%20RTD%2C%20it%20is%20necessary%20to%20configure%20a%20macro%20definition%2C%20CLOCK_IP_HAS_TCM_CM7_0_CLK%2C%26nbsp%3B%20before%20configuring%20the%20TCM%20clock.%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20548px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20548px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273402iEF74256F219EE819%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%228.png%22%20alt%3D%228.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3EHowever%2C%20there%20is%20currently%20no%20corresponding%20place%20for%20CLOCK_IP_HAS_TCM_CM7_0_CLK.%3C%2FDIV%3E%3CDIV%3EI%20also%20couldn't%20find%20any%20configuration%20options%20for%20the%20TCM%20clock%20in%20S32DS%20software.%3C%2FDIV%3E%3CDIV%3EShould%20I%20manually%20modify%20Clock_Ip_Cfg_Defines.h%20to%20add%20this%20configuration%3F%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E(I'm%20using%20S32K312%20Project)%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3EThe%20version%20information%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3ES32DS%3A%203.5%3C%2FP%3E%3CP%3ERTD%3A%26nbsp%3B%3CSPAN%3ES32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBest%20regards%2C%3CBR%20%2F%3EChris%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1971549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20configure%20clock%20for%20TCM%20on%20S32K3x%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%20Mr.Sun%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E------%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EFrom%20your%20appeal%20description%2C%20I%20cannot%20infer%20a%20solution%20to%20the%20problem.%20At%20present%2C%20K312%20does%20not%20seem%20to%20support%20the%20enable%20configuration%20of%20TCM-CM7_0_CLK.%20Can%20you%20provide%20a%20more%20detailed%20solution.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20problem%20I%20am%20currently%20facing%20is%20that%20after%20the%20interrupt%20is%20enabled%20and%20triggered%2C%20I%20cannot%20enter%20the%20interrupt.%20I%20don't%20know%20if%20it%20is%20related%20to%20TCM-CM7_0_CLK%20not%20being%20enabled%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1846611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20configure%20clock%20for%20TCM%20on%20S32K3x%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1846611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20for%20your%20response%20to%20my%20post.%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3EYour%20response%20resolved%20my%20confusion.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%3EBest%20regards%2C%3CBR%20%2F%3EChris%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1846345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20configure%20clock%20for%20TCM%20on%20S32K3x%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1846345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228651%22%20target%3D%22_blank%22%3E%40Chris-Sun%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20PRTN2_COFB1_CLKEN%5BREQ62%5D%20field%20for%20Cortex-M7_0%20is%20enabled%20at%20reset%20as%20you%20can%20see%20from%20the%20image%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_0-1712956908322.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1712956908322.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273504i0BDD7B5B3F2F1104%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_0-1712956908322.png%22%20alt%3D%22VaneB_0-1712956908322.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EB.R.%3C%2FP%3E%0A%3CP%3EVaneB%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E