<?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: XGate Shared Variables Link Errors (S12XE) in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477953#M11961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XGATE compiler by default word aligns all struct members with sizeof() &amp;gt; 1. So you need to either insert "uint8_t dummy;" below or above unpaired acRequest , or in HC12 sources, which include GlobalsShared.h use pragma align like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma align on&lt;/P&gt;&lt;P&gt;#include "GlobalsShared.h"&lt;/P&gt;&lt;P&gt;#pragma align off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will resolve different object size message. And to resolve "object defined twice", you need to insert extern keyword above your struct in *.h file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Dec 2015 07:12:18 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2015-12-13T07:12:18Z</dc:date>
    <item>
      <title>XGate Shared Variables Link Errors (S12XE)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477952#M11960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting link errors and warnings when I make my project. I do not know how to fix them. This shows the errors.&amp;nbsp; &lt;A _jive_internal="true" class="" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.turbofast.com.au%2Ftfbin%2FErrorsCanLogger.png"&gt;http://www.turbofast.com.au/tfbin/ErrorsCanLogger.png&lt;/A&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem relates to a structure that is defined in the GlobalsShared.h file. I get no errors when I compile the project.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the project files.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&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-339076"&gt;CAN_Logger.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 02:50:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477952#M11960</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-12-13T02:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: XGate Shared Variables Link Errors (S12XE)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477953#M11961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XGATE compiler by default word aligns all struct members with sizeof() &amp;gt; 1. So you need to either insert "uint8_t dummy;" below or above unpaired acRequest , or in HC12 sources, which include GlobalsShared.h use pragma align like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma align on&lt;/P&gt;&lt;P&gt;#include "GlobalsShared.h"&lt;/P&gt;&lt;P&gt;#pragma align off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will resolve different object size message. And to resolve "object defined twice", you need to insert extern keyword above your struct in *.h file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 07:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477953#M11961</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2015-12-13T07:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: XGate Shared Variables Link Errors (S12XE)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477954#M11962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGate-Shared-Variables-Link-Errors-S12XE/m-p/477954#M11962</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-12-14T21:25:08Z</dc:date>
    </item>
  </channel>
</rss>

