<?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 Programming example on MC9S08GB60 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127191#M1371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got an MC13213SRB which have a MC9S08GB60 MCU core.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got a job to work with run time programming the flash memory to store some user data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could any body suggest a documents or some sample code to do so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks guy!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 17:15:20 GMT</pubDate>
    <dc:creator>henryTwinB</dc:creator>
    <dc:date>2006-08-21T17:15:20Z</dc:date>
    <item>
      <title>Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127191#M1371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got an MC13213SRB which have a MC9S08GB60 MCU core.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i got a job to work with run time programming the flash memory to store some user data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could any body suggest a documents or some sample code to do so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks guy!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127191#M1371</guid>
      <dc:creator>henryTwinB</dc:creator>
      <dc:date>2006-08-21T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127192#M1372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;Do a search on this forum (down the bottom)&lt;/P&gt;&lt;P&gt;This subject has been done to death here, I am sure you will find all you need and then some!&lt;/P&gt;&lt;P&gt;Regards David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127192#M1372</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-08-21T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127193#M1373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi henry@twinberries.&lt;BR /&gt;Below is a routine for erasing a page of flash or for writing a single byte. My start-up routine copies this from flash to ram.&lt;BR /&gt;&lt;BR /&gt;2561 2561 PROGFLASH:&lt;BR /&gt; 2562 2562 ; write the command&lt;BR /&gt; 2563 2563 a00894F C7 1826 sta fcmd&lt;BR /&gt; 2564 2564 a008952 A6 80 lda #$80&lt;BR /&gt; 2565 2565 a008954 C7 1825 sta fstat&lt;BR /&gt; 2566 2566 a008957 9D nop&lt;BR /&gt; 2567 2567 a008958 9D nop&lt;BR /&gt; 2568 2568 a008959 9D nop&lt;BR /&gt; 2569 2569 a00895A 9D nop&lt;BR /&gt; 2570 2570 a00895B 9D nop&lt;BR /&gt; 2571 2571 a00895C 9D nop&lt;BR /&gt; 2572 2572 WFLOOP:&lt;BR /&gt; 2573 2573 a00895D C6 1825 lda fstat&lt;BR /&gt; 2574 2574 a008960 A4 30 and #$30&lt;BR /&gt; 2575 2575 a008962 27 03 beq wfbt1&lt;BR /&gt; 2576 2576 a008964 CC 8000 jmp cold&lt;BR /&gt; 2577 2577 WFBT1:&lt;BR /&gt; 2578 2578 a008967 C6 1825 lda fstat&lt;BR /&gt; 2579 2579 a00896A 48 lsla&lt;BR /&gt; 2580 2580 a00896B 2A F0 bpl wfloop&lt;BR /&gt; 2581 2581 a00896D 4F clra&lt;BR /&gt; 2582 2582 a00896E 81 rts&lt;BR /&gt;&lt;BR /&gt;Then, while running in flash, if I want to save something to flash I call this routine:&lt;BR /&gt;&lt;BR /&gt;2488 2488 ;**************** SAVEFLASH ****************&lt;BR /&gt; 2489 2489 ; Save (filterontime) into flash. *&lt;BR /&gt; 2490 2490 ;*******************************************&lt;BR /&gt; 2491 2491 ;&lt;BR /&gt; 2492 2492 SAVEFLASH:&lt;BR /&gt; 2493 2493 ; disable irqs for now&lt;BR /&gt; 2494 2494 a0088E8 9B sei&lt;BR /&gt; 2495 2495 ; check for errors&lt;BR /&gt; 2496 2496 a0088E9 C6 1825 lda fstat&lt;BR /&gt; 2497 2497 a0088EC A4 30 and #$30&lt;BR /&gt; 2498 2498 a0088EE 27 05 beq asfbt1&lt;BR /&gt; 2499 2499 ; had error(s), try to clr&lt;BR /&gt; 2500 2500 a0088F0 A6 30 lda #$30&lt;BR /&gt; 2501 2501 a0088F2 C7 1825 sta fstat&lt;BR /&gt; 2502 2502 ; then we have to erase&lt;BR /&gt; 2503 2503 ; our flash buffer @ $d000&lt;BR /&gt; 2504 2504 ; min erase is 512 bytes&lt;BR /&gt; 2505 2505 ;&lt;BR /&gt; 2506 2506 ASFBT1:&lt;BR /&gt; 2507 2507 a0088F5 C7 D003 sta flashbuf+3 ; any data&lt;BR /&gt; 2508 2508 a0088F8 A6 40 lda #$40 ; page erase&lt;BR /&gt; 2509 2509 a0088FA CD 0300 jsr progflash&lt;BR /&gt; 2510 2510 ; then write the marker&lt;BR /&gt; 2511 2511 a0088FD A6 A5 lda #$a5&lt;BR /&gt; 2512 2512 a0088FF C7 D000 sta flashbuf&lt;BR /&gt; 2513 2513 a008902 A6 20 lda #$20 ; write byte&lt;BR /&gt; 2514 2514 a008904 CD 0300 jsr progflash&lt;BR /&gt; and so on....&lt;BR /&gt;&lt;BR /&gt;This represents a working routine.&lt;BR /&gt;BE SURE YOU GET THE FLASH-CLOCK SET UP CORRECTLY.&lt;BR /&gt;ron&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 21:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127193#M1373</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-08-21T21:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127194#M1374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thx guys!!&lt;BR /&gt;&lt;BR /&gt;didnt we have a simple C library to did it?&lt;BR /&gt;&lt;BR /&gt;by the way, let me try than.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 09:25:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127194#M1374</guid>
      <dc:creator>henryTwinB</dc:creator>
      <dc:date>2006-08-22T09:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127195#M1375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There is an application note that covers flash programming for the MC68HC912BC32. The source code is in assembly, however. Search for AN1828 in the Freescale docs section. I've seen some C code in the forums for flash programming that was posted by an enterprising soul, but it's GT8-specific.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 22:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127195#M1375</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-08-22T22:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127196#M1376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;HC12 and S08 do not share the same Flash technology and codes are strictly incompatible.&lt;/P&gt;&lt;P&gt;Freescale external web provides Flash drivers for all HC08/S12.&lt;BR /&gt;For instance on the S08GB60, you can go to&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=HCS08SGFNVMSSD&amp;amp;prodCode=MC9S08GB60&amp;amp;nodeId=016246844914370008&amp;amp;appType=license&amp;amp;location=psp" rel="nofollow" target="_blank"&gt;&lt;STRONG&gt;HCS08SGFNVMSSD&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;Standard Software Driver for HCS08 SGF Flash&lt;BR /&gt; Program/erase software driver for SGF NVM (flash and EEPROM) in HCS08.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is accessible from the product page.&lt;/P&gt;&lt;P&gt;Alban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 23:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127196#M1376</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-08-22T23:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127197#M1377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks Alban,&lt;BR /&gt;seems the HCS08SGFNVMSSD is great,&lt;BR /&gt;i have downloaded it but it didnt include any documents&lt;BR /&gt;how can i work with it?&lt;BR /&gt;&lt;BR /&gt;Henry&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 14:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127197#M1377</guid>
      <dc:creator>henryTwinB</dc:creator>
      <dc:date>2006-08-23T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127198#M1378</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;P&gt;Henry -&lt;/P&gt;&lt;P&gt;After you run the installer, the user's manual is in the program directory. On my computer (using the defaults during install) it's in:&lt;/P&gt;&lt;P&gt;C:\Program Files\Motorola SPS\Standard Software SGF Driver v3.0\HCS08&lt;/P&gt;&lt;P&gt;and the file is: UM_HCS08_SGF_SSD.pdf&lt;/P&gt;&lt;P&gt;- Rocky&lt;/P&gt;&lt;P&gt;Message Edited by RockyRoad on &lt;SPAN class="date_text"&gt;2006-08-23&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:55 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 21:53:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127198#M1378</guid>
      <dc:creator>RockyRoad</dc:creator>
      <dc:date>2006-08-23T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Programming example on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127199#M1379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hey man,&lt;BR /&gt;&lt;BR /&gt;I ve got the flash program byte working during single step operation but it seems that it loops forever when i step-over it or just let the program run at the instant i called the flash program byte routine.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;sorry i am referring to the HCS08SGFNVMSSD SGF driver&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 10:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-Programming-example-on-MC9S08GB60/m-p/127199#M1379</guid>
      <dc:creator>henryTwinB</dc:creator>
      <dc:date>2006-08-26T10:09:36Z</dc:date>
    </item>
  </channel>
</rss>

