<?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: Static variables missing in map file in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Static-variables-missing-in-map-file/m-p/1852404#M12191</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is optimization level set to none?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 10:13:00 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2024-04-23T10:13:00Z</dc:date>
    <item>
      <title>Static variables missing in map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Static-variables-missing-in-map-file/m-p/1777357#M11595</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;S32 Design Studio for S32 Platform for Compilation&lt;BR /&gt;Version: 3.5&lt;BR /&gt;Build id: 230629 (Update 3)&lt;/P&gt;&lt;P&gt;T32 for Debugging&amp;nbsp;&amp;nbsp;: Software Version: R.2023.02.000159199&lt;/P&gt;&lt;P&gt;I imported IPCF example code&amp;nbsp;in S32 design studio and build the code with 0 error and 0 warning&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Loaded .elf file in T32, while debugging code, static variable (ipc_shm_priv_data) and *cfg kept in watch window to check whether value is updated or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;we found that static variable is not updated and and for&amp;nbsp;cfg&amp;nbsp; "bus error"&amp;nbsp; is shown in watch window&lt;/P&gt;&lt;P&gt;After that we checked map file then we found all static variables are missing in map file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest the solution. piece of code attached below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static int ipc_shm_init_instance(uint8 instance,&lt;BR /&gt;const struct ipc_shm_cfg *cfg)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;ipc_shm_priv_data[instance].shm_size = cfg-&amp;gt;shm_size;&lt;BR /&gt;ipc_shm_priv_data[instance].num_channels = cfg-&amp;gt;num_channels;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;DIV&gt;int ipc_shm_init(const struct ipc_shm_instances_cfg *cfg)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;err = ipc_shm_init_instance(i, &amp;amp;cfg-&amp;gt;shm_cfg[i]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Static-variables-missing-in-map-file/m-p/1777357#M11595</guid>
      <dc:creator>Harshalshinde</dc:creator>
      <dc:date>2023-12-21T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Static variables missing in map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Static-variables-missing-in-map-file/m-p/1852404#M12191</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is optimization level set to none?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 10:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Static-variables-missing-in-map-file/m-p/1852404#M12191</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-04-23T10:13:00Z</dc:date>
    </item>
  </channel>
</rss>

