<?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>Other NXP ProductsのトピックRe: MPC5554, Placing variables in external RAM</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170003#M1090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try to modify the variable definition as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma section data_type ".ext_ram_data" ".ext_ram_data" __declspec(section ".ext_ram_data") uint8_t buffer[512];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable buffer is not initialized. So you need to specify a uname section in the pragma section.&lt;/P&gt;&lt;P&gt;See Power Architecture Build Tools Reference.pdfm chapter &lt;STRONG&gt;&lt;EM&gt;Pragmas for Power Architecture Compiler&lt;/EM&gt;&lt;/STRONG&gt; section &lt;EM&gt;&lt;STRONG&gt;Library and Linking Pragmas&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;section&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:18:19 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2020-10-29T09:18:19Z</dc:date>
    <item>
      <title>MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170001#M1088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;During my experiments with the MPC5554EVB development board, I successfully initialized the external RAM (starting a 0x20000000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I would like to force the linker to place some &amp;nbsp;variables in this external memory and to keep the other ones in the SRAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create new sections in my lcf file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MEMORY{    pseudo_rom:         org = 0x40000000,   len = 0x00009000    init:               org = 0x40009000,   len = 0x00001000    exception_handlers: org = 0x4000A000,   len = 0x00001000    internal_ram:       org = 0x4000B000,   len = 0x00002000    heap  :             org = 0x4000D000,   len = 0x00001000    stack :             org = 0x4000E000,   len = 0x00001000     external_ram:       org = 0x20000000,   len = 0x00080000}SECTIONS{...GROUP : {       .ext_ram_text (TEXT) : {}       .ext_ram_data (DATA) : {}    } &amp;gt; external_ram}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in my code I declare the variable that I want to place in external RAM like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma section data_type ".ext_ram_data" __declspec(section ".ext_ram_data") uint8_t buffer[512];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I'm getting compilation errors...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error   : sections used for data must have an uninitialized data sectionError   : unknown section name '.ext_ram_data'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170001#M1088</guid>
      <dc:creator>Oliv74</dc:creator>
      <dc:date>2020-10-29T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170002#M1089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm new to the 5554 but i suspect the line that reads&lt;/P&gt;&lt;P&gt;&amp;nbsp; .ext_ram_data (DATA) : {}&lt;/P&gt;&lt;P&gt;needs to have information insides the braces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is toolset-dependet stuff, to some extent, i think.&lt;/P&gt;&lt;P&gt;tell us what you are using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 05:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170002#M1089</guid>
      <dc:creator>wg0z</dc:creator>
      <dc:date>2011-01-17T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170003#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try to modify the variable definition as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma section data_type ".ext_ram_data" ".ext_ram_data" __declspec(section ".ext_ram_data") uint8_t buffer[512];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable buffer is not initialized. So you need to specify a uname section in the pragma section.&lt;/P&gt;&lt;P&gt;See Power Architecture Build Tools Reference.pdfm chapter &lt;STRONG&gt;&lt;EM&gt;Pragmas for Power Architecture Compiler&lt;/EM&gt;&lt;/STRONG&gt; section &lt;EM&gt;&lt;STRONG&gt;Library and Linking Pragmas&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;section&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170003#M1090</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2020-10-29T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170004#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response!&lt;/P&gt;&lt;P&gt;Now the variable "buffer" is correctly placed in the external RAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 21:30:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170004#M1091</guid>
      <dc:creator>Oliv74</dc:creator>
      <dc:date>2011-01-17T21:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170005#M1092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have tried using the below statements, compiler gives error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma section TRYme ".tryme" ".tryme" &amp;nbsp;__declspec(section ".tryme") extern char OS_TrapHndl_TrapAddr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the variable OS_TrapHndl_TrapAddr is declared in other source file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using it in MPC5674,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compiler error is "&amp;nbsp;error (dcc:1633): parse error&amp;nbsp; near '".tryme"'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can some one pls say if there are any settings needed for the __declspec to be made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170005#M1092</guid>
      <dc:creator>sumanththallam</dc:creator>
      <dc:date>2012-05-09T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170006#M1093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two issues here:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1- The&amp;nbsp; __declspec should be specified in a new line (not on the same line as the pragma.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apparently Lithium did remove the line breaks in my original code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2- The declspec should be done on both the variable definition and declaration,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170006#M1093</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-05-09T12:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170007#M1094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello CrasyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have changed as follows in one file apart from the source file where OS_TrapHndl_TrapAddr; is declared(static UINT32 OS_TrapHndl_TrapAddr&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xyz.c&lt;/P&gt;&lt;P&gt;#pragma section TRYme ".tryme" ".tryme"&lt;BR /&gt;__declspec(section ".tryme") extern UINT32OS_TrapHndl_TrapAddr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the compiler issues the error message "error (dcc:1633): parse error&amp;nbsp; near '".tryme"'"&amp;nbsp;&amp;nbsp; refers to (section ".tryme")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to move the variables declared in other source files to a new section(without touching the source code). my approach is correct or is there any other way of doing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sumanth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 14:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170007#M1094</guid>
      <dc:creator>sumanththallam</dc:creator>
      <dc:date>2012-05-09T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170008#M1095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; First parameter in pragma section identifies the type of object stored in the section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRYMe is not a valid object type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #pragma section data_type".tryme" ".tryme"&amp;nbsp;&lt;BR /&gt;&amp;nbsp; __declspec(section ".tryme") extern UINT32OS_TrapHndl_TrapAddr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 18:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170008#M1095</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-05-09T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170009#M1096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have also tried the statements u sent. the error still occurs at 2 line that is " __declspec(section ".tryme") extern UINT32OS_TrapHndl_TrapAddr" &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error is : parse error&amp;nbsp; near '".tryme"'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am not using code warrior, i am using Tasking EDE with wind river DIab compiler 5.8.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the user manual for the diab compiler doesnot contain the __declspec, pls confirm whether the __declspec would work in this environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pls also confirm that without modifying the .c file, if it would be possible to move variables to new section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 12:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170009#M1096</guid>
      <dc:creator>sumanththallam</dc:creator>
      <dc:date>2012-05-10T12:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554, Placing variables in external RAM</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170010#M1097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The notation __declspec(section ".tryme") extern UINT32OS_TrapHndl_TrapAddr is only working with CodeWarrior compilers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using another compiler, please check with the compiler provider how you can define variables in a user defined section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 13:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC5554-Placing-variables-in-external-RAM/m-p/170010#M1097</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-05-10T13:04:19Z</dc:date>
    </item>
  </channel>
</rss>

