<?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>LPCXpresso IDE中的主题 Re: memory redirection / memory mapped external access</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590359#M29082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Mon Sep 05 08:03:56 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Do you know a way to tell the compiler that variables of such a section have to be accessed by a user defined function?&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;GCC doesn't support that yet as far as I can tell. Eventually GCC will probable support 'C - Extensions to support embedded processors TR18037' which has that ability.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:27:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:27:35Z</dc:date>
    <item>
      <title>memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590355#M29078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RA1981 on Sat Sep 03 03:44:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if it's possible to access external devices as if they are internal memory locations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know some 8-bit MCU compilers where it's possible to have a additional "memory type" byte. This byte is used as a address extension. Because most 8-bit MCUs have different instructions for accessing code and data memory the address extension is used to determine which instructions have to be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This approach enables the developer to create "virtual" memory regions. For accesses to one of these non-predefined memory regions the compiler calls user-defined access functions, where the address extension byte defines which functions have to be called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what's the advantage? For example, if the MCU has a internal EEPROM, access is usually done via modifying some special function registers, etc. Of course it's possible to write some access functions which deal with the register access, but the developer always have to take care about (at least) the address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the above mentioned "virtual" memory and user-defined access functions enables the developer to create a variable in that memory region, but it can be handled like any other variable. The linker takes care of the address, etc. When accessing this variable the user defined access function is called and deals with the access - totally hidden from the developer. And, usually no pointer accesses could be done to such EEPROM contents. The above approach also enables pointer access, which is a big benefit in my opinion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another advantage is, when porting the software to a "smaller" MCU with non-internal, but external EEPROM, the access functions could be modified or new ones are created for a different memory region and the variables are moved to that region.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible in GCC/LPCxpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590355#M29078</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590356#M29079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Sat Sep 03 15:39:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you can do this by modifying the linker scripts and using the &lt;/SPAN&gt;&lt;A href="http://http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html"&gt;section attribute&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590356#M29079</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590357#M29080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RA1981 on Sun Sep 04 22:13:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt;I believe you can do this by modifying the linker scripts and using the &lt;A href="http://http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html"&gt;section attribute&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, thank you. Section attribute is a good approach, for the above example it would be simply a section "EEPROM".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know a way to tell the compiler that variables of such a section have to be accessed by a user defined function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590357#M29080</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590358#M29081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Mon Sep 05 04:59:35 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think existing ARM compilers support user hooks for accessing memory. The best solution I can think of is to allocate a non-existing memory range for your variables and handle the accesses in the HardFault handler. This probaly won't be very performant, however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, do you really need this functionality? Modern chips are not that memory constrained, and if you need non-volatile storage, you can make a simple wear-leveling scheme for the internal flash - this was discussed on this forum before.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590358#M29081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590359#M29082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Mon Sep 05 08:03:56 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Do you know a way to tell the compiler that variables of such a section have to be accessed by a user defined function?&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;GCC doesn't support that yet as far as I can tell. Eventually GCC will probable support 'C - Extensions to support embedded processors TR18037' which has that ability.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590359#M29082</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590360#M29083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Mon Sep 05 11:22:50 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: RA1981&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'll take a look at it, thank you.&lt;BR /&gt;&lt;BR /&gt;What do you generally think about it? As I said above, it was a nice feature and I think it makes code more readable because you see these "special" variables like any other variables.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ralf&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;I like the feature. I think it would make code more readable, portable, and easier to write. This is actually on my to-do-list. Not for GCC but the clang compiler though. I plan on trying to add some feature like this that are in TR18037 to clang for the ARM and AVR targets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590360#M29083</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590361#M29084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RA1981 on Wed Sep 14 13:14:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the late reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt; Not for GCC but the clang compiler though.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the clang compiler? :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590361#M29084</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590362#M29085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Wed Sep 14 13:42:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at SPIFI in the new LPC1850 and LPC4350?&amp;nbsp; This is basically what it does, taking the external quad flash memory and mapping it to the ARM address space so that you can read from it like it was internal memory, including executing code from it, using pointers, etc. (and the speed is actually pretty impressive compared to using the internal flash when you keep in mind what's being done behind the scenes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not a generic solution that covers everything you want, and the address space is read only (to program is you need to go through a ROM-based API since you need to take into account the page/sector sizes, etc.) ... but an interesting&amp;nbsp; idea anyway considering how ridiculously cheap quad-spi flash is thanks to use in desktop/laptop PCs.&amp;nbsp; You can get 16MBit for ~$1 these days.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590362#M29085</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590363#M29086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Wed Sep 14 13:49:00 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: RA1981&lt;/STRONG&gt;&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is the clang compiler? :)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ralf&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;A href="http://http://clang.llvm.org/"&gt;clang &lt;/A&gt;&lt;SPAN&gt;is an open source compiler like GCC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590363#M29086</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590364#M29087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RA1981 on Fri Sep 16 04:34:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://http://clang.llvm.org/"&gt;clang &lt;/A&gt;is an open source compiler like GCC.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took a look at the website, there's the following statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Allow tight integration with IDEs&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume it means IDEs like eclipse, right? Are there any ready-to-use packages available?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get the LPCxpresso interfaces running with the clang compiler? I assume not, I think it's property of CodeRed, right? So only way to get the software onto the boards will be the internal bootloader, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590364#M29087</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590365#M29088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Fri Sep 16 11:18:59 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: RA1981&lt;/STRONG&gt;&lt;BR /&gt;...&lt;BR /&gt;I assume it means IDEs like eclipse, right? Are there any ready-to-use packages available?&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt; I was about to say no but I just did a quick search and I found this &lt;/SPAN&gt;&lt;A href="http://http://marketplace.eclipse.org/content/llvm-toolchain-eclipse-cdt"&gt;eclipse plugin&lt;/A&gt;&lt;SPAN&gt;. I haven't tried it yet though. clang is still X86 centric so the plugin might not do cross-compiling very well or at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: RA1981&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possible to get the LPCxpresso interfaces running with the clang compiler? I assume not, I think it's property of CodeRed, right? So only way to get the software onto the boards will be the internal bootloader, right?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;clang is supposed to behave as a drop in replacement for gcc (for the most part).&amp;nbsp; It should be possible but I don't know if it would violate the LPCxpresso user agreement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590365#M29088</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: memory redirection / memory mapped external access</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590366#M29089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RA1981 on Mon Sep 05 09:18:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: igorsk&lt;/STRONG&gt;&lt;BR /&gt;I don't think existing ARM compilers support user hooks for accessing&amp;nbsp; memory. The best solution I can think of is to allocate a non-existing&amp;nbsp; memory range for your variables and handle the accesses in the HardFault&amp;nbsp; handler. This probaly won't be very performant, however.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's one solution I thought about. If I find a (acceptable) performant way to it with the HF handler, I might try to implement it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, do you really need this functionality? Modern chips are not&amp;nbsp; that memory constrained, and if you need non-volatile storage, you can&amp;nbsp; make a simple wear-leveling scheme for the internal flash - this was&amp;nbsp; discussed on this forum before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really need it yet, but it was a nice feature on my 8-bit MCU projects. The mentioned EEPROM was just a example, it's also applicable to other (external) devices/peripherals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt;GCC doesn't support that yet as far as I can tell. Eventually GCC will&amp;nbsp; probable support 'C - Extensions to support embedded processors TR18037'&amp;nbsp; which has that ability. &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll take a look at it, thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you generally think about it? As I said above, it was a nice feature and I think it makes code more readable because you see these "special" variables like any other variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 13:18:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/memory-redirection-memory-mapped-external-access/m-p/590366#M29089</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T13:18:58Z</dc:date>
    </item>
  </channel>
</rss>

