<?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: disabling IRQ for power profiles?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594226#M30871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by niels on Thu Oct 04 01:55:35 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Havn't seen the problem again after some heavy testing, so reassured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be nice if the manual had some phrases on this..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:31:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:31:51Z</dc:date>
    <item>
      <title>disabling IRQ for power profiles?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594224#M30869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by niels on Tue Oct 02 04:55:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;am running an LPC1313/01 here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to get all the performance out of it, so using power profiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I had a very strange bug, happening sometimes, causing a hard fault (exception 3).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now: when I add __disable_irq() and __enable_irq() around all calls to set_power() and set_pll(), the problem is gone! :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question: am I doing the right thing? I don't see any of this in the user manual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some more info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;running LPC1313/01, with UART attached (IRQ based driver). Program changes to POWER_PROFILE_PERFORMANCE just after turning on UART, and back to POWER_PROFILE_DEFAULT before turning UART off. The 'hard fault' happens then, likely caused by a late arrival on the UART. Problem stack frame is set_power() -&amp;gt; IRQ (UART?) -&amp;gt; hard fault with funny PC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:31:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594224#M30869</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: disabling IRQ for power profiles?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594225#M30870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tha on Tue Oct 02 14:30:05 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You are doing it right.&amp;nbsp; The interrupts should be disable before calling any power profiles calls.&amp;nbsp; For example, when calling the set_pll(), the pll needs time to lock.&amp;nbsp; If an interrupt occurs during this lock phase, the program would be running with an unknown clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-disable IRQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-run power profile &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-enable IRQ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594225#M30870</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: disabling IRQ for power profiles?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594226#M30871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by niels on Thu Oct 04 01:55:35 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Havn't seen the problem again after some heavy testing, so reassured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be nice if the manual had some phrases on this..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/disabling-IRQ-for-power-profiles/m-p/594226#M30871</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:31:51Z</dc:date>
    </item>
  </channel>
</rss>

