<?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: KL25Z UART updating tpm period in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700820#M43110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please refer the method description in '&lt;A _jive_internal="true" href="https://community.nxp.com/thread/306244"&gt;Tracking down Hard Faults&lt;/A&gt;' first.&lt;BR /&gt;And you can also tell me how to appear the Hard Fault. For example: What message need I send to the UART1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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, 10 Oct 2017 03:12:05 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2017-10-10T03:12:05Z</dc:date>
    <item>
      <title>KL25Z UART updating tpm period</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700819#M43109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&amp;nbsp;&lt;BR /&gt;I have 8 servos in PWM channels of KL25Z that i want to control via serial from my Visual Studio solution.&lt;/P&gt;&lt;P&gt;I'm using UART1 to receive data and update the tpm period that control the servos.&lt;/P&gt;&lt;P&gt;My problem is that i get a HardFault when i call the UpdateServo function from the UART1 IRQHandler.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thinking it's happening because i'm calling it from the interrupt handler.&lt;/P&gt;&lt;P&gt;Any idea how i can fix this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCUXpresso project are attached.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337579"&gt;BipedRobot.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 23:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700819#M43109</guid>
      <dc:creator>nicas16</dc:creator>
      <dc:date>2017-10-08T23:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z UART updating tpm period</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700820#M43110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please refer the method description in '&lt;A _jive_internal="true" href="https://community.nxp.com/thread/306244"&gt;Tracking down Hard Faults&lt;/A&gt;' first.&lt;BR /&gt;And you can also tell me how to appear the Hard Fault. For example: What message need I send to the UART1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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, 10 Oct 2017 03:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700820#M43110</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-10-10T03:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z UART updating tpm period</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700821#M43111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tracked the hard fault. It happens when I call any fls_tpm.h function (TPM_StartTimer(),&amp;nbsp;TPM_UpdateChnlEdgeLevelSelect()...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can send the message &lt;BR /&gt;85 1 30 40 50 60 70 80 90 100 68&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;85 -&amp;gt; Header&lt;BR /&gt;1 -&amp;gt; Command&lt;/P&gt;&lt;P&gt;30, 40, 50, 60, 70, 80, 90, 100 -&amp;gt; Servo Data&lt;/P&gt;&lt;P&gt;68 -&amp;gt; Xor for byte 0 to byte 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700821#M43111</guid>
      <dc:creator>nicas16</dc:creator>
      <dc:date>2017-10-10T22:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z UART updating tpm period</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700822#M43112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the error \o/&lt;/P&gt;&lt;P&gt;It was in my servo struct. I have 8 servos but only 7 address in my array ... My bad&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 02:49:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-UART-updating-tpm-period/m-p/700822#M43112</guid>
      <dc:creator>nicas16</dc:creator>
      <dc:date>2017-10-11T02:49:11Z</dc:date>
    </item>
  </channel>
</rss>

