<?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: Unintended resume from DeepSleep in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1400220#M47657</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Did you revise demo code&amp;nbsp;&lt;SPAN&gt;power_manager_lpc?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I reproduce your problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 10:12:53 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2022-01-17T10:12:53Z</dc:date>
    <item>
      <title>Unintended resume from DeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1398849#M47619</link>
      <description>&lt;P&gt;I am developing a USB device with LPC55S66.&lt;BR /&gt;I implemented suspend/resume using the SDK sample of power_manager_lpc as a reference, and it seemed to work well, but after a few minutes after suspend, it resumes. At this time, the PC is still in sleep mode and no other USB devices are being resumed.&lt;/P&gt;&lt;P&gt;I have set only WAKEUP_USB1_NEEDCLK and WAKEUP_USB1 as the wake-up source for Deep Sleep.&lt;/P&gt;&lt;P&gt;What could be the cause?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 11:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1398849#M47619</guid>
      <dc:creator>hamatron</dc:creator>
      <dc:date>2022-01-13T11:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended resume from DeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1400220#M47657</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Did you revise demo code&amp;nbsp;&lt;SPAN&gt;power_manager_lpc?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I reproduce your problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1400220#M47657</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-01-17T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended resume from DeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1400569#M47671</link>
      <description>&lt;P&gt;Sorry, I made a mistake with the SDK sample I referenced. The correct one is dev_suspend_resume_hid_mouse_bm.&lt;BR /&gt;The changes I made were to the exclusions from sleep, wake-up source, and RAM retention settings.　However, even before I made this change, it was getting angry at me for resuming from suspend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#if ((defined(USB_DEVICE_CONFIG_LPCIP3511HS)) &amp;amp;&amp;amp; (USB_DEVICE_CONFIG_LPCIP3511HS &amp;gt; 0U))
#define APP_EXCLUDE_FROM_DEEPSLEEP \
    (kPDRUNCFG_PD_USB1_PHY | kPDRUNCFG_PD_LDOUSBHS)
#define APP_DEEPSLEEP_WAKEUP_SOURCE  (WAKEUP_USB1_NEEDCLK | WAKEUP_USB1)
#define APP_DEEPSLEEP_SRAM_RETENTION (0x7FFF)
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also changed the USB_LowPowerPreSwitchHook to power save DAC/ACD, LED drivers, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void USB_PowerPreSwitchHook(void)
{
    // software shutdown LED driver
    // LED32327_WriteRegister(LED_DEMO_I2C_BASE_ADDRESS,LED_DEMO_I2C_ADDRESS, 0x00, 0);
    // hardware shutdown LED driver
    GPIO_PinWrite(GPIO, 0, 2, 0);
    // mute dac and set direction to IN
    GPIO_PinWrite(GPIO, 0, 24, 0);
    gpio_pin_config_t mute_dac_pin;
    mute_dac_pin.pinDirection = kGPIO_DigitalInput;
    GPIO_PinInit(GPIO, 0, 24, &amp;amp;mute_dac_pin);
    // power-down ADC
    TLV320ADC3100_Deinit();
    // stop audio
    stop_audio();

 //211116
 	/* set high of InRush Current Test Control Pin */ 
 	GPIO_PinWrite(GPIO, 0, 22, 0);

    USB_PreLowpowerMode();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 02:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unintended-resume-from-DeepSleep/m-p/1400569#M47671</guid>
      <dc:creator>hamatron</dc:creator>
      <dc:date>2022-01-18T02:26:13Z</dc:date>
    </item>
  </channel>
</rss>

