<?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 expected string literal before 'CLI' in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/expected-string-literal-before-CLI/m-p/502889#M31542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using K70 tower kit(TWR-K70F120M).&lt;/P&gt;&lt;P&gt;I'm trying to communicate with the TWR-LCD touch screen(resistive) module using flexbus in bare metal project.&lt;/P&gt;&lt;P&gt; i got some example code for some other microcontroller&amp;nbsp; then i modified it according to k70 and try to compile it.&lt;/P&gt;&lt;P&gt;I'm getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expected string literal before 'CLI'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line in code where error is coming&amp;nbsp; : EnableInterrupts;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define EnableInterrupts&amp;nbsp;&amp;nbsp; {__asm (CLI);}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the root cause of this error and how can i resolve it.&lt;/P&gt;&lt;P&gt;if anyone is having any sample code for k70 touch screen lcd code plz share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Dec 2015 06:27:53 GMT</pubDate>
    <dc:creator>ankurchauhan123</dc:creator>
    <dc:date>2015-12-25T06:27:53Z</dc:date>
    <item>
      <title>expected string literal before 'CLI'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/expected-string-literal-before-CLI/m-p/502889#M31542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using K70 tower kit(TWR-K70F120M).&lt;/P&gt;&lt;P&gt;I'm trying to communicate with the TWR-LCD touch screen(resistive) module using flexbus in bare metal project.&lt;/P&gt;&lt;P&gt; i got some example code for some other microcontroller&amp;nbsp; then i modified it according to k70 and try to compile it.&lt;/P&gt;&lt;P&gt;I'm getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expected string literal before 'CLI'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line in code where error is coming&amp;nbsp; : EnableInterrupts;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define EnableInterrupts&amp;nbsp;&amp;nbsp; {__asm (CLI);}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the root cause of this error and how can i resolve it.&lt;/P&gt;&lt;P&gt;if anyone is having any sample code for k70 touch screen lcd code plz share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 06:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/expected-string-literal-before-CLI/m-p/502889#M31542</guid>
      <dc:creator>ankurchauhan123</dc:creator>
      <dc:date>2015-12-25T06:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: expected string literal before 'CLI'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/expected-string-literal-before-CLI/m-p/502890#M31543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLI is a x86 assembly instruction , while K70 uses ARM thrumb instruction set, the corresponding instruction is "CPSIE Change Processor State, Enable Interrupts", please kindly refer to &lt;A href="https://community.nxp.com/www.arm.com" target="test_blank"&gt;www.arm.com&lt;/A&gt; for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bare metal K70 examples can be found the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=" title="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType="&gt;Kinetis 120MHz bare metal sample code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Technical Support&lt;BR /&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>Mon, 28 Dec 2015 02:15:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/expected-string-literal-before-CLI/m-p/502890#M31543</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-12-28T02:15:01Z</dc:date>
    </item>
  </channel>
</rss>

