<?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: EEE - RAM-Var - How to not initialise with Zeros in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEE-RAM-Var-How-to-not-initialise-with-Zeros/m-p/632507#M13497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use NO_INIT qualifier in the linker file.&lt;/P&gt;&lt;P&gt;This issue was recently discussed in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/447528"&gt;this thread&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 18:21:29 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2017-03-30T18:21:29Z</dc:date>
    <item>
      <title>EEE - RAM-Var - How to not initialise with Zeros</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEE-RAM-Var-How-to-not-initialise-with-Zeros/m-p/632506#M13496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I declare an EEE-variable in this way:&lt;/P&gt;&lt;P&gt;#define U16_ARR_SIZE_BYTE ((uint16)128u)&lt;/P&gt;&lt;P&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt; uint16 au16P0[U16_ARR_SIZE_BYTE];&lt;BR /&gt; uint16 au16P1[U16_ARR_SIZE_BYTE];&lt;BR /&gt; uint16 au16P2[U16_ARR_SIZE_BYTE];&lt;BR /&gt; uint16 au16P3[U16_ARR_SIZE_BYTE];&lt;BR /&gt;} TS_EEE;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#pragma DATA_SEG EEE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;static TS_EEE s_tsEee;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;#pragma DATA_SEG DEFAULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is automatically being filled with zeros at the start of the application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I add the @-Operator to specify the exact location, the last state of s_tsEee is loaded at the start of the application, as it should be.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#pragma DATA_SEG EEE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;static TS_EEE s_tsEee @0x0C00;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;#pragma DATA_SEG DEFAULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EEE is working for me as long as I use @ or&amp;nbsp;only pointers to struct.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to use the first version (without @)&amp;nbsp;&lt;/STRONG&gt;since it won't let you compile if consecutive Data / Structures are too large for one EEE-Window.&lt;/P&gt;&lt;P&gt;With the @-solution, the code compiles but will result in excess-data not being applied to EEE-NV.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;typedef struct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16 au16P0[U16_ARR_SIZE_BYTE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16 au16P1[U16_ARR_SIZE_BYTE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16 au16P2[U16_ARR_SIZE_BYTE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16 au16P3[U16_ARR_SIZE_BYTE];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;uint16 au16P4[U16_ARR_SIZE_BYTE];&lt;BR /&gt;&lt;SPAN&gt;} TS_EEE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... would compile/link although being 256 byte too big for one window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So in short, is there a way / pragma to prevent 0-Initialization without disabling linker-security checks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339078"&gt;Prm.prm.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 08:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEE-RAM-Var-How-to-not-initialise-with-Zeros/m-p/632506#M13496</guid>
      <dc:creator>saschapfengler</dc:creator>
      <dc:date>2017-03-30T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: EEE - RAM-Var - How to not initialise with Zeros</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEE-RAM-Var-How-to-not-initialise-with-Zeros/m-p/632507#M13497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use NO_INIT qualifier in the linker file.&lt;/P&gt;&lt;P&gt;This issue was recently discussed in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/447528"&gt;this thread&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 18:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEE-RAM-Var-How-to-not-initialise-with-Zeros/m-p/632507#M13497</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-03-30T18:21:29Z</dc:date>
    </item>
  </channel>
</rss>

