<?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 Flash function - QE 8 micro in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209112#M17841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im working with the QE8 micro&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to do some read write operation in non volatile memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I wasn't able to find any C example for HCS08 about flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone know where I could find this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps I tried the search function&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by JulsPower on &lt;SPAN class="date_text"&gt;2008-12-10&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:37 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added p/n to subject.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-12-17&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;07:49 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 01:37:40 GMT</pubDate>
    <dc:creator>JulsPower</dc:creator>
    <dc:date>2008-12-11T01:37:40Z</dc:date>
    <item>
      <title>Flash function - QE 8 micro</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209112#M17841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im working with the QE8 micro&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to do some read write operation in non volatile memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I wasn't able to find any C example for HCS08 about flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone know where I could find this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps I tried the search function&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by JulsPower on &lt;SPAN class="date_text"&gt;2008-12-10&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:37 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added p/n to subject.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-12-17&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;07:49 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 01:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209112#M17841</guid>
      <dc:creator>JulsPower</dc:creator>
      <dc:date>2008-12-11T01:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flash function</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209113#M17842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have an example how to use the Flash EPROM in a 9S08QE8 as an EEPROM.&lt;/DIV&gt;&lt;DIV&gt;It reads/writes data at 0xF800. If you want to use the protection of your program memory, this should be moved downto 0xE000.&lt;/DIV&gt;&lt;DIV&gt;The files are compressed with WinZip, so unzip it before you can try it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am including a technical paper describing how the Flash EPROM routines work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/12744_1_s08_flash_qe8.zip" rel="nofollow" target="_self"&gt;S08_Flash_QE8.zip&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/12744_2_tn228.pdf" rel="nofollow" target="_self"&gt;TN228.pdf&lt;/A&gt;&lt;BR /&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-10-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:59 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 17:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209113#M17842</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2008-12-11T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flash function</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209114#M17843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Great thanks&lt;BR /&gt;this seem to bewhat i was looking for&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 21:48:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209114#M17843</guid>
      <dc:creator>JulsPower</dc:creator>
      <dc:date>2008-12-11T21:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flash function</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209115#M17844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Regarding the relocation of the flash code to ram.....is this necessary only if you need to erase the entire flash, or can the flash functions be run out of flash in the normal fashion?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, I tried using the S08_flash functions, while connected with a debugger, but do not see the memory change.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I used the initializer to set the FCDIV register, and I verified that 0x42 was sent, and that after reset the register reads 0xC2, as expected, so I did not call the FlashInit() function.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I ran the following, then checked the memory location with the debugger, but it is still 0cFF&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;if(Flash_Erase(0xFE00))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; i=9;&lt;BR /&gt;}&lt;BR /&gt;ucInput = 0x5A;&lt;BR /&gt;if(Flash_Program(0xFE00,ucInput))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; i=9;&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there something else that I need to do to get the flash to be programmed?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Jerry&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 03:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209115#M17844</guid>
      <dc:creator>jerryn</dc:creator>
      <dc:date>2008-12-18T03:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flash function</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209116#M17845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I tested the code after doing the relocation thing, and running the Flash_Functions out of ram, without success....get an "illegal breakpoint" in the debugger cmd screen.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Prior to running out of RAM, I would see that the memory around 0x80 would get zeroed out after calling the flash function just to write a single byte.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A couple of times, a couple of bytes were successfully programmed, but success was not repeatable with an erase, then a program.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Jerry&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 09:17:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209116#M17845</guid>
      <dc:creator>jerryn</dc:creator>
      <dc:date>2008-12-18T09:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flash function</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209117#M17846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry&lt;/P&gt;&lt;P&gt;how did you solve the problem you have posted at the end ie., the program control going to some location 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;roja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 16:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-function-QE-8-micro/m-p/209117#M17846</guid>
      <dc:creator>roja</dc:creator>
      <dc:date>2010-08-06T16:28:44Z</dc:date>
    </item>
  </channel>
</rss>

