<?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: How to write to ROM in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142354#M3432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank, that was a huge help.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jul 2006 03:49:53 GMT</pubDate>
    <dc:creator>Adam</dc:creator>
    <dc:date>2006-07-08T03:49:53Z</dc:date>
    <item>
      <title>How to write to ROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142351#M3429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using a mc9s12gc32&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a portion of code that starts runs out of the 3F page fixed at 0xc0000. I am trying to write to the 3E ROM page directly as the program runs out of the 3F page Or (even writing to portions of the 3F page).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; LDX #$C800 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EE_ZERO_ROM_LOOP ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CLR 0,X ; Clear ROM Area&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; INX ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CPX #$FFEF ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; BLE EE_ZERO_ROM_LOOP ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So here, I am trying to clear the ROM area from 0xC800 to 0xFFEF.... but the ROM doesn't seem to clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 02:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142351#M3429</guid>
      <dc:creator>Adam</dc:creator>
      <dc:date>2006-07-07T02:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to ROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142352#M3430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Adam.&lt;BR /&gt;That area of on-board memory is actually FLASH (eeprom) memory. It has very specific and difficult erase/write requirements, and cannot be treated as ram.&lt;BR /&gt;While it is possible to erase and write portions of flash from within a user/application there are some constraints:&lt;BR /&gt;1. You must first erase a row/page/block (varies per controller)&lt;BR /&gt;2. Your code that is to erase/write the flash cannot be running out of the block being modified.&lt;BR /&gt;3. There are some serious timing issues involved.&lt;BR /&gt;&lt;BR /&gt;For this reason freescale provides a chunk of hardware somewhere within the controller that performs the lowest-level of these tasks for you, but still your code thats using this hardware must not be running in the area of flash that you wish to modify.&lt;BR /&gt;&lt;BR /&gt;Freescale provides some application notes on this matter (sorry, I don't have the a/n numbers because I haven't used them). Search the app note area for 'doonstack' (do-on-stack) which is a routine for writing flash that runs on the cpu stack in ram.&lt;BR /&gt;Hope this helps.&lt;BR /&gt;ron&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 03:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142352#M3430</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-07-07T03:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to ROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142353#M3431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Below thread might be of some use to help with this topic&lt;BR /&gt;&lt;A href="http://technologicalarts.net/viewtopic.php?t=36" target="test_blank"&gt;http://technologicalarts.net/viewtopic.php?t=36&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 10:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142353#M3431</guid>
      <dc:creator>Ilocano</dc:creator>
      <dc:date>2006-07-07T10:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to ROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142354#M3432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank, that was a huge help.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jul 2006 03:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-write-to-ROM/m-p/142354#M3432</guid>
      <dc:creator>Adam</dc:creator>
      <dc:date>2006-07-08T03:49:53Z</dc:date>
    </item>
  </channel>
</rss>

