<?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: Reading data from banked flash location in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285898#M20378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 13:18:28 GMT</pubDate>
    <dc:creator>vojislavbandobr</dc:creator>
    <dc:date>2013-04-26T13:18:28Z</dc:date>
    <item>
      <title>Reading data from banked flash location</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285896#M20376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have constants placed into PPAGE_6 and PPAGE_7 but I have problem to read them.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried standard:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(*(volatile unsigned char*)addr);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where addr is full address of byte location into flash (for example 0x68000), but I got data from other location.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used banked memory model.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU is MC9S08DZ128&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 17:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285896#M20376</guid>
      <dc:creator>vojislavbandobr</dc:creator>
      <dc:date>2013-04-25T17:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from banked flash location</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285897#M20377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Standard pointer can't be used to access banked data in CW. You have 3 choices:&lt;/P&gt;&lt;P&gt;1. switch PPAGE from routine in nonbanked flash, read data from PPAGEd flash.&lt;/P&gt;&lt;P&gt;2. manipulate linear address pointer registers (LAP) and read your data reading LWP, LBP and LB registers.&lt;/P&gt;&lt;P&gt;3. use CW linear data pointer and macros form mmu_lda.h . It is a pity this pointer is not the same like regular C pointer. You should study DEMOQE128_LAP_Dictionary example to find how to use it. Example was included in CW6.x examples folder. It seems it is not included any more in CW10.x. See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using forum search. Subject was discussed few times already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 06:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285897#M20377</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-04-26T06:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from banked flash location</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285898#M20378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 13:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Reading-data-from-banked-flash-location/m-p/285898#M20378</guid>
      <dc:creator>vojislavbandobr</dc:creator>
      <dc:date>2013-04-26T13:18:28Z</dc:date>
    </item>
  </channel>
</rss>

