<?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: QD4 EEPROM location read in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260432#M19978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;telltale = *(unsigned char*)0xE100;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 02:04:39 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2013-11-06T02:04:39Z</dc:date>
    <item>
      <title>QD4 EEPROM location read</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260431#M19977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be overlooking something simple, but I can't see it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Flash.zip routines Bigmac posted years ago, with a QD4 and CW10.X my PRM file is modified like:&lt;/P&gt;&lt;P&gt;SSTACK_SEG = NO_INIT 0x00C0 TO 0x00FF;&lt;/P&gt;&lt;P&gt;EEPROM_SEG = READ_ONLY 0xF800 TO 0xF9FF;&lt;/P&gt;&lt;P&gt;ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF RELOCATE_TO 0x00C0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;SSTACK INTO SSTACK_SEG;&lt;/P&gt;&lt;P&gt;EEPROM INTO EEPROM_SEG;&lt;/P&gt;&lt;P&gt;FLASH_ROUTINE INTO ROM1;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the main.c I am locating my variable in the EEPROM space:&lt;/P&gt;&lt;P&gt;#pragma CONST_SEG EEPROM&lt;/P&gt;&lt;P&gt;const byte telltale;&lt;/P&gt;&lt;P&gt;#pragma CONST_SEG DEFAULT&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During use, I flash this location when:&lt;/P&gt;&lt;P&gt;if (maxrpm &amp;gt; telltale)&lt;/P&gt;&lt;P&gt;Flash_Program(0xF800, maxrpm)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and wanted read this back after a power cycle:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;telltale = (&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;char&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;*)0xF800;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it won't compile after I added the read back, how should I access this location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 01:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260431#M19977</guid>
      <dc:creator>alexit</dc:creator>
      <dc:date>2013-11-06T01:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: QD4 EEPROM location read</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260432#M19978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;telltale = *(unsigned char*)0xE100;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 02:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260432#M19978</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-11-06T02:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: QD4 EEPROM location read</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260433#M19979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this also did not compile. I am waiting for the PT hardware because I believe this will have better flash support. Then I will be working this project further. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 23:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QD4-EEPROM-location-read/m-p/260433#M19979</guid>
      <dc:creator>alexit</dc:creator>
      <dc:date>2013-12-17T23:11:58Z</dc:date>
    </item>
  </channel>
</rss>

