<?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 Design Studioのトピック[S32DS 3.4] malloc function call jumps to Hard-fault handler</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-3-4-malloc-function-call-jumps-to-Hard-fault-handler/m-p/1256582#M7395</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;I'm having trouble with malloc function call while creating a sample project for S32G M7_0 core in S32DS 3.4, as the malloc call has jumped to an exception. Here is my snippet code:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Clock_Ip_Init(&amp;amp;Mcu_aClockConfigPB[0]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Power_Ip_SetMode(&amp;amp;Power_Ip_aModeConfigPB[0]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ddr_init();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;p = (void *)malloc(100);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;free(p);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;During debugging, I have seen that the exception occurred while malloc was trying to write to DDR (0x68A00010), however the DDR wasn't initialized yet, so I have tried to initialize the DDR, but the issue was the same.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is there anything so far that could be the root-cause?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Best Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Nam&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 07:31:44 GMT</pubDate>
    <dc:creator>namnguyenviet</dc:creator>
    <dc:date>2021-04-05T07:31:44Z</dc:date>
    <item>
      <title>[S32DS 3.4] malloc function call jumps to Hard-fault handler</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-3-4-malloc-function-call-jumps-to-Hard-fault-handler/m-p/1256582#M7395</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;I'm having trouble with malloc function call while creating a sample project for S32G M7_0 core in S32DS 3.4, as the malloc call has jumped to an exception. Here is my snippet code:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Clock_Ip_Init(&amp;amp;Mcu_aClockConfigPB[0]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Power_Ip_SetMode(&amp;amp;Power_Ip_aModeConfigPB[0]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ddr_init();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;p = (void *)malloc(100);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;free(p);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;During debugging, I have seen that the exception occurred while malloc was trying to write to DDR (0x68A00010), however the DDR wasn't initialized yet, so I have tried to initialize the DDR, but the issue was the same.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is there anything so far that could be the root-cause?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Best Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Nam&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 07:31:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-3-4-malloc-function-call-jumps-to-Hard-fault-handler/m-p/1256582#M7395</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2021-04-05T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: [S32DS 3.4] malloc function call jumps to Hard-fault handler</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-3-4-malloc-function-call-jumps-to-Hard-fault-handler/m-p/1259269#M7402</link>
      <description>&lt;P&gt;All support to S32G processors is currently done via tickets. I will contact you by e-Mail for this time to give some basic suggestions, to receive more help please open a &lt;A href="https://support.nxp.com" target="_self"&gt;Support Case&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Platon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 02:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-3-4-malloc-function-call-jumps-to-Hard-fault-handler/m-p/1259269#M7402</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2021-04-09T02:31:36Z</dc:date>
    </item>
  </channel>
</rss>

