<?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>MCUXpresso IDEのトピックRe: Align section linker</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722779#M1167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SDK configuration data for this part really ought to be setting the alignment to 8 to avoid the problem in the circumstance you detail. Unfortunately it looks like this is not being done. However you can make the change manually for yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, go to the "Installed SDKs" view inside MCUXpresso IDE and right click on the SDK for your part.&amp;nbsp;On the assumption that the SDK is installed in ZIP form, select "Unzip archive".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the unzip operation completes, right click again on your SDK in the "Installed SDKs" view and select "Open Location".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now open the manifest file in a text editor. This will be named along the lines of "FRDM-K66F_manifest_v3_2.xml". Note that if there are several files with "manifest" in their filename, pick the one with the highest version number. [Note you may want to take a backup first!]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now look for lines as follows:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&amp;lt;linker property="text_align" value="4"/&amp;gt;
&amp;lt;linker property="data_align" value="4"/&amp;gt;
&amp;lt;linker property="bss_align" value="4"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;And change the value from "4" to "8". Note that there will be 2 instances of the above 3 lines, one for C projects and one for C++ projects. Change both! &amp;nbsp;After making these changes, save the file again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now back in the IDE's "Installed SDKs" view, click on the "Recreate and reload part support info" button (in the top right of the view).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now clean your project and rebuild and the generated linker script should now pick up the 8 byte alignment setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 13:25:34 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2018-01-16T13:25:34Z</dc:date>
    <item>
      <title>Align section linker</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722777#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a bootloader using MCUXpresso v10.1.1_606 and MK66FN2M0VMD18 device.&lt;/P&gt;&lt;P&gt;I found a problem in the flash programming phase.&lt;/P&gt;&lt;P&gt;Based on the device reference manual, the flash must be programmed on a 64 bit aligned phrases (flash start addresses [2:0] = 000, 8 byte length).&lt;BR /&gt;The problem rises from the output file of the application, here is an extract (S19):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S21402C4D030313233343536373839616263646566F3&lt;BR /&gt;S20802C4E000FFFFFF54&lt;BR /&gt;S21402C4E400B00640000000008025000000000100A5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two record are programmed fine, but the third generates an access error because it isn't 64 bit aligned, due to the 4 bytes length of the previous record. Although the two records are contiguous, the linker keeps them separate because there is the division of two different sections, text and data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think that the solution could be keeping the application sections aligned on 8 bytes boudary: I searched how to tell the linker to do this, but I didn't find any procedure to configure it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone some suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 10:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722777#M1165</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2018-01-15T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Align section linker</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722778#M1166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Biafra,&lt;/P&gt;&lt;P&gt;You can have a look at this thread :&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/09/23/aligning-s19-records-to-64-bit-boundaries/" title="https://mcuoneclipse.com/2015/09/23/aligning-s19-records-to-64-bit-boundaries/"&gt;Aligning S19 Records to 64-bit Boundaries | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SRecord tool can easily align the S19 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&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>Tue, 16 Jan 2018 01:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722778#M1166</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-01-16T01:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Align section linker</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722779#M1167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SDK configuration data for this part really ought to be setting the alignment to 8 to avoid the problem in the circumstance you detail. Unfortunately it looks like this is not being done. However you can make the change manually for yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, go to the "Installed SDKs" view inside MCUXpresso IDE and right click on the SDK for your part.&amp;nbsp;On the assumption that the SDK is installed in ZIP form, select "Unzip archive".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the unzip operation completes, right click again on your SDK in the "Installed SDKs" view and select "Open Location".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now open the manifest file in a text editor. This will be named along the lines of "FRDM-K66F_manifest_v3_2.xml". Note that if there are several files with "manifest" in their filename, pick the one with the highest version number. [Note you may want to take a backup first!]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now look for lines as follows:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&amp;lt;linker property="text_align" value="4"/&amp;gt;
&amp;lt;linker property="data_align" value="4"/&amp;gt;
&amp;lt;linker property="bss_align" value="4"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;And change the value from "4" to "8". Note that there will be 2 instances of the above 3 lines, one for C projects and one for C++ projects. Change both! &amp;nbsp;After making these changes, save the file again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now back in the IDE's "Installed SDKs" view, click on the "Recreate and reload part support info" button (in the top right of the view).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now clean your project and rebuild and the generated linker script should now pick up the 8 byte alignment setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 13:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722779#M1167</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-01-16T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Align section linker</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722780#M1168</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;Now it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Align-section-linker/m-p/722780#M1168</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2018-01-16T14:32:15Z</dc:date>
    </item>
  </channel>
</rss>

