<?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>S12 / MagniV MicrocontrollersのトピックRe: S912XEP100 xgate share structure</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650056#M13777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your kindly help, can you help to share the instructions step by step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 07:04:18 GMT</pubDate>
    <dc:creator>dannydeng</dc:creator>
    <dc:date>2017-02-20T07:04:18Z</dc:date>
    <item>
      <title>S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650054#M13775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am using S912XEP100 xgate share structure, and found these errors, enclosed the source code, would you please kindly help to check it?&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; L1827: Symbol can0ReceiveBuf has different size in xgate.cxgate.o (320 bytes) and main.c.o (300 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; L1827: Symbol can1ReceiveBuf has different size in xgate.cxgate.o (320 bytes) and main.c.o (300 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; L1827: Symbol can2ReceiveBuf has different size in xgate.cxgate.o (1920 bytes) and main.c.o (1800 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; L1827: Symbol can0ReceiveBuf has different size in All_variable.c.o (300 bytes) and xgate.cxgate.o (320 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; L1827: Symbol can1ReceiveBuf has different size in All_variable.c.o (300 bytes) and xgate.cxgate.o (320 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp; L1827: Symbol can2ReceiveBuf has different size in All_variable.c.o (1800 bytes) and xgate.cxgate.o (1920 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Ray Deng&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-338466"&gt;Project_Structure_B.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 04:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650054#M13775</guid>
      <dc:creator>dannydeng</dc:creator>
      <dc:date>2017-02-18T04:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650055#M13776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since XGATE is unable access misaligned 16bit words, word alignment is&amp;nbsp;turned on in XGATE compiler. Linker sees the difference in the size of canMsg in XGATE C o-files and S12X o-files. You can either turn on word alignment in S12X compiler or tune your canMsg typedef so that word alignment won't affect struct size:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;typedef struct &lt;BR /&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; ulong MessageID;&lt;BR /&gt;&amp;nbsp;uchar FrameType;&lt;BR /&gt;&amp;nbsp;uchar FrameFormat;&lt;BR /&gt;&amp;nbsp;uchar Length;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uchar __dummy;&lt;BR /&gt;&amp;nbsp;uchar Data[8];&lt;BR /&gt;} canMsg;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 11:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650055#M13776</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2017-02-19T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650056#M13777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your kindly help, can you help to share the instructions step by step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 07:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650056#M13777</guid>
      <dc:creator>dannydeng</dc:creator>
      <dc:date>2017-02-20T07:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650057#M13778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What instructions? Don't you know where in your code is canMsg&amp;nbsp;defined? Windows explorer may help. Point at your project folder and type in canMsg into search window. Among other files it should&amp;nbsp;find define.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650057#M13778</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2017-02-20T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650058#M13779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;As Edward correctly wrote, the XGATE works with 16bit numbers and misaligned operations are not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Your structure contains odd number of bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;typedef struct &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;ulong MessageID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;uchar FrameType;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;uchar FrameFormat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;uchar Length;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;uchar Data[8];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;} canMsg;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;The best way for avoiding such issues is not using byte variables for shared structures. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;You may look at some of the application notes about XGATE. I would like to recommend for example older AN2685 How to Configure and Use the XGATE on S12X Devices&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN2685.pdf"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN2685.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;or AN3224 Tutorial Introducing the XGATE Module to Consumer and Industrial Application Developers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN3224.pdf"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN3224.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 17:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650058#M13779</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2017-02-20T17:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: S912XEP100 xgate share structure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650059#M13780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears, Thanks for your kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 05:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S912XEP100-xgate-share-structure/m-p/650059#M13780</guid>
      <dc:creator>dannydeng</dc:creator>
      <dc:date>2017-02-22T05:57:34Z</dc:date>
    </item>
  </channel>
</rss>

