<?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>S32 Design Studio中的主题 Re: MPC5777C Shared RAM  initialization problem (Garbage Value)</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1473664#M8705</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the dafault way how is RAM inicialized is by writting content of registers in a loop:&lt;/P&gt;
&lt;P&gt;;# Fill SRAM with writes of 32GPRs&lt;/P&gt;
&lt;P&gt;sram_loop:&lt;BR /&gt;e_stmw r0,0(r5) # Write all 32 registers to SRAM&lt;BR /&gt;e_addi r5,r5,128 # Increment the RAM pointer to next 128bytes&lt;BR /&gt;e_bdnz sram_loop # Loop for all of SRAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and some registers contains different value than 0. You need to perform for example memset(...) on your structure prior to using it. Or you can modify the RAM init.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 13:23:04 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2022-06-14T13:23:04Z</dc:date>
    <item>
      <title>MPC5777C Shared RAM  initialization problem (Garbage Value)</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1470370#M8685</link>
      <description>&lt;P&gt;Hey there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the MPC5777C project, in which I've modified the linker script of the project.&amp;nbsp;&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="egeonurg_0-1654666451945.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182521iDCC3151BB7360604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_0-1654666451945.png" alt="egeonurg_0-1654666451945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my sections can be shown above. I have configured linker scripts of the core projects as follows to create a 32KB x 2 shared RAM area and 256 K Calibration Area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="egeonurg_1-1654666587331.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182522i443865AFD03A8274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_1-1654666587331.png" alt="egeonurg_1-1654666587331.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I've created a structure which is placed in the s_ram1 section as follows for both projects.&lt;/P&gt;&lt;P&gt;As expected, the structure is in the same place for both projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="egeonurg_2-1654666656004.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182523i03E4F20E607D4F05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_2-1654666656004.png" alt="egeonurg_2-1654666656004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After those operations, I see some garbage value inside of the created structure, in my debugger for both projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="egeonurg_3-1654666805638.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182524iB29A5F95C3FADB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_3-1654666805638.png" alt="egeonurg_3-1654666805638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably I am missing something related to the initialization. Is there any other force way to zero init ram variables via GCC or somewhat?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Wishes&lt;/P&gt;&lt;P&gt;Ege&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 05:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1470370#M8685</guid>
      <dc:creator>egeonurg</dc:creator>
      <dc:date>2022-06-08T05:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Shared RAM  initialization problem (Garbage Value)</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1470380#M8686</link>
      <description>&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I have removed the NOLOAD option for those sections&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="egeonurg_0-1654667433432.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182525i6D31B69F28A8CAB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_0-1654667433432.png" alt="egeonurg_0-1654667433432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result have not been changed too&amp;nbsp;&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="egeonurg_1-1654667447812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/182526i0312BD950E6FA492/image-size/medium?v=v2&amp;amp;px=400" role="button" title="egeonurg_1-1654667447812.png" alt="egeonurg_1-1654667447812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ege&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 05:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1470380#M8686</guid>
      <dc:creator>egeonurg</dc:creator>
      <dc:date>2022-06-08T05:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C Shared RAM  initialization problem (Garbage Value)</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1473664#M8705</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the dafault way how is RAM inicialized is by writting content of registers in a loop:&lt;/P&gt;
&lt;P&gt;;# Fill SRAM with writes of 32GPRs&lt;/P&gt;
&lt;P&gt;sram_loop:&lt;BR /&gt;e_stmw r0,0(r5) # Write all 32 registers to SRAM&lt;BR /&gt;e_addi r5,r5,128 # Increment the RAM pointer to next 128bytes&lt;BR /&gt;e_bdnz sram_loop # Loop for all of SRAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and some registers contains different value than 0. You need to perform for example memset(...) on your structure prior to using it. Or you can modify the RAM init.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5777C-Shared-RAM-initialization-problem-Garbage-Value/m-p/1473664#M8705</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2022-06-14T13:23:04Z</dc:date>
    </item>
  </channel>
</rss>

