<?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のトピックRe: Installing  Handler cause &amp;quot;HardFault&amp;quot;</title>
    <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780173#M2454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks to me that the interrupt vector is placed in FLASH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to use InstallHandler function the interrupt vector must be placed in RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently do not have the linker file for KEIL, but there should be a symbol to place the interrupt vector table in RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 07:54:53 GMT</pubDate>
    <dc:creator>raresvasile</dc:creator>
    <dc:date>2018-02-09T07:54:53Z</dc:date>
    <item>
      <title>Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780168#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am Using Keil as S32K IDE,Now I have a problem&amp;nbsp;.EveryTime I want to execute&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/34805i8DB8FBB44991B736/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;It will Enter HardFault,I don't know why,because in S32 DS ,The same code works well,Can anybody help me to solve this issue? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 04:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780168#M2449</guid>
      <dc:creator>kawadaxi</dc:creator>
      <dc:date>2018-02-02T04:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780169#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got no the solution for your case but I got a way to investigate about&amp;nbsp;the reason of that fault (I'm trying to resolve a similar issue on&amp;nbsp;a project&amp;nbsp;based a IAR&amp;nbsp;tool chain).&lt;/P&gt;&lt;P&gt;Put a break point into the Hard fault handler position (in the ICF file that point is positioned in the start driver "startup_S32K144.s".&lt;/P&gt;&lt;P&gt;When the failure happen the execution should stop there.&lt;/P&gt;&lt;P&gt;Then check HFSR = HardFault Status Register, which should contain the&amp;nbsp;information about what&amp;nbsp;caused the&amp;nbsp;HardFault handler activation.&lt;/P&gt;&lt;P&gt;There are different reasons according to the bit assignments:&lt;/P&gt;&lt;P&gt;b31&amp;nbsp;- DEBUGEVT: Reserved for debug reasons.&lt;/P&gt;&lt;P&gt;b30 - FORCED: Check the other fault status registers (I think is intended to check the CFSR)&lt;/P&gt;&lt;P&gt;b02 - VECTTBL: All other bits are reserved.&lt;/P&gt;&lt;P&gt;For forther informations you can check the links below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/Cihdjcfc.html"&gt;HardFault Status Register&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/Cihcfefj.html"&gt;Configurable Fault Status Register&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let me know if you find a way to get through this because I'm stuck as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 16:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780169#M2450</guid>
      <dc:creator>andreaolivieri1</dc:creator>
      <dc:date>2018-02-08T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780170#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You may refer also to&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;https://community.nxp.com/docs/DOC-334902&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont use Keil, nor IAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 16:54:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780170#M2451</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-02-08T16:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780171#M2452</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;Keil has a similar appnote on fault exceptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.keil.com/appnotes/files/apnt209.pdf" title="http://www.keil.com/appnotes/files/apnt209.pdf"&gt;http://www.keil.com/appnotes/files/apnt209.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780171#M2452</guid>
      <dc:creator>robertboys</dc:creator>
      <dc:date>2018-02-08T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780172#M2453</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;Keil Tech Support recommends increasing the Stack and Heap values in startup_xyx.s&lt;/P&gt;&lt;P&gt;They assume your program is running OK until you add this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780172#M2453</guid>
      <dc:creator>robertboys</dc:creator>
      <dc:date>2018-02-08T22:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780173#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks to me that the interrupt vector is placed in FLASH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to use InstallHandler function the interrupt vector must be placed in RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently do not have the linker file for KEIL, but there should be a symbol to place the interrupt vector table in RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 07:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780173#M2454</guid>
      <dc:creator>raresvasile</dc:creator>
      <dc:date>2018-02-09T07:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780174#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well...&lt;/P&gt;&lt;P&gt;The Linker file I was working with was the one provided in the SDK for the S32K IDE (S32ds with IAR tool chain): S32K144_64_flash.icf which differs from S32K144_64_ram.icf right in the vector table which is defined in RAM (S32K144_64_ram.icf&amp;nbsp; is provided in the same SDK's example).&lt;BR /&gt;In both cases I have the same problem.&lt;BR /&gt;I believe that I don't even reach the handler installation because the Hard failure is risen up after the 1st attempt to set up the configuration for the Fault Mode Status (FMS) register of the FTM0.&lt;/P&gt;&lt;P&gt;Below the sequence visualized:&lt;/P&gt;&lt;P&gt;Here's the start up take place:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4707iC492ED51325FFF59/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_1.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, after the main invocation,&amp;nbsp;there is the initialization of the FTM0 unit...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4750i49822E524DA8F6A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_2.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Inside that function there is a so called&amp;nbsp;"FTM_DRV_Reset" which try the 1st access to the timer...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4799i1DF40A65C4B09C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_3.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Inside the very 1st WR operation is a reset of the FMS:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4838i9EF7632F7E452E3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_4.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That operation triggers the exception...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_5.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4865i60C27D987B4A5E79/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_5.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_5.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to HFSR is a forced exception, so I checked CFSR = 0x00008200,&lt;/P&gt;&lt;P&gt;The last access was at 0x40038074 (address of "FTM0_FMS").&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="[S32K] - Re_Installing_Handler_cause_HardFault_7.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4912iE363CA5C1F58793B/image-size/large?v=v2&amp;amp;px=999" role="button" title="[S32K] - Re_Installing_Handler_cause_HardFault_7.jpg" alt="[S32K] - Re_Installing_Handler_cause_HardFault_7.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using of the wrong linker file is not good. So&amp;nbsp;thanks for the hint...That mistake in any case would be another problem to be fixed for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 08:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780174#M2455</guid>
      <dc:creator>andreaolivieri1</dc:creator>
      <dc:date>2018-02-09T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780175#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the clock for the FTM instance is not enabled in PCC. This is why it goes to HardFault on the first register access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use clock manager to enable the clock for FTM instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780175#M2456</guid>
      <dc:creator>raresvasile</dc:creator>
      <dc:date>2018-02-09T09:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780176#M2457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you a lot mate!!!&lt;/P&gt;&lt;P&gt;It works...&lt;/P&gt;&lt;P&gt;That was the right solution!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:16:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780176#M2457</guid>
      <dc:creator>andreaolivieri1</dc:creator>
      <dc:date>2018-02-09T09:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Installing  Handler cause "HardFault"</title>
      <link>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780177#M2458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, The FTM needs the clock settings indeed.&lt;/P&gt;&lt;P&gt;If no set, the initial phase will lead to&amp;nbsp;DefaultISR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 04:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Installing-Handler-cause-quot-HardFault-quot/m-p/780177#M2458</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-08-03T04:24:56Z</dc:date>
    </item>
  </channel>
</rss>

