<?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: Can code be executed while programming flash in AW60? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211250#M18142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your infomation, it's helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2009 22:48:50 GMT</pubDate>
    <dc:creator>rollingstone</dc:creator>
    <dc:date>2009-08-28T22:48:50Z</dc:date>
    <item>
      <title>Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211242#M18134</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;I'm using MC9S08AW60, trying to use emulated EEPROM, but i'm wondering when programming or erasing flash memory, can the code be executed at the same time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found in AN3822 says:&lt;/P&gt;&lt;P&gt;"The MC9S08LG32/16 is a Freescale 8-bit microcontroller that contains two flash arrays. Program and erase operations can be conducted on one array while executing code from the other."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it mean if only one flash array exists, program and executing code can't be at the same time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And can anyone tell me how many flash arrays is there in AW60?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 09:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211242#M18134</guid>
      <dc:creator>rollingstone</dc:creator>
      <dc:date>2009-08-28T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211243#M18135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Flash memory is not readable while any flash command is in progress, also while FCNFG KEYACC bit is set. Not readable means processor can't execute code, read data, also can't fetch interrupt vectors. Before starting any flash command (clearing FCBEF bit) or setting KEYACC bit, you should disable interrupts and jump to and stay in RAM (or EEPROM, or second flash array, or any other readable memory) while FCCF is cleared and while KEYACC is set.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 11:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211243#M18135</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-28T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211244#M18136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is there another flash array in AW60? I can't find any description about it in the datasheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how to "Stay in RAM"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the case&amp;nbsp; that after lauch command through FCBEF, the processor just hang up there and resume to execute after command completion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 12:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211244#M18136</guid>
      <dc:creator>rollingstone</dc:creator>
      <dc:date>2009-08-28T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211245#M18137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Processor hangs because it can't read code memory. "Stay in RAM" means execute code from RAM. CPU program counter always should point to readable memory. And flash is not readable while flash command is in progress.&lt;/P&gt;&lt;P&gt;Don't know how many flash arrays AW60 has. It is simplier to use small portion of RAM to hold small routine that writes one to FCBEF flag and waits until FCCF. It is the same for all (or almost all) FSL MCUs and doesn't depend on how many arrays etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 13:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211245#M18137</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-28T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211246#M18138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it necessary to place code into RAM? I mean if not, just let the processor hang at the place of launch flash command, after the command completed and flash is readable again, the processor will continue to execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we put code into RAM, flash operation just run as a background command, but we can't jump anywhere else or service interrupts, am i right?&lt;/P&gt;&lt;P&gt;So usually what should we do in this code? Just wait FCCF to be set or do something else like feeding watchdog?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 14:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211246#M18138</guid>
      <dc:creator>rollingstone</dc:creator>
      <dc:date>2009-08-28T14:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211247#M18139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you need to place some code in ram which will also actually DO the programming and wait. Then it would normally jump back into flash and continue.&lt;/P&gt;&lt;P&gt;You cannot just let it hang and then recover!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 16:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211247#M18139</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-08-28T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211248#M18140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you explain why can't we let it hang and recover?&amp;nbsp; What will happen if we do that way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 19:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211248#M18140</guid>
      <dc:creator>rollingstone</dc:creator>
      <dc:date>2009-08-28T19:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211249#M18141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN class="UserName"&gt;&lt;A href="http://forums.freescale.com/t5/user/viewprofilepage/user-id/15555" target="_self"&gt;&lt;SPAN&gt;&lt;FONT size="3"&gt;rollingstone&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt; , it is not possible to start flash command and immediately halt CPU until flash comman is done.&amp;nbsp;CPU will keep running. And since flash memory is going to disappear for a while, CPU will read broken code/instructions and go into the weeds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 20:49:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211249#M18141</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-28T20:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can code be executed while programming flash in AW60?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211250#M18142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your infomation, it's helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 22:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-code-be-executed-while-programming-flash-in-AW60/m-p/211250#M18142</guid>
      <dc:creator>rollingstone</dc:creator>
      <dc:date>2009-08-28T22:48:50Z</dc:date>
    </item>
  </channel>
</rss>

