<?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 Hard Fault using GetPeriodTicks function of TimerUnit in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290325#M2087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using Prosessor Expert for the programmation of the K60D100M tower.&lt;/P&gt;&lt;P&gt;I've added a Timer Unit, and i want to use the GetPeriodTicks function but at the end of that function, after the return,&lt;/P&gt;&lt;P&gt;the programm stuck in the hard fault.&lt;/P&gt;&lt;P&gt;I had a look to the HSFR Register but the of VECTTBL and FORCED bit have value 0&lt;/P&gt;&lt;P&gt;The timers works well, and i can even chanche the frequency by using the SetPeriodTicks function, but when i try to get the&lt;/P&gt;&lt;P&gt;value of tick per period i get stuck in the PE_ISR(Cpu_ivINT_Hard_Fault).&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zeno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 15:26:13 GMT</pubDate>
    <dc:creator>zenomaspoli</dc:creator>
    <dc:date>2013-11-20T15:26:13Z</dc:date>
    <item>
      <title>Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290325#M2087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using Prosessor Expert for the programmation of the K60D100M tower.&lt;/P&gt;&lt;P&gt;I've added a Timer Unit, and i want to use the GetPeriodTicks function but at the end of that function, after the return,&lt;/P&gt;&lt;P&gt;the programm stuck in the hard fault.&lt;/P&gt;&lt;P&gt;I had a look to the HSFR Register but the of VECTTBL and FORCED bit have value 0&lt;/P&gt;&lt;P&gt;The timers works well, and i can even chanche the frequency by using the SetPeriodTicks function, but when i try to get the&lt;/P&gt;&lt;P&gt;value of tick per period i get stuck in the PE_ISR(Cpu_ivINT_Hard_Fault).&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zeno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290325#M2087</guid>
      <dc:creator>zenomaspoli</dc:creator>
      <dc:date>2013-11-20T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290326#M2088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might add a special Processor Expert component which helps debugging hard faults:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/" title="http://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/"&gt;A Processor Expert Component to Help with Hard Faults | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside of that: which timer did you use? You might get a hardfault if you are using a realtime clock timer source and you have it not clocked (no battery attached).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290326#M2088</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-11-20T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290327#M2089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a TimerUnit_LDD not the RTC_LDD, i'll have a look to the component!&lt;BR /&gt;thank you Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290327#M2089</guid>
      <dc:creator>zenomaspoli</dc:creator>
      <dc:date>2013-11-20T15:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290328#M2090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please post here some simple project in order to reproduce it on our side? generally such behavior should not occur in case of using LDD components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 07:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290328#M2090</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2013-11-21T07:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290329#M2091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a piece of program that is already enough for get the hadr fault, this program will never reach &lt;/P&gt;&lt;P&gt;the "fcounter=1/TU1_GetInputFrequency(TimerData)*(uint32_t)Period;" command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDD_TError Error;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TU1Properties.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42145iD13E171B02AD23EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="TU1Properties.jpg" alt="TU1Properties.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDD_TDeviceData* DACData;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDD_TDeviceData* TimerData;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDD_TDeviceData* Led1Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TU1_TValueType*&amp;nbsp; Period;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;&amp;nbsp; PE_low_level_init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Led1Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO1_Init(NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; DACData&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp; DA1_Init(NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; TimerData =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TU1_Init(NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Error=TU1_GetPeriodTicks(TimerData,Period);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fcounter=1/TU1_GetInputFrequency(TimerData)*(uint32_t)Period;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #ifdef PEX_RTOS_START&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PEX_RTOS_START();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; #endif&lt;/P&gt;&lt;P&gt; } &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 11:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290329#M2091</guid>
      <dc:creator>zenomaspoli</dc:creator>
      <dc:date>2013-11-21T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault using GetPeriodTicks function of TimerUnit</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290330#M2092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Founded out !&lt;BR /&gt;doing like that the pointer 'Period' wasent inizialised,&lt;BR /&gt;I've added an ' TU1_TValueType&amp;nbsp; Period ' and chanched the old in ' TU1_TValueType*&amp;nbsp; Periodptr ',&lt;/P&gt;&lt;P&gt;and than just: Periodptr=&amp;amp;Period;&lt;/P&gt;&lt;P&gt;I dont know if its the best way, but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 12:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Hard-Fault-using-GetPeriodTicks-function-of-TimerUnit/m-p/290330#M2092</guid>
      <dc:creator>zenomaspoli</dc:creator>
      <dc:date>2013-11-21T12:47:48Z</dc:date>
    </item>
  </channel>
</rss>

