<?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 mc9s12g128 Write Eeprom in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12g128-Write-Eeprom/m-p/434933#M11432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px; line-height: 1.5;"&gt;When I use BDM debug the MCU,the eeprom can be written,but when I disconnect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;the BDM and restart the MCU,the eeprom can not be written.I do not know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;why?Please help me,thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;The .prm is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* This is a linker parameter file for the MC9S12G128 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;SEGMENTS&amp;nbsp; /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* Register space&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; IO_SEG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PAGED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000 TO&amp;nbsp;&amp;nbsp; 0x03FF; intentionally not defined */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* RAM */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x2000 TO&amp;nbsp;&amp;nbsp; 0x3FFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* D-Flash */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: red;"&gt; DFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp; 0x000400 TO 0x0013FF;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2015 07:09:49 GMT</pubDate>
    <dc:creator>张华荣</dc:creator>
    <dc:date>2015-06-06T07:09:49Z</dc:date>
    <item>
      <title>mc9s12g128 Write Eeprom</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12g128-Write-Eeprom/m-p/434933#M11432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px; line-height: 1.5;"&gt;When I use BDM debug the MCU,the eeprom can be written,but when I disconnect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;the BDM and restart the MCU,the eeprom can not be written.I do not know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;why?Please help me,thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;The .prm is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* This is a linker parameter file for the MC9S12G128 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;SEGMENTS&amp;nbsp; /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* Register space&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; IO_SEG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PAGED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000 TO&amp;nbsp;&amp;nbsp; 0x03FF; intentionally not defined */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* RAM */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x2000 TO&amp;nbsp;&amp;nbsp; 0x3FFF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="min-height: 8pt; padding: 0px; color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;/* D-Flash */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal" style="color: #000000; font-family: Tahoma; font-size: 13px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 微软雅黑, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: red;"&gt; DFLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp;&amp;nbsp; 0x000400 TO 0x0013FF;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 07:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12g128-Write-Eeprom/m-p/434933#M11432</guid>
      <dc:creator>张华荣</dc:creator>
      <dc:date>2015-06-06T07:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12g128 Write Eeprom</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12g128-Write-Eeprom/m-p/434934#M11433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The .prm file is as usual.&lt;/P&gt;&lt;P&gt;The most probably there is a problem with a register which is Write Once in Normal mode (no BDM connection).&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://community.nxp.com/docs/DOC-93792"&gt;S12G Examples Pack&lt;/A&gt; and there is one demonstrating EEPROM E/W routines. The project is made for S12GN32 derivative, but the main.c source code can be used on S12G128 as well. Of course, the difference is the EEPROM size and so the end memory address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 09:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12g128-Write-Eeprom/m-p/434934#M11433</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2015-07-01T09:57:49Z</dc:date>
    </item>
  </channel>
</rss>

