<?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: About the S32k142 timer Capture initializer crash in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1956237#M12656</link>
    <description>&lt;P&gt;Thank you very much for your reply，&lt;SPAN&gt;BR, Daniel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After I changed it to a global variable, it worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_0-1726637309160.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299591i6D039F3C16FDDD6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_0-1726637309160.png" alt="Lw2_0-1726637309160.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me solve the problem.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 05:31:48 GMT</pubDate>
    <dc:creator>Lw2</dc:creator>
    <dc:date>2024-09-18T05:31:48Z</dc:date>
    <item>
      <title>About the S32k142 timer Capture initializer crash</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1947789#M12642</link>
      <description>&lt;P&gt;When I use s32k142, I encounter the abnormal phenomenon of timer capture, hope someone can help to see the reason, thank you here. Let me describe the problem first.&lt;/P&gt;&lt;P&gt;I first explain the code functions: 1, using timer 0 as PWM output 2, using timer 1 as input capture 3, using timer 2 as timing count, 4 using ADC0 ADC1 channel for ADC acquisition&lt;/P&gt;&lt;P&gt;When I initialized the functions of each module in main, all the functions were running normally, as shown in the configuration figure below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_0-1725506892198.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297228iC877548691DC4154/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_0-1725506892198.png" alt="Lw2_0-1725506892198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I wrap all the initialization into a function and input a PWM signal to any of the capture pins, the running program crashes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_2-1725508618243.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297236i03DBFEADF4C71D57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_2-1725508618243.png" alt="Lw2_2-1725508618243.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_3-1725508714099.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297238i462C46D13CAB8EE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_3-1725508714099.png" alt="Lw2_3-1725508714099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I block the timer capture configuration, the program works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_4-1725508916120.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297239i39480D0033924C0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_4-1725508916120.png" alt="Lw2_4-1725508916120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is the cause of this, why the timer capture configuration function into its own wrapped function will crash phenomenon.I have put the source code above, I hope it can be solved, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 04:08:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1947789#M12642</guid>
      <dc:creator>Lw2</dc:creator>
      <dc:date>2024-09-05T04:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: About the S32k142 timer Capture initializer crash</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1951095#M12650</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209549"&gt;@Lw2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you test it with these structures being global not local?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1725970233864.png" style="width: 321px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298270iAE74E3F341BE2503/image-dimensions/321x87?v=v2" width="321" height="87" role="button" title="danielmartynek_0-1725970233864.png" alt="danielmartynek_0-1725970233864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1951095#M12650</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-09-10T12:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: About the S32k142 timer Capture initializer crash</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1956237#M12656</link>
      <description>&lt;P&gt;Thank you very much for your reply，&lt;SPAN&gt;BR, Daniel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After I changed it to a global variable, it worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lw2_0-1726637309160.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299591i6D039F3C16FDDD6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lw2_0-1726637309160.png" alt="Lw2_0-1726637309160.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me solve the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 05:31:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/About-the-S32k142-timer-Capture-initializer-crash/m-p/1956237#M12656</guid>
      <dc:creator>Lw2</dc:creator>
      <dc:date>2024-09-18T05:31:48Z</dc:date>
    </item>
  </channel>
</rss>

