<?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: Not able to load elfs in External Memory using Trace32 for MPC5777C in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1288238#M18431</link>
    <description>&lt;P&gt;The closest I have is an EBI init script for MPC5674F/MPC5676R. It should be pretty similar to what is required for MPC5777C.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 10:56:38 GMT</pubDate>
    <dc:creator>rweiss</dc:creator>
    <dc:date>2021-06-07T10:56:38Z</dc:date>
    <item>
      <title>Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286114#M18410</link>
      <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;I am working on evaluating Multicore Experiments and I am using the MPC5777C Evaluation Board (P/N-MPC5777C-516DS). So, for some of my experiments, I need to program the elfs in External SRAM (External Memory), but I cannot load from the .cmm script and get an error while running the script. Please refer to below snaps of commands in the .cmm script and error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_0-1622638621134.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146094i43E5BBFB988BD67C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_0-1622638621134.png" alt="parth_rastogi10_0-1622638621134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this the External SRAM Memory is given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_1-1622638621167.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146095iA16DF7F9D8B2CCA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_1-1622638621167.png" alt="parth_rastogi10_1-1622638621167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This error message I am getting as the external memory address is given.&lt;/P&gt;&lt;P&gt;Can you please let me know what command has to be use to load in external SRAM or any other way that can be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached below the versions details of the Trace32 Software.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_2-1622638621257.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146096iAF0BF6687691705C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_2-1622638621257.png" alt="parth_rastogi10_2-1622638621257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/695"&gt;@powerpc&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/54692"&gt;@multicore&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/25"&gt;@Steve&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 13:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286114#M18410</guid>
      <dc:creator>parth_rastogi10</dc:creator>
      <dc:date>2021-06-02T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286570#M18411</link>
      <description>&lt;P&gt;Hi, It is not flash memory so you cannot apply flash programming for that. What you need to do, is to initialize EBI and MMU (what can be done by TRACE32 script as well) and the just load application to RAM by&lt;/P&gt;
&lt;P&gt;Data.LOAD.ELF "../bin/RAM.elf"&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 05:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286570#M18411</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-06-03T05:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286791#M18414</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thanks for the Reply.&lt;/P&gt;&lt;P&gt;As part of my experiments on multicore evaluation, I need to get the analysis/behavior by putting the code, data, and stack section on the&amp;nbsp;External SRAM only, and accordingly, I updated the linker file in the same way, that's why I need to load the elfs in the&amp;nbsp;External SRAM.&lt;/P&gt;&lt;P&gt;So, did I need to do anything before loading the elfs to&amp;nbsp;External SRAM, or If I have to initialize the EBI to do the same then what I need to do?? Please provide your inputs.&lt;/P&gt;&lt;P&gt;Secondly, I already tried to load the elf using&amp;nbsp;&lt;STRONG&gt;Data.LOAD.ELF "../bin/RAM.elf"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;this command also and its also not working for me as the memory location that I gave in the linker file is not updating and I am seeing (????????).&lt;/P&gt;&lt;P&gt;Request you to please provide your inputs.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 11:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286791#M18414</guid>
      <dc:creator>parth_rastogi10</dc:creator>
      <dc:date>2021-06-03T11:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286976#M18420</link>
      <description>&lt;P&gt;But i have already answered. Yes, you must initialize EBI before loading of elf file pointing to the EBI.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 17:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286976#M18420</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-06-03T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286998#M18421</link>
      <description>&lt;P&gt;I have found demo in the TRACE32 installation directory. Although for different MCU, you may see how to prepare the script.&lt;/P&gt;
&lt;P&gt;c:\T32\demo\powerpc\hardware\mpc55xx\mpc55xxdemo\ebi_init.cmm&lt;/P&gt;
&lt;P&gt;My example code written in C you may find here:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5777C-External-SRAM-test-GHS714/ta-p/1112357" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5777C-External-SRAM-test-GHS714/ta-p/1112357&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Now it is needed to translate C-code to TRACE32 script.&lt;/P&gt;
&lt;P&gt;Unless Lauterbach does not have prepared solution &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/18051"&gt;@rweiss&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 17:49:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1286998#M18421</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-06-03T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1288238#M18431</link>
      <description>&lt;P&gt;The closest I have is an EBI init script for MPC5674F/MPC5676R. It should be pretty similar to what is required for MPC5777C.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1288238#M18431</guid>
      <dc:creator>rweiss</dc:creator>
      <dc:date>2021-06-07T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1288281#M18435</link>
      <description>&lt;P&gt;Thanks, David and&amp;nbsp; rweiss&lt;/P&gt;&lt;P&gt;I will try with the solution provides and let you know for any issues.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/18051"&gt;@rweiss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 12:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1288281#M18435</guid>
      <dc:creator>parth_rastogi10</dc:creator>
      <dc:date>2021-06-07T12:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1298239#M18548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi David and&amp;nbsp; rweiss,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have updated the cmm script according to the c code that you have shared for initializing the EBI (attached below) but, few issues I am facing are mentioned below:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;After running the cmm script I am getting a warning of &lt;STRONG&gt;"data alignment error"&lt;/STRONG&gt;. Refer attached screenshot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Through script, I am initializing the&amp;nbsp;PCR 278 to&amp;nbsp;PCR 293 with 0x0440 (as mentioned in the C code) but it is initializing to 0x400.&amp;nbsp;Refer attached screenshot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;After running the updated "ebi_init.cmm" I am running our cmm scripts to load the elfs of CORE0 and CORE1 (Scripts attached below) then I am seeing the unusual behavior in the memory.&amp;nbsp;&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Seeing all zeros (0x00000000) from the starting address of the external memory i.e., 0x20000000, even from the linker file the code, data, and stack are using the external SRAM i.e., from&amp;nbsp;0x20000010 (code section)...and so on.&amp;nbsp;Refer attached linker files for CORE0 and CORE1 for your reference.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;From code, I am trying to write some random data to external SRAM location i.e., 0x2000E000 but I am seeing some abrupt values toggling only when the execution is in paused state.&amp;nbsp;Refer attached screenshot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;When trying to write any values manually from Trace32 then on writing any value at one location, automatically it writes the same value to the next 4 locations.&amp;nbsp;Refer attached screenshot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;After loading both elfs of CORE0 and CORE1, so when I pause the execution I am getting one warning of &lt;STRONG&gt;"NEXUS-AF preprocessor: message conversion overflow occurred"&lt;/STRONG&gt;.&amp;nbsp;Refer attached screenshot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Request you to please provide your inputs on the above-mentioned issues. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If possible can we connect over a call for better clarification on the issues.?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;Linker and cmm files are attached below in a zip file.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After running the ebi_init.cmm:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_0-1624604917984.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148017iE3F0B9CEDA2E2E40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_0-1624604917984.png" alt="parth_rastogi10_0-1624604917984.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Value of&amp;nbsp;&lt;SPAN&gt;PCR 278 to&amp;nbsp;PCR 293:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_1-1624605046197.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148019iEB544DE41D8B1615/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_1-1624605046197.png" alt="parth_rastogi10_1-1624605046197.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_3-1624605149364.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148021i23E20004719EEEAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_3-1624605149364.png" alt="parth_rastogi10_3-1624605149364.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After loading both the elfs:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_0-1624604296232.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147998iB294827A3F168F5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_0-1624604296232.png" alt="parth_rastogi10_0-1624604296232.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Pausing the execution after loading both elfs:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_4-1624605334117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148022iE5DF837EF7F30E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_4-1624605334117.png" alt="parth_rastogi10_4-1624605334117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When tried to write manually any value to external memory: (wrote only at 0x20000000, 0x20000010, and 0x20000020 at rest location it wrote automatically the same values)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_5-1624605427598.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148023i8CE2DEDF6A12C368/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_5-1624605427598.png" alt="parth_rastogi10_5-1624605427598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;From code writing random values to 0x2000E000, but seeing below values at a different location and some bits are toggling:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parth_rastogi10_6-1624605700424.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148025i23242667950BF1E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parth_rastogi10_6-1624605700424.png" alt="parth_rastogi10_6-1624605700424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping for your quick response.&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/18051"&gt;@rweiss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 07:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1298239#M18548</guid>
      <dc:creator>parth_rastogi10</dc:creator>
      <dc:date>2021-06-25T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1300146#M18574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/18051"&gt;@rweiss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you please provide me your response on the above issues or can we connect over a call for a better demonstration of the issues.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1300146#M18574</guid>
      <dc:creator>parth_rastogi10</dc:creator>
      <dc:date>2021-06-30T06:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to load elfs in External Memory using Trace32 for MPC5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1300365#M18577</link>
      <description>&lt;P&gt;I recently got access to the MPC5777C-516DS evaluation board and could prepare an example for an application running in the external SRAM. Here are the files:&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 10:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Not-able-to-load-elfs-in-External-Memory-using-Trace32-for/m-p/1300365#M18577</guid>
      <dc:creator>rweiss</dc:creator>
      <dc:date>2021-06-30T10:57:11Z</dc:date>
    </item>
  </channel>
</rss>

