<?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: Error: unaligned opcodes detected in executable segment  in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576264#M22672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanB on Wed Jun 17 23:18:15 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Spot on - many thanks - I knew it was something like that, but couldn't find exactly what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd .included some text messages for an LCD display in a .text section instead of a .rodata section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I had enough&amp;nbsp; .align commands to deal with it, but perhaps I needed just one more!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:27:38 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:27:38Z</dc:date>
    <item>
      <title>Error: unaligned opcodes detected in executable segment</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576261#M22669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanB on Tue Jun 16 10:53:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I know what this means, but why are there unaligned opcodes? and how do I align them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576261#M22669</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error: unaligned opcodes detected in executable segment</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576262#M22670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Tue Jun 16 11:18:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Broken linker script? If you want any more help, you are going to have to provide more information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576262#M22670</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: unaligned opcodes detected in executable segment</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576263#M22671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Tue Jun 16 11:27:30 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You give absolutely no reference information!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cortex M0 and M3 have 16-bit wide opcodes which must be aligned on a half-word boundary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I.e. at even addresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are some 32-bit opcodes also, but they too only need to be half-word aligned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One guess is that you have some data (as opposed to code) that is being allocated in an executable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;section by some mistake of yours and that the bit patterns of the data match that of executable code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, perhaps you have some assembler code with&amp;nbsp; an odd number of '.byte' directives, or a string of odd length.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The .align ... directive should then be used to align the code base. (The assember manual is accessibe from the help menu.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe you have 'asm' escapes in your "C" code. The same applies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The link map can be your friend here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576263#M22671</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error: unaligned opcodes detected in executable segment</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576264#M22672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanB on Wed Jun 17 23:18:15 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Spot on - many thanks - I knew it was something like that, but couldn't find exactly what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd .included some text messages for an LCD display in a .text section instead of a .rodata section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I had enough&amp;nbsp; .align commands to deal with it, but perhaps I needed just one more!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-unaligned-opcodes-detected-in-executable-segment/m-p/576264#M22672</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:27:38Z</dc:date>
    </item>
  </channel>
</rss>

