<?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>MPC5xxxのトピックRe: C90FL_ERROR_ALIGNMENT with SSD driver</title>
    <link>https://community.nxp.com/t5/MPC5xxx/C90FL-ERROR-ALIGNMENT-with-SSD-driver/m-p/780884#M11397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it,&lt;/P&gt;&lt;P&gt;The C90FL_ERROR_ALIGNMENT will occur if the destination address&amp;nbsp;we transmit&amp;nbsp;satisfies the following condition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;if ( ((dest | size) % C90FL_DWORD_SIZE) != 0 )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; returnCode = C90FL_ERROR_ALIGNMENT;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 08:03:45 GMT</pubDate>
    <dc:creator>bjrajendra</dc:creator>
    <dc:date>2017-11-17T08:03:45Z</dc:date>
    <item>
      <title>C90FL_ERROR_ALIGNMENT with SSD driver</title>
      <link>https://community.nxp.com/t5/MPC5xxx/C90FL-ERROR-ALIGNMENT-with-SSD-driver/m-p/780883#M11396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm using MPC5602P on CW2.9. I'm trying to implement Flash Boot Loader using SSD drivers. Initially I tested without&amp;nbsp;FBL with random values, everything worked well. I added my FBL code and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dest&amp;nbsp;=&amp;nbsp;p_srecord.loadAddr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;source&amp;nbsp;=&amp;nbsp;(UINT32)p_srecord.Data;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;size&amp;nbsp;=&amp;nbsp;16;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// program main array //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = g_FlashProgram( &amp;amp;ssdConfig, dest, size, source, &amp;amp;Callback );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Verify the programmed data //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret |= pProgramVerify( &amp;amp;ssdConfig, dest, size, source, &amp;amp;failAddress, &amp;amp;failData, &amp;amp;failSource, &amp;amp;Callback);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( C90FL_OK != ret )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; ErrorTrap(ret);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;Later after executing the FlashProgram function I'm getting &lt;STRONG&gt;C90FL_ERROR_ALIGNMENT. &lt;/STRONG&gt; I'm attaching the image here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="misalign_error.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33434iD54522956548B203/image-size/large?v=v2&amp;amp;px=999" role="button" title="misalign_error.jpg" alt="misalign_error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the image, we can verify the dest address is correct and the data showing in memory window 1 is also perfect. But it is giving the return value &lt;SPAN style="font-size: medium;"&gt;0x00000100 (C90FL_ERROR_ALIGNMENT). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;Hope some turns out ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;Raju.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 06:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/C90FL-ERROR-ALIGNMENT-with-SSD-driver/m-p/780883#M11396</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-11-17T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: C90FL_ERROR_ALIGNMENT with SSD driver</title>
      <link>https://community.nxp.com/t5/MPC5xxx/C90FL-ERROR-ALIGNMENT-with-SSD-driver/m-p/780884#M11397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it,&lt;/P&gt;&lt;P&gt;The C90FL_ERROR_ALIGNMENT will occur if the destination address&amp;nbsp;we transmit&amp;nbsp;satisfies the following condition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;if ( ((dest | size) % C90FL_DWORD_SIZE) != 0 )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; returnCode = C90FL_ERROR_ALIGNMENT;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 08:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/C90FL-ERROR-ALIGNMENT-with-SSD-driver/m-p/780884#M11397</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-11-17T08:03:45Z</dc:date>
    </item>
  </channel>
</rss>

