<?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 Have a non volatile memory with the HCS08GT60 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140136#M5531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Morning everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a beginner in programmation with the HCS08 family of micro-controller, I am working with the SMAC library of freescale and I need to set up a Non Volatile Memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that possibile do to such a thing ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vianney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 21:25:16 GMT</pubDate>
    <dc:creator>Vianney</dc:creator>
    <dc:date>2006-12-14T21:25:16Z</dc:date>
    <item>
      <title>Have a non volatile memory with the HCS08GT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140136#M5531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Morning everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a beginner in programmation with the HCS08 family of micro-controller, I am working with the SMAC library of freescale and I need to set up a Non Volatile Memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that possibile do to such a thing ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vianney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 21:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140136#M5531</guid>
      <dc:creator>Vianney</dc:creator>
      <dc:date>2006-12-14T21:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Have a non volatile memory with the HCS08GT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140137#M5532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Try looking at application Note AN2295 and its companion file, AN2295SW. It provides the code for a serial bootloader that writes to Flash. It might not do exactly what you want, but it should be a good starting point for your project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;---Tom&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140137#M5532</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-12-14T23:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Have a non volatile memory with the HCS08GT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140138#M5533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;What a lot of us want is some C code that we can use in our C applications to write a few variables to the Flash in the HCS08GT60/GB60.&amp;nbsp; However, when we ask for help with this, I frequently get references to assembly code such as that from AN2295.&amp;nbsp; And many of the examples in C that have been posted to this forum simply do not work.&amp;nbsp; Does anybody have any working C code for writing to the flash on a GT60/GB60?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 09:23:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140138#M5533</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2007-01-13T09:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Have a non volatile memory with the HCS08GT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140139#M5534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;All&lt;/STRONG&gt; these products have available standard Flash drivers.&lt;/DIV&gt;&lt;DIV&gt;Wanting to program in C does not mean you need Flash programming routines in C.&lt;/DIV&gt;&lt;DIV&gt;IDEs like CodeWarrior handle mixing both ASM, C and even C++.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, even if you didn't want to see a line of ASM for these Flash drivers, they are available as S-Record.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is a direct example I took from the Driver Zip file :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;    ////////////////////////////////////////////////////////////////////////////    // Mass Erase Flash    ////////////////////////////////////////////////////////////////////////////    dest = FLASH_START1;    number = 1; // For mass erase, number should be as 1    returnCode = &lt;STRONG&gt;FlashErase (CMD_MASS_ERASE, dest, number, HighVoltage, CallBack);    if (SGF_OK != returnCode)&lt;/STRONG&gt;        goto EXIT;    ////////////////////////////////////////////////////////////////////////////    // Verify Flash after Erasing    ////////////////////////////////////////////////////////////////////////////    size = FLASH_END1 - FLASH_START1 + 1;    source = (UINT16)buffer;    returnCode = &lt;STRONG&gt;DataVerify (TRUE, dest, size, source, &amp;amp;failAddress, CallBack);&lt;/STRONG&gt;    if (SGF_OK != returnCode)        goto EXIT;    // Verify the second part    dest = FLASH_START2;    size = FLASH_END2 - FLASH_START2 + 1;    returnCode = &lt;STRONG&gt;DataVerify (TRUE, dest, size, source, &amp;amp;failAddress, CallBack);&lt;/STRONG&gt;    if (SGF_OK != returnCode)        goto EXIT;&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;That code demonstrate how to call the routines in C.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The Flash driver package is always available from the product page.&lt;/DIV&gt;&lt;DIV&gt;For the S08, here is a link:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;DIV&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=HCS08SGFNVMSSD&amp;amp;prodCode=MC9S08GT60&amp;amp;nodeId=016246844914370008&amp;amp;appType=license&amp;amp;location=psp" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;&lt;STRONG&gt;HCS08SGFNVMSSD&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;(1.44MB)&lt;BR /&gt;Standard Software Driver for HCS08 SGF Flash&lt;BR /&gt; Program/erase software driver for SGF NVM (flash and EEPROM) in HCS08.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this package does not work, please report so someone in FSL fixes it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140139#M5534</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2020-10-29T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Have a non volatile memory with the HCS08GT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140140#M5535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use one page (512 bytes) of the HCS0GT16A Flash as an EEPROM memory.&lt;BR /&gt;&lt;BR /&gt;In order to do that, and I read the following document and studied the source code:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Standard Software Driver for HCS08 SGF Flash Program/erase software driver&lt;BR /&gt;&amp;nbsp;for SGF NVM (flash and EEPROM) in HCS08"&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I noticed the following points:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;1. The functions that write the flash memory are executed in RAM.&lt;BR /&gt;2. The functions that write the flash memory are copied from FLASH to RAM in the startup code.&lt;BR /&gt;&lt;BR /&gt;The problem is that it's not easy to modify the startup code of my application in order to copy those functions in RAM.&lt;BR /&gt;&lt;BR /&gt;I'm now trying to write an example where those functions are copied and executed in RAM, using:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;1. The malloc() function.&lt;BR /&gt;&amp;nbsp;2. The memcpy() function.&lt;BR /&gt;&amp;nbsp;3. Five function pointers.&lt;BR /&gt;&lt;BR /&gt;If I succeed, I'll post the code.&lt;BR /&gt;&lt;BR /&gt;Enrico&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 16:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Have-a-non-volatile-memory-with-the-HCS08GT60/m-p/140140#M5535</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2007-06-12T16:42:17Z</dc:date>
    </item>
  </channel>
</rss>

