<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: trigmux clock enable in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1816932#M11941</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Kapila,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your hint.&lt;BR /&gt;I didn't check the reference manual carefully before, I only looked at AN5303SW\S32K_FTM_Features\src\S32K_FTM_Features.c and didn't realize that the header file used by this project is too old (S32K144RM Rev. 1, Draft D, 10/2015).&lt;BR /&gt;After checking the latest &lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K1XXRM" target="_self"&gt;&lt;SPAN&gt;S32K1XXRM&lt;/SPAN&gt;&lt;/A&gt; Rev.14.1, I agree with you. TRGMUX is not gated by PCC[CGC]. PCC_TRGMUX_INDEX does not exist in the new header file used by your project, so an error occurs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PCC[CGC] TRGMUX S32K144RM Rev1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265389i4CD54BAEE11948B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCC[CGC] TRGMUX S32K144RM Rev1.png" alt="PCC[CGC] TRGMUX S32K144RM Rev1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Referring to the trgmux_lpit_s32k144 example in &lt;U&gt;S32K1 SDK 4.0.3&lt;/U&gt; in S32DS v3.4, there should be no need to enable the clock through PCC[CGC] like other peripherals.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 01:32:44 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2024-02-28T01:32:44Z</dc:date>
    <item>
      <title>trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1813947#M11903</link>
      <description>&lt;P&gt;I am using S32K144EVB. Is trigmux clock enable required?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1813947#M11903</guid>
      <dc:creator>Kapila</dc:creator>
      <dc:date>2024-02-22T16:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1814168#M11908</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Based on your previous question, it seems that you are referring to AN5303. TRGMUX_Init() in &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5303SW&amp;amp;docLang=en" target="_self"&gt;AN5303SW&lt;/A&gt;\S32K_FTM_Features\src\S32K_FTM_Features.c enable clock for TRGMUX module. If you do not enable clock before operating the module's register, you may get a hardfault.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 00:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1814168#M11908</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-02-23T00:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1814770#M11916</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Robin_Shen&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Greetings. I accept your remark. However as per the S32K-RM there is no PCC config register for TRGMUX to enable clock (Page no 606) PCC-&amp;gt;PCCn[PCC_TRGMUX_INDEX] = PCC_PCCn_CGC_MASK; // Enable clock for TRGMUX module and the compiler will not accept the statement. There is some conflict of selection statement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kapila&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;I&gt;&lt;SPAN class=""&gt;&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/SPAN&gt;Reply&lt;SPAN class=""&gt;&lt;I&gt;&lt;SPAN class=""&gt;&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/SPAN&gt;Forward&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1814770#M11916</guid>
      <dc:creator>Kapila</dc:creator>
      <dc:date>2024-02-23T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1815407#M11925</link>
      <description>&lt;P&gt;HI&amp;nbsp; Robin_Shen,&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;You are correct I am referring to AN5303 and TRGMUX_Init() function. I have copied the same function however there is&amp;nbsp; compilation error. Pl see the following error message.&lt;/P&gt;&lt;P&gt;14:25:30 **** Build of configuration Debug for project S32K144_Project_FTM ****&lt;BR /&gt;make -j4 all&lt;BR /&gt;Building file: ../src/FTM.c&lt;BR /&gt;Building file: ../src/clocks_and_modes.c&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;Building file: ../src/main.c&lt;BR /&gt;arm-none-eabi-gcc "@src/FTM.args" -MMD -MP -MF"src/FTM.d" -MT"src/FTM.o" -o "src/FTM.o" "../src/FTM.c"&lt;BR /&gt;arm-none-eabi-gcc "@src/FTM.args" -MMD -MP -MF"src/clocks_and_modes.d" -MT"src/clocks_and_modes.o" -o "src/clocks_and_modes.o" "../src/clocks_and_modes.c"&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;arm-none-eabi-gcc "@src/FTM.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"&lt;BR /&gt;Building file: ../Project_Settings/Startup_Code/startup.c&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;arm-none-eabi-gcc "@Project_Settings/Startup_Code/startup.args" -MMD -MP -MF"Project_Settings/Startup_Code/startup.d" -MT"Project_Settings/Startup_Code/startup.o" -o "Project_Settings/Startup_Code/startup.o" "../Project_Settings/Startup_Code/startup.c"&lt;BR /&gt;../src/FTM.c: In function 'PDB0_Init':&lt;BR /&gt;../src/FTM.c:160:1: error: 'FSL_NVIC' undeclared (first use in this function)&lt;BR /&gt;FSL_NVIC-&amp;gt;ISER[PDB0_IRQn / 32] |= (1 &amp;lt;&amp;lt; (PDB0_IRQn % 32)); // Enable interrupt&lt;BR /&gt;^&lt;BR /&gt;../src/FTM.c:160:1: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;../src/FTM.c: In function 'TRGMUX_Init':&lt;BR /&gt;../src/FTM.c:174:11: error: 'PCC_TRGMUX_INDEX' undeclared (first use in this function)&lt;BR /&gt;PCC-&amp;gt;PCCn[PCC_TRGMUX_INDEX] = PCC_PCCn_CGC_MASK; // Enable clock for TRGMUX module&lt;BR /&gt;^&lt;BR /&gt;make: *** [src/subdir.mk:26: src/FTM.o] Error 1&lt;BR /&gt;make: *** Waiting for unfinished jobs....&lt;BR /&gt;Finished building: ../src/clocks_and_modes.c&lt;BR /&gt;Finished building: ../Project_Settings/Startup_Code/startup.c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Finished building: ../src/main.c&lt;/P&gt;&lt;P&gt;14:25:33 Build Finished (took 3s.213ms)&lt;/P&gt;&lt;P&gt;I have read the S32 RM regarding the PCC configuration registers. My observation is the TRGMUX peripheral does not have the PCC_TRGMUX_INDEX. Hence the compiler could not detect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pl suggest me the suggestion.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kapila&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 09:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1815407#M11925</guid>
      <dc:creator>Kapila</dc:creator>
      <dc:date>2024-02-26T09:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1816932#M11941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Kapila,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your hint.&lt;BR /&gt;I didn't check the reference manual carefully before, I only looked at AN5303SW\S32K_FTM_Features\src\S32K_FTM_Features.c and didn't realize that the header file used by this project is too old (S32K144RM Rev. 1, Draft D, 10/2015).&lt;BR /&gt;After checking the latest &lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K1XXRM" target="_self"&gt;&lt;SPAN&gt;S32K1XXRM&lt;/SPAN&gt;&lt;/A&gt; Rev.14.1, I agree with you. TRGMUX is not gated by PCC[CGC]. PCC_TRGMUX_INDEX does not exist in the new header file used by your project, so an error occurs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PCC[CGC] TRGMUX S32K144RM Rev1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265389i4CD54BAEE11948B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCC[CGC] TRGMUX S32K144RM Rev1.png" alt="PCC[CGC] TRGMUX S32K144RM Rev1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Referring to the trgmux_lpit_s32k144 example in &lt;U&gt;S32K1 SDK 4.0.3&lt;/U&gt; in S32DS v3.4, there should be no need to enable the clock through PCC[CGC] like other peripherals.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 01:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1816932#M11941</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-02-28T01:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1820446#M11962</link>
      <description>&lt;P&gt;HI Robin&lt;/P&gt;&lt;P&gt;Greetings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it mean There is no need to enable PCC clock in TRGMUX_init()? Also the core does not contain PCC configuration register?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pl clarify regarding error related to NVIC interrupt.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kanakaraju Kapila&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 09:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1820446#M11962</guid>
      <dc:creator>Kapila</dc:creator>
      <dc:date>2024-03-04T09:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: trigmux clock enable</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1822220#M11975</link>
      <description>&lt;P&gt;There is no need to enable PCC clock in TRGMUX_init(). The ARM Cortex M4 core does not contain PCC configuration register.&lt;BR /&gt;If you are using S32K1 SDK in S32DS, just call &lt;STRONG&gt;INT_SYS_EnableIRQ&lt;/STRONG&gt;(IRQn_Type irqNumber)&lt;BR /&gt;&lt;EM&gt;SDK/platform/drivers/src/interrupt/interrupt_manager.c&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 08:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/trigmux-clock-enable/m-p/1822220#M11975</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-03-06T08:03:53Z</dc:date>
    </item>
  </channel>
</rss>

