<?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 Struct Aligment in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235231#M11344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm woring with CW v6.3 and MCF51QE128. I have project that was working fine, and I recently added an SD Card (via SPI) to log data. According to the owner of the SD library, I need to set 'struct aligment' to be &lt;STRONG&gt;byte&lt;/STRONG&gt;, else it wouldn't work properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm having some bizarre behavior (on other routines not the SD ones)... Could it be related to the struct aligment? What does this setting change?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 15:45:03 GMT</pubDate>
    <dc:creator>sebasira</dc:creator>
    <dc:date>2013-01-23T15:45:03Z</dc:date>
    <item>
      <title>Struct Aligment</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235231#M11344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm woring with CW v6.3 and MCF51QE128. I have project that was working fine, and I recently added an SD Card (via SPI) to log data. According to the owner of the SD library, I need to set 'struct aligment' to be &lt;STRONG&gt;byte&lt;/STRONG&gt;, else it wouldn't work properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm having some bizarre behavior (on other routines not the SD ones)... Could it be related to the struct aligment? What does this setting change?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 15:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235231#M11344</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-01-23T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Struct Aligment</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235232#M11345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When structures are compiled, alignment may not be as expected, in that byte may be placed on word boundaries&amp;nbsp; for example, to optimize performance.&lt;/P&gt;&lt;P&gt;When you specify byte alignment, the structure is "packed" as much as possible. One reason I can think of that other things might not work is that perhap they have not been compiled/re-compiled with that option.&lt;/P&gt;&lt;P&gt;In any event, that should answer your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235232#M11345</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-01-23T16:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Struct Aligment</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235233#M11346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I change the option CW force me to re-compile the whole project.&lt;/P&gt;&lt;P&gt;Now I move that option back and I'm having the same problem, so it wasn't related to it. I'm reviewing my code now. Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Struct-Aligment/m-p/235233#M11346</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-01-23T16:48:28Z</dc:date>
    </item>
  </channel>
</rss>

