<?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: RAM to program Flash - ProcessorExpert IntFlash Bean in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178726#M3963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid the problem with writing 0xFE to 0xFFB0 address you have to unprotect the whole flash for writing and to correct the paramter in SetByteFlash method according to method´s documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example to write 0x00 to address 0x7000 you have to use 0xE000 value as paramter in SetByteFlash method (for more detailed information please see hint of the method).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Flash_Lc = FlashConfigSetGlobalProtection(FALSE);&lt;/P&gt;&lt;P&gt;Flash_Lc = FlashConfig_SetByteFlash(0xFFB0,0xFE); // 0xFE will be written to 7FD0 address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Don´t forget to switch to the "p" page in debugger to view a correct memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 19:04:11 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2009-05-11T19:04:11Z</dc:date>
    <item>
      <title>RAM to program Flash - ProcessorExpert IntFlash Bean</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178723#M3960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing an aplication, based on 56F8037 CPU,&amp;nbsp;where I want to program some configurations into Flash, so that&amp;nbsp;they will be there after a power down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read posts and manuals and&amp;nbsp;found it´s necessary to run from RAM to program the flash. I've ran into this PE bean, &lt;STRONG&gt;IntFlash&lt;/STRONG&gt;, but I am having some troubles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I allocated a specific part of flash to be written. But all functions I try to use, doesn´t work. The ACCERR (Access error) bit is being set.&lt;/P&gt;&lt;P&gt;This bean calls a "run_and_wait_in_RAM()" function, and it seems to be workful in runtime. Does anyone ever used this bean or have some tip to give?&lt;/P&gt;&lt;P&gt;Do you think it is possible to use them in runtime and in debug mode?&lt;/P&gt;&lt;P&gt;In the bean documentation (&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.processorexpert.com%2Fbeans%2FIntFLASH%2FIntFLASH.html" rel="nofollow" target="_blank"&gt;https://www.processorexpert.com/beans/IntFLASH/IntFLASH.html&lt;/A&gt;) is said some configurations should be done in CPU bean as well, but I don´t know what they are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 21:32:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178723#M3960</guid>
      <dc:creator>AJPinotti</dc:creator>
      <dc:date>2009-05-06T21:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: RAM to program Flash - ProcessorExpert IntFlash Bean</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178724#M3961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexandre,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what&amp;nbsp; version of Code Warrior and Processor Expert are you using? How the IntFlash bean is set? Could you please provide us a project demonstrating the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;However, the problem could be that the FLASH memory is protected for writing. You don't unprotect it so it can work only when the flash is unprotected. There is a method SetGlobalProtection of the IntFlash bean. Calling this method with paramter FALSE will unprotect the whole flash for writing.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find some additional information about IntFlash bean for example &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CWDSPCOMM&amp;amp;message.id=1015&amp;amp;query.id=125728#M1015" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 16:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178724#M3961</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2009-05-07T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: RAM to program Flash - ProcessorExpert IntFlash Bean</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178725#M3962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching a project that has the same configuration and has the Flash instructions I am tring to use.&lt;/P&gt;&lt;P&gt;The ACCERR bit is being set even when the function OutOfRange() is used, but I really don´t know why, because this function doesn´t access flash, at least I don´t think so.&lt;/P&gt;&lt;P&gt;Please I would appreciate if you could check the configurations of the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone know where I can get TN288 for&amp;nbsp;56F80xx? The technical note about&amp;nbsp;getting a code&amp;nbsp;from ROM to RAM, so it is possible to programa&amp;nbsp;the&amp;nbsp;Flash?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn´t understand as well, where PE does change the CTRL and DIVBY registers of OCCS, as mentioned in the Reference Manual. Should I do it before calling PE funtions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Helv" size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Helv" size="2"&gt;CodeWarrior Development Studio for DSC56800/E version 8.2.3, build 7, IDE Version: 5.6.1.1658&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helv" size="2"&gt;&lt;FONT face="Helv" size="2"&gt;PE version the one that&amp;nbsp;is installed with this version of CodeWarrior&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IntFLASH is configured as follows:&lt;/P&gt;&lt;P&gt;Write Method: WRITE&lt;/P&gt;&lt;P&gt;Wait in RAM: YES&lt;/P&gt;&lt;P&gt;Virtual page: DISABLED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for&amp;nbsp;your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CWDSPCOMM/1321_FlashTest.zip" rel="nofollow" target="_self"&gt;FlashTest.zip&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-29&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;09:50 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 20:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178725#M3962</guid>
      <dc:creator>AJPinotti</dc:creator>
      <dc:date>2009-05-07T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: RAM to program Flash - ProcessorExpert IntFlash Bean</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178726#M3963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid the problem with writing 0xFE to 0xFFB0 address you have to unprotect the whole flash for writing and to correct the paramter in SetByteFlash method according to method´s documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example to write 0x00 to address 0x7000 you have to use 0xE000 value as paramter in SetByteFlash method (for more detailed information please see hint of the method).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Flash_Lc = FlashConfigSetGlobalProtection(FALSE);&lt;/P&gt;&lt;P&gt;Flash_Lc = FlashConfig_SetByteFlash(0xFFB0,0xFE); // 0xFE will be written to 7FD0 address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Don´t forget to switch to the "p" page in debugger to view a correct memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 19:04:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178726#M3963</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2009-05-11T19:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: RAM to program Flash - ProcessorExpert IntFlash Bean</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178727#M3964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. It was exactly that!&lt;/P&gt;&lt;P&gt;Doing a setReg(FM_PROT,0x7FFF) before the commandsI could unprotect the sector I am wishing to write.&lt;/P&gt;&lt;P&gt;It worked in Debug. I am gonna do some more tests, after that I post here again. So far, this is my solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 02:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/RAM-to-program-Flash-ProcessorExpert-IntFlash-Bean/m-p/178727#M3964</guid>
      <dc:creator>AJPinotti</dc:creator>
      <dc:date>2009-05-12T02:04:41Z</dc:date>
    </item>
  </channel>
</rss>

