<?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: Error related to the data loading into the flash in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138141#M2149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure I understand here.&lt;/DIV&gt;&lt;DIV&gt;First there is no chances that the application can work if you try to allocate the stack in flash.&lt;/DIV&gt;&lt;DIV&gt;Stack should be allocated in RAM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Second, are you trying to program some data into flash from your application?&lt;/DIV&gt;&lt;DIV&gt;On HCS12, if you are running flash programming code from flash, you can only program banks located in another block. A block is a set of 4 flash pages (or banks).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to your hardware manual to check which pages are in block 0.&lt;/DIV&gt;&lt;DIV&gt;Check where the programming algorithm is located and where you are trying to program the code. If the two banks are allocated in the same block, it cannot work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 20:43:53 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-11-29T20:43:53Z</dc:date>
    <item>
      <title>HC12: Error related to the data loading into the flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138138#M2146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This is the prbloem related to the flash,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when the fault occurs then whole data relaed to the error is loaded into the flash and then control is given to handle that fault...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;while writing the data into the flash into the block 0 (the bksel=0,PPAGE =3E were already set ) it is&amp;nbsp;setting the ACCERR bit ....&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the same is not happening when the bksel=1and the PPAGE =3E.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if found any solutions/ or any suggestion please mail me..........&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanking you&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ajay Kadambala&lt;/DIV&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:39 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 14:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138138#M2146</guid>
      <dc:creator>AjayKadambala</dc:creator>
      <dc:date>2006-11-28T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error related to the data loading into the flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138139#M2147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What processor are you targeting? It sounds like the HC(S)X12. Are you trying to download a program via the debugger, or is this Flash programming code that you've written that's trying to update the contents of Flash?&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 22:48:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138139#M2147</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-11-28T22:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error related to the data loading into the flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138140#M2148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Mr Tom&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The microcontroller we are using is HCS12 and we are downloading the code through debugger(True time simulator which is in built in the metrowerks) .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is the clear description of the problem :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. by using # pragma we made the code to reside in the 3E&lt;/DIV&gt;&lt;DIV&gt;2. if the fault occurs the whole status of the project and the 1k of stack data should be stored in stored in the flash(requirement) ..&lt;/DIV&gt;&lt;DIV&gt;3.for this we are selecting the Bank 0 (BKSEL=0) and PPAGE=3E, the ACCERR bit sets if attempted to write the data into the flash..&lt;/DIV&gt;&lt;DIV&gt;4. for the same data to write , if we are selecting the Bank 1(BKSEL=1) and PPAGE =3E, the ACCERR bit is not setting .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if any further doubts regarding the problem please mail me at &lt;A href="mailto:kadambala.ajay@meddcl-i.com" rel="nofollow" target="_blank"&gt;kadambala.ajay@meddcl-i.com&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanking you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Warm Regards,&lt;/DIV&gt;&lt;DIV&gt;Ajay Kadambala..&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 12:13:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138140#M2148</guid>
      <dc:creator>AjayKadambala</dc:creator>
      <dc:date>2006-11-29T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error related to the data loading into the flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138141#M2149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure I understand here.&lt;/DIV&gt;&lt;DIV&gt;First there is no chances that the application can work if you try to allocate the stack in flash.&lt;/DIV&gt;&lt;DIV&gt;Stack should be allocated in RAM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Second, are you trying to program some data into flash from your application?&lt;/DIV&gt;&lt;DIV&gt;On HCS12, if you are running flash programming code from flash, you can only program banks located in another block. A block is a set of 4 flash pages (or banks).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to your hardware manual to check which pages are in block 0.&lt;/DIV&gt;&lt;DIV&gt;Check where the programming algorithm is located and where you are trying to program the code. If the two banks are allocated in the same block, it cannot work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 20:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138141#M2149</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-11-29T20:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error related to the data loading into the flash</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138142#M2150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi CrazyCat:&lt;BLOCKQUOTE&gt;&lt;HR /&gt;CrasyCat wrote:&lt;BR /&gt;First there is no chances that the application can work if you try to allocate the stack in flash. Stack should be allocated in RAM.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;I think he meant was that, in the case of a firmware failure, the stack should be copied from RAM to Flash. Sort of like a crash dump.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 06:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Error-related-to-the-data-loading-into-the-flash/m-p/138142#M2150</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-11-30T06:30:45Z</dc:date>
    </item>
  </channel>
</rss>

