<?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: Writing to flash Memory in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142106#M6130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Bob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The first time your parameters are programmed, the flash will already be erased, so you do not need to erase.&amp;nbsp; However, if you need to re-program&amp;nbsp;the existing parameters, the flash block you are using will first need to be erased.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The flash block(s) used for parameter storage should commence at the first flash block for the device.&amp;nbsp; This allows write protection of the program code to be implemented.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Application note AN2874 may be of interest - since the JL8 is an "Instance B" device, I might assume would also apply to the JL16.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN2874.pdf" rel="nofollow" target="_self"&gt;AN2874.pdf&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&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-09-16&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:20 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2007 10:07:40 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-01-08T10:07:40Z</dc:date>
    <item>
      <title>Writing to flash Memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142102#M6126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Day All!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While reading all about writing stuff to the flash in our 908JL16, I came accross this little head scratcher;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference the Freescale Data Sheet MC68HC908JL16.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Page 37 "Algo for Programming a Row of Flash"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Block 3 "write any data to any flash address" What the heck does this mean???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why write data to any flash address and at this point too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Algo continues to the flash burn loop where in the byte to be programmed is written&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then exits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Confused in Cal. Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2007 11:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142102#M6126</guid>
      <dc:creator>BobMac</dc:creator>
      <dc:date>2007-01-07T11:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to flash Memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142103#M6127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Bob:&lt;BR /&gt;&lt;BR /&gt;It's a hardware thing.&lt;BR /&gt;&lt;BR /&gt;The important part of this is that this write is the first access to the flash memory since setting the PGM bit. The address that you write to has to be in the row of flash that you are programming (note the next line in that block). This write latches the address of the row into a hardware register that allows that row to receive the programming voltage that you will enable in block 5.&lt;BR /&gt;&lt;BR /&gt;At least that's how it was explained to me for the GP32.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2007 12:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142103#M6127</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2007-01-07T12:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to flash Memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142104#M6128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks ROCCO!&lt;BR /&gt;You know, in the light of day I don't really know why I asked this question. I realize now that the action in question is INSIDE the rom routine "prgrnge" and not something that I would have to contend with. I appreciate your responce none the less.&lt;BR /&gt;Now that I have cornered you, another question leaps to mind, if you please. Do we have to erase (call "errange") a page before it can be programmed?&lt;BR /&gt;All we want to do is store some variablles to flash now and again to use them the next time the processor is powered up. As we used to do in external SEEPROM in the "olden days".&lt;BR /&gt;Regards, Bob&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 03:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142104#M6128</guid>
      <dc:creator>BobMac</dc:creator>
      <dc:date>2007-01-08T03:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to flash Memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142105#M6129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;PS, I don't know where the smilley facey thingy came from.&lt;BR /&gt;&lt;BR /&gt;Bob&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 03:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142105#M6129</guid>
      <dc:creator>BobMac</dc:creator>
      <dc:date>2007-01-08T03:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to flash Memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142106#M6130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Bob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The first time your parameters are programmed, the flash will already be erased, so you do not need to erase.&amp;nbsp; However, if you need to re-program&amp;nbsp;the existing parameters, the flash block you are using will first need to be erased.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The flash block(s) used for parameter storage should commence at the first flash block for the device.&amp;nbsp; This allows write protection of the program code to be implemented.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Application note AN2874 may be of interest - since the JL8 is an "Instance B" device, I might assume would also apply to the JL16.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN2874.pdf" rel="nofollow" target="_self"&gt;AN2874.pdf&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&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-09-16&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:20 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Writing-to-flash-Memory/m-p/142106#M6130</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-08T10:07:40Z</dc:date>
    </item>
  </channel>
</rss>

