<?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>S32 SDKのトピックRe: s32k116 hardfault handler</title>
    <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396836#M2391</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;Link you&amp;nbsp; shared do not contain any solution how to do this task.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;You can read the stack in the memory view, there is no need to have the stacked PC stored in a variable, if you know how to read the stack.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please can you suggest how to read the stack..?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 16:17:39 GMT</pubDate>
    <dc:creator>Dinesh_Guleria</dc:creator>
    <dc:date>2022-01-10T16:17:39Z</dc:date>
    <item>
      <title>s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396636#M2388</link>
      <description>&lt;P&gt;Hi NXP Application team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do we have some sample code where&amp;nbsp;s32k116 hardfault handler is implemeted. So that we can trace from which instruction this hardfault occurred ?&lt;/P&gt;
&lt;P&gt;Can i use same process as mentioned in this link :--&lt;BR /&gt;&lt;A href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" target="_self"&gt;https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 08:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396636#M2388</guid>
      <dc:creator>Dinesh_Guleria</dc:creator>
      <dc:date>2022-01-10T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396824#M2390</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190759"&gt;@Dinesh_Guleria&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, we have no such example for S32K1xx (Cortex M0+).&lt;/P&gt;&lt;P&gt;The article you posted is for S32K14x (Cotex M4).&lt;/P&gt;&lt;P&gt;You can follow the steps here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault" target="_blank"&gt;https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can read the stack in the memory view, there is no need to have the stacked PC stored in a variable, if you know how to read the stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:52:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396824#M2390</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-10T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396836#M2391</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;Link you&amp;nbsp; shared do not contain any solution how to do this task.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;You can read the stack in the memory view, there is no need to have the stacked PC stored in a variable, if you know how to read the stack.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please can you suggest how to read the stack..?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1396836#M2391</guid>
      <dc:creator>Dinesh_Guleria</dc:creator>
      <dc:date>2022-01-10T16:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1398204#M2397</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190759"&gt;@Dinesh_Guleria&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There is a lot of useful information in the thread, please read it again.&lt;/P&gt;
&lt;P&gt;An example on S32K116:&lt;/P&gt;
&lt;P&gt;Read an unimplemented memory (0x80000):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;volatile uint32_t read = *((uint32_t*)0x00080000);&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;void HardFault_Handler(void){
  while(1){
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read the stack from the fault handler&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1642002157699.png" style="width: 493px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167436i46B82B325FB8CB2A/image-dimensions/493x354?v=v2" width="493" height="354" role="button" title="danielmartynek_0-1642002157699.png" alt="danielmartynek_0-1642002157699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In memory view, SP + 0x18&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1642002223526.png" style="width: 496px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167437iED089205A0AD72F8/image-dimensions/496x219?v=v2" width="496" height="219" role="button" title="danielmartynek_1-1642002223526.png" alt="danielmartynek_1-1642002223526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Find the instruction:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1642002287673.png" style="width: 529px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167438iF50482C4831A3217/image-dimensions/529x168?v=v2" width="529" height="168" role="button" title="danielmartynek_2-1642002287673.png" alt="danielmartynek_2-1642002287673.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 08:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1398204#M2397</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-13T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1400788#M2399</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply, it is clear to me.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Where exactly this figure comes from :--&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In memory view, &lt;STRONG&gt;SP + 0x18.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Please suggest.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Regards,&lt;BR /&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 08:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1400788#M2399</guid>
      <dc:creator>Dinesh_Guleria</dc:creator>
      <dc:date>2022-01-18T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 hardfault handler</title>
      <link>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1400990#M2400</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190759"&gt;@Dinesh_Guleria&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is a speudo code from ARM®v6-M Architecture Reference Manual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1642515374308.png" style="width: 595px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168001i404B4DDEA016E7B8/image-dimensions/595x168?v=v2" width="595" height="168" role="button" title="danielmartynek_0-1642515374308.png" alt="danielmartynek_0-1642515374308.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 14:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/s32k116-hardfault-handler/m-p/1400990#M2400</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-01-18T14:16:43Z</dc:date>
    </item>
  </channel>
</rss>

