<?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>S32KのトピックS32K148 FTM_PWM Error</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071073#M7366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm now developing a motor control integrated project with S32K148 EVB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After configuring driver with processor expert and initialize, there's problem happened when PWM update duty worked with ADC update or UART update, the FTM_PWM stopped updating after 2~3 times of adc/uart update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the register value I found something strange:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before ADC/UART task (everything works fine):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114781iCEA01158708E0121/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ADC/UART task(2~3 times):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114782iFC1AE8D61B32411B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, FTM_PWM works fine if there's no ADC/UART task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has this problem before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2020 05:20:42 GMT</pubDate>
    <dc:creator>renhaochen</dc:creator>
    <dc:date>2020-07-07T05:20:42Z</dc:date>
    <item>
      <title>S32K148 FTM_PWM Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071073#M7366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm now developing a motor control integrated project with S32K148 EVB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After configuring driver with processor expert and initialize, there's problem happened when PWM update duty worked with ADC update or UART update, the FTM_PWM stopped updating after 2~3 times of adc/uart update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the register value I found something strange:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before ADC/UART task (everything works fine):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114781iCEA01158708E0121/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ADC/UART task(2~3 times):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114782iFC1AE8D61B32411B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, FTM_PWM works fine if there's no ADC/UART task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has this problem before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071073#M7366</guid>
      <dc:creator>renhaochen</dc:creator>
      <dc:date>2020-07-07T05:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 FTM_PWM Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071074#M7367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Ren Hao Chen,&lt;/P&gt;&lt;P&gt;Not sure why your ADC/UART reconfigure FTM module.&lt;BR /&gt;Please refer: &lt;A href="https://mp.weixin.qq.com/s?__biz=MzI0MDk0ODcxMw==&amp;amp;mid=2247485503&amp;amp;idx=1&amp;amp;sn=48630ea7b717ea2a71d6b8f642e8dc16&amp;amp;chksm=e9124cb9de65c5af15bd7746ec7b41761afd9db99e08723d93353fc102715a2c4a66159cffe7&amp;amp;scene=21#wechat_redirect"&gt;浅谈嵌入式MCU软件开发之条件断点的设置与使用详解(以S32DS IDE + U-Multink debugger为例介绍)&lt;/A&gt;&lt;BR /&gt;Set conditional breakpoint in your project and findout which line modify it.&lt;BR /&gt;According to your image, I think you can set conditional breakpoint show below:&lt;BR /&gt;((FTM4-&amp;gt;SC)&amp;amp;FTM_SC_CLKS_MASK) == FTM_SC_CLKS(0)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Managing conditional breakpoints.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114800i27A2383A2E11EEDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Managing conditional breakpoints.png" alt="Managing conditional breakpoints.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 08:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071074#M7367</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-07-07T08:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 FTM_PWM Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071075#M7368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advises.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using this break point method, I found out that the register value doesn't change at all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114816i82FE9884046BCC2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the global variable pointer "ftmStatePtr[0]" provided by Processor Expert has changed, thus the PWM output is continue, just without any value updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By tracing the codes, this situation seems happened in " one of " DEV_ASSERT macro, not in a specific line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114817i7CE9D8959A415F49/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any idea for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 10:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071075#M7368</guid>
      <dc:creator>renhaochen</dc:creator>
      <dc:date>2020-07-07T10:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 FTM_PWM Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071076#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&amp;nbsp;Ren Hao Chen,&lt;/SPAN&gt;&lt;BR /&gt;Sorry for my delay!&lt;/P&gt;&lt;P&gt;Have you try to use Watchpoint with Condition to find out the issue?&lt;/P&gt;&lt;P&gt;for example: (ftmStateStruct).ftmMode==FTM_MODE_NOT_INITIALIZED&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Add Watchpoint.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116192i1C5E86ADA4F0309F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add Watchpoint.png" alt="Add Watchpoint.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Watchpoint with Condition.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116193iBA4CA9424C411F10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Watchpoint with Condition.png" alt="Watchpoint with Condition.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 09:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-FTM-PWM-Error/m-p/1071076#M7369</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-07-17T09:24:06Z</dc:date>
    </item>
  </channel>
</rss>

