<?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>LPCXpresso IDEのトピックRe: LPC11Uxx undefined ref. __ROR</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563958#M17352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hansLPC on Wed Feb 20 05:58:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;#2 Add it[COLOR=Red] inside GNU[/COLOR] (#elif (defined (__GNUC__)) of "core_cmInstr.h" :eek:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed i was in the "wrong" section! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works like charm! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:40:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:40:50Z</dc:date>
    <item>
      <title>LPC11Uxx undefined ref. __ROR</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563956#M17350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hansLPC on Wed Feb 20 03:19:23 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try compile a sample file using the __ROR (rotate right) command. The linker gives me the error: undefined reference to `__ROR'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then i have seen that the core function __ROR is not defined in "core_cmInstr.h" (CMSISv2p00_LPC11Uxx) and so I added it by my own:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
{

&amp;nbsp; __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) );
&amp;nbsp; return(op1);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;but i still get the same linker error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;µC: LPC11U14F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCExpr: v5.1.0 [Build 2048] [2013-02-05] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hm, it should be a core instruction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/BABJCCDH.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards hans&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563956#M17350</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Uxx undefined ref. __ROR</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563957#M17351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Feb 20 03:51:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
__attribute__( ( always_inline ) ) static __INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
{

&amp;nbsp; __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) );
&amp;nbsp; return(op1);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;#2 Add it[COLOR=Red] inside GNU[/COLOR] (#elif (defined (__GNUC__)) of "core_cmInstr.h" :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Compile your CMSIS (both, Debug and Release) &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563957#M17351</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Uxx undefined ref. __ROR</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563958#M17352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hansLPC on Wed Feb 20 05:58:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;#2 Add it[COLOR=Red] inside GNU[/COLOR] (#elif (defined (__GNUC__)) of "core_cmInstr.h" :eek:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed i was in the "wrong" section! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works like charm! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11Uxx-undefined-ref-ROR/m-p/563958#M17352</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:50Z</dc:date>
    </item>
  </channel>
</rss>

