<?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: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1505811#M17062</link>
    <description>&lt;P&gt;Hi Dan，&lt;/P&gt;&lt;P&gt;I added MPU_ENABLE to the compiler options, &lt;SPAN&gt;rebuild&amp;nbsp;&lt;/SPAN&gt;the program and find that the program can run correctly. It is surprising that the code generated by the same RTD version is different from the example. But the problem was solved.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 01:17:03 GMT</pubDate>
    <dc:creator>xflong</dc:creator>
    <dc:date>2022-08-13T01:17:03Z</dc:date>
    <item>
      <title>HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1499455#M16809</link>
      <description>&lt;P&gt;hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;when i using greenhills compiler plugin compile the s32k324 mcal program port from s32ds v3.4's example application(Platform_Multicore_SingleElf_S32K324). it compile succeful,but can't run.&lt;/P&gt;&lt;P&gt;when i debug use pe, core0 main enter a hardfault.&lt;/P&gt;&lt;P&gt;who can help me? thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhangbo1_0-1659433720802.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188794i5D17B7F39C75564C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zhangbo1_0-1659433720802.png" alt="zhangbo1_0-1659433720802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1499455#M16809</guid>
      <dc:creator>xflong</dc:creator>
      <dc:date>2022-08-02T09:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1502329#M16935</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;xflongzhang,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you send me your project (including configuration files and code files)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And what is the package's name you are using?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 06:29:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1502329#M16935</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2022-08-08T06:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1502846#M16960</link>
      <description>&lt;P&gt;it's a multicore single elf project.sdk version (S32DS\software\PlatformSDK_S32K3_2022_03\SW32K3_RTD_4_4_2_0_0_D2203).ghs compiler version 2020.1.4. i change some compiler options,it still doesn't work.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 00:59:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1502846#M16960</guid>
      <dc:creator>xflong</dc:creator>
      <dc:date>2022-08-09T00:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1503953#M17012</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;xflongzhang,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tested your project and I didn't get your error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_0-1660129969503.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189798iB6918C0175AFD0B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_0-1660129969503.png" alt="nxf78987_0-1660129969503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_1-1660130035975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189799i421685547C0CA68C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_1-1660130035975.png" alt="nxf78987_1-1660130035975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are you using the board (which loaded HSE firmware)?&lt;/P&gt;
&lt;P&gt;And which is the board and chip you are testing?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1503953#M17012</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2022-08-10T11:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1503975#M17013</link>
      <description>&lt;P&gt;I am using S32K3X4EVB-Q257 ,the chip on the board is S32K344,but it was decoupled,so it is really a S32K324. It has no&amp;nbsp;HSE firmware,I tested the demo "Platform_Multicore_SingleElf_S32K324" from S32DS&amp;nbsp; v3.4 ,it can work.&lt;BR /&gt;Maybe I uploaded the wrong project.But the two cores don't work correct.The correct is two red leds blink.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xflongzhang_0-1660132626679.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189808i5011D9345497ACEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xflongzhang_0-1660132626679.png" alt="xflongzhang_0-1660132626679.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xflongzhang_1-1660132675242.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189809i51C14B4788260088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xflongzhang_1-1660132675242.png" alt="xflongzhang_1-1660132675242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:58:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1503975#M17013</guid>
      <dc:creator>xflong</dc:creator>
      <dc:date>2022-08-10T11:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1504600#M17033</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;xflongzhang,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I got your error. I saw that this interrupt is PIT_0_ISR after I check the below registers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_0-1660198846323.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189893i44387E4108371FEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_0-1660198846323.png" alt="nxf78987_0-1660198846323.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I didn't why the&amp;nbsp;PIT_0_ISR function didn't install after calling the&amp;nbsp;Platform_Init(NULL_PTR); in the&amp;nbsp;main_core0() function.&lt;/P&gt;
&lt;P&gt;I have a solution: you can add the&amp;nbsp;statement calling Platform_InstallIrqHandler function as the below image. After that, rebuild and test again.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_1-1660199364540.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189894i3F98F161024308E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_1-1660199364540.png" alt="nxf78987_1-1660199364540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 06:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1504600#M17033</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2022-08-11T06:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1504661#M17034</link>
      <description>&lt;P&gt;Hello，Dan，&lt;/P&gt;&lt;P&gt;Thank you very much for your advice. But I still encountered the same problem. Is there anything else wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 07:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1504661#M17034</guid>
      <dc:creator>xflong</dc:creator>
      <dc:date>2022-08-11T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1505547#M17059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;xflongzhang,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I compared your system.c file and this file in the RTD example.&amp;nbsp; I saw that in your system.c file, the code (in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#ifdef&lt;/SPAN&gt; &lt;SPAN&gt;MPU_ENABLE... #endif) didn't execute. I think that you can try to define the&amp;nbsp;&lt;SPAN&gt;MPU_ENABLE in your .mak files (or remove the #ifdef MPU_ENABLE... #endif in your system.c file) and rebuild and test again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If your program still occur error, you should try to replace your system.c file by this file&amp;nbsp;in the RTD example.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 10:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1505547#M17059</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2022-08-12T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault_Handler() at exceptions.c using greenhills compiler plugin with mcal in s32k324</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1505811#M17062</link>
      <description>&lt;P&gt;Hi Dan，&lt;/P&gt;&lt;P&gt;I added MPU_ENABLE to the compiler options, &lt;SPAN&gt;rebuild&amp;nbsp;&lt;/SPAN&gt;the program and find that the program can run correctly. It is surprising that the code generated by the same RTD version is different from the example. But the problem was solved.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 01:17:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Handler-at-exceptions-c-using-greenhills-compiler/m-p/1505811#M17062</guid>
      <dc:creator>xflong</dc:creator>
      <dc:date>2022-08-13T01:17:03Z</dc:date>
    </item>
  </channel>
</rss>

