<?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: [MPC5768G] Shared RAM implementation in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649284#M6741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, switching between &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;bootloader and application is performed with 'functional' reset&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 14:57:22 GMT</pubDate>
    <dc:creator>yulianmatev</dc:creator>
    <dc:date>2017-04-04T14:57:22Z</dc:date>
    <item>
      <title>[MPC5748G] Shared RAM implementation</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649282#M6739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;BR /&gt;I have two projects a "Bootloader" and an "Application".&lt;BR /&gt;and I would like to configure a RAM segment (128 bytes, 0x4000100--0x400017F) which is accessible&lt;BR /&gt;by both of them, and they can exchange data through it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hw: Custom board&lt;/LI&gt;&lt;LI&gt;MCU: MPC5748G 1N81M&lt;/LI&gt;&lt;LI&gt;Debugger: Laurterbach Trace32&lt;/LI&gt;&lt;LI&gt;Compiler: GHS Multi 6.1.6&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did in order to implement it:&lt;BR /&gt;1. Configure a "shared_ram" RAM section inside Bootloader .ld file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;onfigure &lt;/SPAN&gt;&lt;SPAN&gt;a "shared_ram&lt;SPAN&gt;"&amp;nbsp;&lt;/SPAN&gt;RAM section inside&lt;/SPAN&gt; Application .ld file.&lt;BR /&gt;3. I modified startup asm code which initializes complete RAM (__ghs_ramstart -- __ghs_ramend) with 0xe800e800&lt;BR /&gt;so shared ram is skipped.&lt;SPAN style="color: #808080;"&gt; &lt;EM&gt;(Note from the asm comment: This code initializes the ECC bits of the targets's SRAM by filling it with branch-to-self opcode)&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. &lt;SPAN&gt;"shared_ram&lt;/SPAN&gt;&lt;SPAN&gt;" is configured as non cache-able inside SMPU&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine when I am using the debugger,&lt;SPAN&gt;"Bootloader" and an "Application"&lt;/SPAN&gt;are able to exchange data through this shared data.&lt;BR /&gt;The problem occurs when I run the target without debugger.&lt;BR /&gt;Using debug pins I am able to detect that software "crashes" the first time when a read access to the shared ram &lt;BR /&gt;(the one which is not initialized on purpose) is performed. Writing to this RAM is possible without an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above sentence &amp;nbsp;"crashes" mean that software is not taking its expected path and no interrupt service routine is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No special configurations for&amp;nbsp;MEMU and FCCU are performed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are welcome, thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 14:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649282#M6739</guid>
      <dc:creator>yulianmatev</dc:creator>
      <dc:date>2017-04-04T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: [MPC5768G] Shared RAM implementation</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649283#M6740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that between bootloader and application you are performing reset, is it so? If yes which kind of reset (functional/destructive)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 14:49:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649283#M6740</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-04-04T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: [MPC5768G] Shared RAM implementation</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649284#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, switching between &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;bootloader and application is performed with 'functional' reset&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 14:57:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649284#M6741</guid>
      <dc:creator>yulianmatev</dc:creator>
      <dc:date>2017-04-04T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: [MPC5748G] Shared RAM implementation</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649285#M6742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked shared ram content in application entry point (that is before SRAM initiazliation)? Do you see ECC errors there (mostly shown as '????') ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-Shared-RAM-implementation/m-p/649285#M6742</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-04-10T12:18:52Z</dc:date>
    </item>
  </channel>
</rss>

