<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: MCF52258 External RAM definition and usage</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210090#M10207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the info Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found this post on the CodeWarrior forum:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/80820#80820" title="https://community.freescale.com/message/80820#80820"&gt;https://community.freescale.com/message/80820#80820&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;that illustrates how CodeWarrior accomplishes the task. I'm assuming that the linker definitions are still required. I'm going to try this out to see if it works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2011 19:46:59 GMT</pubDate>
    <dc:creator>aristotlefan</dc:creator>
    <dc:date>2011-05-27T19:46:59Z</dc:date>
    <item>
      <title>MCF52258 External RAM definition and usage</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210088#M10205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am currently working on a project that is based on&amp;nbsp; a design quite similar to the MCF52259 Evaluation Board. I need to test the Mini-FlexBus external RAM interface. I'm using a MR2A16ACYS35 512K byte MRAM attached to the Mini-FlexBus for external storage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The&amp;nbsp; Mini-FlexBus has been properly initialized and I have verified that we can successfully read and write to the MRAM using a routine written in C that utilizes direct pointer addressing. I have modified our linker control file adding the proper addressing and segment names and verified that the map file properly reflects the modifications after building our application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Sample Linker Command File for CodeWarrior for ColdFire&lt;BR /&gt;&lt;BR /&gt;KEEP_SECTION {.vectortable}&lt;BR /&gt;&lt;BR /&gt;# Memory ranges&lt;BR /&gt;&lt;BR /&gt;MEMORY {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; vectorrom&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;&amp;nbsp;&amp;nbsp; cfmprotrom&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000400, LENGTH = 0x00000020&lt;BR /&gt;&amp;nbsp;&amp;nbsp; code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000500, LENGTH = 0x0007FB00&lt;BR /&gt;&amp;nbsp;&amp;nbsp; vectorram&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400&lt;BR /&gt;&amp;nbsp;&amp;nbsp; userram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX) : ORIGIN = 0x20000400, LENGTH = 0x0000C900&lt;BR /&gt;&amp;nbsp;&amp;nbsp; xram&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x80000000, LENGTH = 0x0007FFFF&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;SECTIONS {&lt;BR /&gt;&lt;BR /&gt;# Heap and Stack sizes definition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___heap_size&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x1000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___stack_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1000;&lt;BR /&gt;&lt;BR /&gt;# MCF52259 Derivative Memory map definitions from linker command files:&lt;BR /&gt;# __IPSBAR, __RAMBAR, __RAMBAR_SIZE, __FLASHBAR, __FLASHBAR_SIZE linker&lt;BR /&gt;# symbols must be defined in the linker command file.&lt;BR /&gt;&lt;BR /&gt;# Memory Mapped Registers (IPSBAR= 0x40000000)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___IPSBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x40000000;&lt;BR /&gt;&lt;BR /&gt;# 64 Kbytes Internal SRAM&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___RAMBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x20000000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___RAMBAR_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0000FFFF;&lt;BR /&gt;&lt;BR /&gt;# 512 KByte Internal Flash Memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___FLASHBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___FLASHBAR_SIZE&amp;nbsp; = 0x00080000;&lt;BR /&gt;&lt;BR /&gt;# 512 KByte External RAM Memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___XRAMBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x80000000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___XRAMBAR_SIZE&amp;nbsp; = 0x0007FFFF;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ___SP_AFTER_RESET = ___RAMBAR + ___RAMBAR_SIZE - 4;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; .userram&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : {} &amp;gt; userram&lt;BR /&gt;&amp;nbsp; .code&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : {} &amp;gt; code&lt;BR /&gt;&amp;nbsp; .vectorram&amp;nbsp;&amp;nbsp;&amp;nbsp; : {} &amp;gt; vectorram&lt;BR /&gt;&amp;nbsp; .xram&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : {} &amp;gt; xram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I need to store selected variables in this section of memory using a manner similar to how variables are stored in Flash memory using a keyword to preface the variable name that will force the linker to store the variable in a MRAM location as opposed to the internal SRAM of the device. Does anyone have an example of how to do this?&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;My external MRAM is labeled (see above) as "xram."&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 06:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210088#M10205</guid>
      <dc:creator>aristotlefan</dc:creator>
      <dc:date>2011-05-27T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52258 External RAM definition and usage</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210089#M10206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go over to the CodeWarrior forums and search for "attribute" and "section".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're using CodeSourcery, and it looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#define FAST __attribute((section(".fast")))
#define MEM_SECTION_USB __attribute((section(".usb")))

MEM_SECTION_USB uint8_t g_vnSuUsbNcMem[SU_HEAPSIZE];
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 07:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210089#M10206</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2011-05-27T07:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52258 External RAM definition and usage</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210090#M10207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the info Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found this post on the CodeWarrior forum:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/80820#80820" title="https://community.freescale.com/message/80820#80820"&gt;https://community.freescale.com/message/80820#80820&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;that illustrates how CodeWarrior accomplishes the task. I'm assuming that the linker definitions are still required. I'm going to try this out to see if it works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 19:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210090#M10207</guid>
      <dc:creator>aristotlefan</dc:creator>
      <dc:date>2011-05-27T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52258 External RAM definition and usage</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210091#M10208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The previous example didn't work for me. I checked the map file and the xram section exists at the address specified in the linker command file but the compiler can't resolve the address of the declared variable. I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXT_RAM&amp;nbsp;&amp;nbsp; &amp;nbsp;unsigned char&amp;nbsp;&amp;nbsp; &amp;nbsp;myExtData = 5;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The map file is still showing a 0 length for the xram section meaning the variable never got created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 22:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52258-External-RAM-definition-and-usage/m-p/210091#M10208</guid>
      <dc:creator>aristotlefan</dc:creator>
      <dc:date>2011-05-27T22:13:35Z</dc:date>
    </item>
  </channel>
</rss>

