<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックProblem with Malloc and Free use MCF52233 in CodeWarrior 6.3</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-Malloc-and-Free-use-MCF52233-in-CodeWarrior-6-3/m-p/209284#M10123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I create a project about MCF52233Demo Programe in Code Warroir 6.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't use Malloc and free. At first I malloc a memory,when I free it, the chip is halt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Example: &amp;nbsp;Code is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char * pt = (char *)malloc(10*sizeof(char));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pt[0] = 'a';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free(pt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pt = NULL;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I debug it, when step in the "free(pt)", It appear the error dialog :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Exception vector nam:BUS Error , PC Where the exception happend ox200012A6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Aug 2009 09:48:45 GMT</pubDate>
    <dc:creator>ChangSai</dc:creator>
    <dc:date>2009-08-23T09:48:45Z</dc:date>
    <item>
      <title>Problem with Malloc and Free use MCF52233 in CodeWarrior 6.3</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-Malloc-and-Free-use-MCF52233-in-CodeWarrior-6-3/m-p/209284#M10123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I create a project about MCF52233Demo Programe in Code Warroir 6.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't use Malloc and free. At first I malloc a memory,when I free it, the chip is halt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Example: &amp;nbsp;Code is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char * pt = (char *)malloc(10*sizeof(char));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pt[0] = 'a';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free(pt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pt = NULL;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I debug it, when step in the "free(pt)", It appear the error dialog :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Exception vector nam:BUS Error , PC Where the exception happend ox200012A6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 09:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-Malloc-and-Free-use-MCF52233-in-CodeWarrior-6-3/m-p/209284#M10123</guid>
      <dc:creator>ChangSai</dc:creator>
      <dc:date>2009-08-23T09:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Malloc and Free use MCF52233 in CodeWarrior 6.3</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-Malloc-and-Free-use-MCF52233-in-CodeWarrior-6-3/m-p/209285#M10124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please search for malloc in the forum to find a few discussion: the following may help in particular: &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CWCFCOMM&amp;amp;thread.id=2006" target="_self"&gt;http://forums.freescale.com/freescale/board/message?board.id=CWCFCOMM&amp;amp;thread.id=2006&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also try upgrading to CW7.1. There can be fundamental problems with malloc() in CW6.3, possibly explained in the link(?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 17:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-with-Malloc-and-Free-use-MCF52233-in-CodeWarrior-6-3/m-p/209285#M10124</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2009-08-23T17:04:04Z</dc:date>
    </item>
  </channel>
</rss>

