<?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 InterruptVector component and MQX Lite in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238926#M1288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ProcessorExpert 10.2.0 for Kinetis TWR-KL25.&lt;/P&gt;&lt;P&gt;I tried to use LLWU interrupt, but there is no LLWU component in PEx.&lt;/P&gt;&lt;P&gt;So I tried to initialize LLW interrupt by using InterruptVector component from "CPU Internal Peripherals" -&amp;gt; "Peripheral Initialization" -&amp;gt; "Interrupt Vector".&lt;/P&gt;&lt;P&gt;When the project DOES NOT include MQX Lite, I could configure InterruptVector component with vector=INT_LLW, and generate code.&lt;/P&gt;&lt;P&gt;However when MQX Lite is included in the project, it fails to generate code as error message below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generator: FAILURE: at line 248: Unexpected status, please contact Freescale support. (file: Drivers\sw\RTOSAdaptor\Common_RTOSAdaptor.prg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same error happens when I tried different interrupt vector, such as UART2.&lt;/P&gt;&lt;P&gt;I attached screenshot of PEx just for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pex.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41170i4217BDBFEC8D3F8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pex.jpg" alt="pex.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 00:02:43 GMT</pubDate>
    <dc:creator>YS</dc:creator>
    <dc:date>2013-12-03T00:02:43Z</dc:date>
    <item>
      <title>InterruptVector component and MQX Lite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238926#M1288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ProcessorExpert 10.2.0 for Kinetis TWR-KL25.&lt;/P&gt;&lt;P&gt;I tried to use LLWU interrupt, but there is no LLWU component in PEx.&lt;/P&gt;&lt;P&gt;So I tried to initialize LLW interrupt by using InterruptVector component from "CPU Internal Peripherals" -&amp;gt; "Peripheral Initialization" -&amp;gt; "Interrupt Vector".&lt;/P&gt;&lt;P&gt;When the project DOES NOT include MQX Lite, I could configure InterruptVector component with vector=INT_LLW, and generate code.&lt;/P&gt;&lt;P&gt;However when MQX Lite is included in the project, it fails to generate code as error message below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generator: FAILURE: at line 248: Unexpected status, please contact Freescale support. (file: Drivers\sw\RTOSAdaptor\Common_RTOSAdaptor.prg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same error happens when I tried different interrupt vector, such as UART2.&lt;/P&gt;&lt;P&gt;I attached screenshot of PEx just for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pex.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41170i4217BDBFEC8D3F8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pex.jpg" alt="pex.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 00:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238926#M1288</guid>
      <dc:creator>YS</dc:creator>
      <dc:date>2013-12-03T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: InterruptVector component and MQX Lite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238927#M1289</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;It seems to be a&amp;nbsp; bug, I'll check that.&amp;nbsp; However, it's not necessary to do it this way. LLWU is handled directly by the CPU component.&lt;/P&gt;&lt;P&gt;Please switch to the Expert view mode by clicking on the 'Expert'&amp;nbsp; button in the inspector. This way all possible settings are visible.&lt;/P&gt;&lt;P&gt;The LLWU is configures in the CPU component property group Low power mode settings / LLWU settings. Enable this group and you can enable the wakeup sources and enable the interrupt request.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lowpower1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41806iA73C1EAE37EA78A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="lowpower1.png" alt="lowpower1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is an event which is generated when the LL modes and the interrupt are enabled:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lowpower2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41857iB0DBFEBFA5E90FD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="lowpower2.png" alt="lowpower2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Processor Expert, all the low leakage stop modes are handled by STOP operation mode. You need to define in the CPU component which stop mode is to be used.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lowpower3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41996i0D415419C6D0453E/image-size/large?v=v2&amp;amp;px=999" role="button" title="lowpower3.png" alt="lowpower3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your code, you call the Cpu_SetOperationMode method to go into sleep, for example:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Cpu_SetOperationMode(DOM_STOP, NULL, NULL);&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this place your code freezes and after waking up the CPU goes into the OnLLSWakeuINT event.&lt;/P&gt;&lt;P&gt;In that event routine, you should as soon as possible switch back to RUN operation mode and then do what you want:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Cpu_SetOperationMode(DOM_RUN, NULL, NULL);&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 08:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238927#M1289</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-12-03T08:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: InterruptVector component and MQX Lite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238928#M1290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I've just figured out PEx has LLWU/LLS settings in CPU properties and confirmed KL25 can be wake up from LLS state by SW4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 18:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InterruptVector-component-and-MQX-Lite/m-p/238928#M1290</guid>
      <dc:creator>YS</dc:creator>
      <dc:date>2013-12-04T18:53:31Z</dc:date>
    </item>
  </channel>
</rss>

