<?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: problem in Reading the internel eeprom in xep100 evaluation board in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176929#M6227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to read from the EEPROM.&lt;/P&gt;&lt;P&gt;First is to set the EEPROM page you want and then read from the EEPROM window.&lt;/P&gt;&lt;P&gt;e.g. EPAGE = 0x00;&lt;/P&gt;&lt;P&gt;Then read from the window at 0x800-0xBFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second is to use the global read commands.&lt;/P&gt;&lt;P&gt;The EEPROM/D-flash is at addresses 0x10_0000 - 0x10_7FFFF&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;movb #0x00, EPAGE&lt;/P&gt;&lt;P&gt;gldd 0x0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use gcc as compiler as it is not aware of the global addressing, so I have to use assembler to do the second method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be sure to initialise FCLCKDIV after each boot or the EEPROM won't be writeable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 May 2009 05:00:03 GMT</pubDate>
    <dc:creator>jsmcortina</dc:creator>
    <dc:date>2009-05-10T05:00:03Z</dc:date>
    <item>
      <title>problem in Reading the internel eeprom in xep100 evaluation board</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176928#M6226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have developed the application that must read the data from the&amp;nbsp;internal eeprom.In a new board no data will be availabe so&amp;nbsp;for the first i will write the some default data in to eeprom using Write Function(Below Specified Function). and&amp;nbsp; Restart the board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the board gets&amp;nbsp;booted for the second time my application must read data from the same location and have to update my global structure.&lt;/P&gt;&lt;P&gt;i am facing the problem in reading the data from the internal eeprom when the board gets loaded for the second time. its not reading the availabe data. some junk value is read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;note:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if i do the read operation after wirte operation its working fine.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if i do only read operation its not reading the data. but data is there in eeprom. i checked with datablaze programmer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following are my function&lt;/P&gt;&lt;P&gt;static byte Eeprom_Write_Word(TAddress AddrRow,word Data16) {&lt;/P&gt;&lt;P&gt;if (FSTAT_CCIF == 0) {&lt;/P&gt;&lt;P&gt;return ERROR;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FSTAT = 48;&lt;/P&gt;&lt;P&gt;FCCOBIX = 0;&lt;/P&gt;&lt;P&gt;FCCOBHI = 17;&lt;/P&gt;&lt;P&gt;FCCOBLO = (byte)(((dword)AddrRow) &amp;gt;&amp;gt; 16);&lt;/P&gt;&lt;P&gt;FCCOBIX++;&lt;/P&gt;&lt;P&gt;FCCOB = (word)((dword)AddrRow);&lt;/P&gt;&lt;P&gt;FCCOBIX++;&lt;/P&gt;&lt;P&gt;FCCOB = Data16;&lt;/P&gt;&lt;P&gt;FSTAT = 128;&lt;/P&gt;&lt;P&gt;if ((FSTAT_FPVIOL == 1) || (FSTAT_ACCERR == 1)) {&lt;/P&gt;&lt;P&gt;return ERROR;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;while (!FSTAT_CCIF) {}&lt;/P&gt;&lt;P&gt;if (FSTAT_MGSTAT) {&lt;/P&gt;&lt;P&gt;return ERROR;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;return SUCCESS;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;static byte Eeprom_Read_Word(TAddress Addr,word *Data) {&lt;/P&gt;&lt;P&gt;if((Addr &amp;lt; EEPROM_AREA_START) || (Addr &amp;gt; EEPROM_AREA_END)) {&lt;/P&gt;&lt;P&gt;return ERROR;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(!FSTAT_CCIF) {&lt;/P&gt;&lt;P&gt;return ERROR;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;*Data = *Addr;&lt;/P&gt;&lt;P&gt;return SUCCESS;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to know there is any command for reading the internal eeprom. please help me to get out of the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 16:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176928#M6226</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-04-29T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem in Reading the internel eeprom in xep100 evaluation board</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176929#M6227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to read from the EEPROM.&lt;/P&gt;&lt;P&gt;First is to set the EEPROM page you want and then read from the EEPROM window.&lt;/P&gt;&lt;P&gt;e.g. EPAGE = 0x00;&lt;/P&gt;&lt;P&gt;Then read from the window at 0x800-0xBFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second is to use the global read commands.&lt;/P&gt;&lt;P&gt;The EEPROM/D-flash is at addresses 0x10_0000 - 0x10_7FFFF&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;movb #0x00, EPAGE&lt;/P&gt;&lt;P&gt;gldd 0x0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use gcc as compiler as it is not aware of the global addressing, so I have to use assembler to do the second method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be sure to initialise FCLCKDIV after each boot or the EEPROM won't be writeable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2009 05:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176929#M6227</guid>
      <dc:creator>jsmcortina</dc:creator>
      <dc:date>2009-05-10T05:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem in Reading the internel eeprom in xep100 evaluation board</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176930#M6228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks james...&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 22:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/problem-in-Reading-the-internel-eeprom-in-xep100-evaluation/m-p/176930#M6228</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-05-14T22:27:00Z</dc:date>
    </item>
  </channel>
</rss>

