<?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>LPC MicrocontrollersのトピックLPC 546 EEPROM data corruption after deep sleep exit</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978051#M38623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with &lt;STRONG&gt;LPC54605J512BD100&lt;/STRONG&gt; encountered a strange problem with on-chip EEPROM. After MCU exiting deep sleep mode and read from EEPROM, data get corrupted.&lt;/P&gt;&lt;P&gt;I used the SDK_2.6.0_LPC54605J512eeprom example and MCUXpresso IDE to demonstrate the problem. The code is straight forward, write data to EEPROM, switch the clock to fro, deep sleep, woke-up by RTC, switch to pll out, and &lt;STRONG&gt;first&lt;/STRONG&gt; read returns corrupted data. The next 2 reads are&amp;nbsp;ok, but if perform EEPROM write and try to read back&amp;nbsp;the result will be&amp;nbsp;0. After that, write-read operations work fine. Here are Log messages.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;EEPROM example begins...&lt;BR /&gt;EEPROM Write c0de&lt;BR /&gt;EEPROM Read Data Before Sleep = c0de&lt;BR /&gt;Enter Deep Sleep!&lt;BR /&gt;Sleep Time = 100 ms&lt;BR /&gt;EEPROM Read Data After Sleep = 99939b08&lt;BR /&gt;EEPROM Read Data After Sleep = c0de&lt;BR /&gt;EEPROM Read Data After Sleep = c0de&lt;BR /&gt;EEPROM Write Data After Sleep 1234&lt;BR /&gt;EEPROM Read Data After Sleep = 0&lt;BR /&gt;EEPROM Read Data After Sleep = 0&lt;BR /&gt;EEPROM Write Data After Sleep 5678&lt;BR /&gt;EEPROM Read Data After Sleep = 5678&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using libpower_softabi.a. Add project to attachments.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt; * Includes&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#include "fsl_device_registers.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;BR /&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;#include "fsl_eeprom.h"&lt;BR /&gt;#include "fsl_power.h"&lt;BR /&gt;#include "fsl_rtc.h"&lt;/P&gt;&lt;P&gt;#include "pin_mux.h"&lt;BR /&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt; * Definitions&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#define EEPROM_SOURCE_CLOCK kCLOCK_BusClk&lt;BR /&gt;#define EEPROM_CLK_FREQ CLOCK_GetFreq(kCLOCK_BusClk)&lt;BR /&gt;#define EXAMPLE_EEPROM EEPROM&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt; * Prototypes&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#define FSL_FEATURE_EEPROM_PAGE_SIZE (FSL_FEATURE_EEPROM_SIZE / FSL_FEATURE_EEPROM_PAGE_COUNT)&lt;BR /&gt;#define DEEP_SLEEP_ENABLED_PERIPH (SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK |\&lt;BR /&gt; SYSCON_PDRUNCFG_PDEN_USB_RAM_MASK | SYSCON_PDRUNCFG_PDEN_SRAMX_MASK)&lt;BR /&gt;#define EEPROM_DATA 0xC0DE&lt;BR /&gt;#define DEEP_SLEEP_TIME 100U&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt; * Code&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;/*!&lt;BR /&gt; * @brief Main function&lt;BR /&gt; */&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; eeprom_config_t config;&lt;BR /&gt; uint32_t sourceClock_Hz = 0;&lt;/P&gt;&lt;P&gt;/* attach 12 MHz clock to FLEXCOMM0 (debug console) */&lt;BR /&gt; CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockPLL180M();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM example begins...\r\n");&lt;/P&gt;&lt;P&gt;/* Init EEPROM */&lt;BR /&gt; EEPROM_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt; sourceClock_Hz = EEPROM_CLK_FREQ;&lt;BR /&gt; EEPROM_Init(EXAMPLE_EEPROM, &amp;amp;config, sourceClock_Hz);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write %x\n", EEPROM_DATA);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, EEPROM_DATA);&lt;/P&gt;&lt;P&gt;uint32_t readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data Before Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;/* Init RTC */&lt;BR /&gt; RTC_Init(RTC);&lt;BR /&gt; RTC_Reset(RTC);&lt;BR /&gt; NVIC_ClearPendingIRQ(RTC_IRQn);&lt;BR /&gt; RTC_EnableInterrupts(RTC, RTC_CTRL_WAKEDPD_EN_MASK);&lt;BR /&gt; EnableIRQ(RTC_IRQn);&lt;BR /&gt; EnableDeepSleepIRQ(RTC_IRQn);&lt;/P&gt;&lt;P&gt;/* Enter Deep Sleep for 100 ms */&lt;BR /&gt; BOARD_BootClockFRO12M();&lt;/P&gt;&lt;P&gt;PRINTF("Enter Deep Sleep!\n");&lt;BR /&gt; RTC_SetWakeupCount(RTC, DEEP_SLEEP_TIME);&lt;BR /&gt; RTC_StartTimer(RTC);&lt;BR /&gt; POWER_EnterDeepSleep((uint64_t)(DEEP_SLEEP_ENABLED_PERIPH));&lt;BR /&gt; RTC_StopTimer(RTC);&lt;BR /&gt; uint16_t sleepCount = DEEP_SLEEP_TIME - RTC_GetWakeupCount(RTC);&lt;BR /&gt; PRINTF("Sleep Time = %d ms\n", sleepCount);&lt;/P&gt;&lt;P&gt;BOARD_BootClockPLL180M();&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write Data After Sleep %x\n", 0x1234);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, 0x1234);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write Data After Sleep %x\n", 0x5678);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, 0x5678);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt; {&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void RTC_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; RTC_ClearStatusFlags(RTC, RTC_CTRL_WAKE1KHZ_MASK);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2019 17:07:42 GMT</pubDate>
    <dc:creator>emblink182</dc:creator>
    <dc:date>2019-10-29T17:07:42Z</dc:date>
    <item>
      <title>LPC 546 EEPROM data corruption after deep sleep exit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978051#M38623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with &lt;STRONG&gt;LPC54605J512BD100&lt;/STRONG&gt; encountered a strange problem with on-chip EEPROM. After MCU exiting deep sleep mode and read from EEPROM, data get corrupted.&lt;/P&gt;&lt;P&gt;I used the SDK_2.6.0_LPC54605J512eeprom example and MCUXpresso IDE to demonstrate the problem. The code is straight forward, write data to EEPROM, switch the clock to fro, deep sleep, woke-up by RTC, switch to pll out, and &lt;STRONG&gt;first&lt;/STRONG&gt; read returns corrupted data. The next 2 reads are&amp;nbsp;ok, but if perform EEPROM write and try to read back&amp;nbsp;the result will be&amp;nbsp;0. After that, write-read operations work fine. Here are Log messages.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;EEPROM example begins...&lt;BR /&gt;EEPROM Write c0de&lt;BR /&gt;EEPROM Read Data Before Sleep = c0de&lt;BR /&gt;Enter Deep Sleep!&lt;BR /&gt;Sleep Time = 100 ms&lt;BR /&gt;EEPROM Read Data After Sleep = 99939b08&lt;BR /&gt;EEPROM Read Data After Sleep = c0de&lt;BR /&gt;EEPROM Read Data After Sleep = c0de&lt;BR /&gt;EEPROM Write Data After Sleep 1234&lt;BR /&gt;EEPROM Read Data After Sleep = 0&lt;BR /&gt;EEPROM Read Data After Sleep = 0&lt;BR /&gt;EEPROM Write Data After Sleep 5678&lt;BR /&gt;EEPROM Read Data After Sleep = 5678&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using libpower_softabi.a. Add project to attachments.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt; * Includes&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#include "fsl_device_registers.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;BR /&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;#include "fsl_eeprom.h"&lt;BR /&gt;#include "fsl_power.h"&lt;BR /&gt;#include "fsl_rtc.h"&lt;/P&gt;&lt;P&gt;#include "pin_mux.h"&lt;BR /&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt; * Definitions&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#define EEPROM_SOURCE_CLOCK kCLOCK_BusClk&lt;BR /&gt;#define EEPROM_CLK_FREQ CLOCK_GetFreq(kCLOCK_BusClk)&lt;BR /&gt;#define EXAMPLE_EEPROM EEPROM&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt; * Prototypes&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;#define FSL_FEATURE_EEPROM_PAGE_SIZE (FSL_FEATURE_EEPROM_SIZE / FSL_FEATURE_EEPROM_PAGE_COUNT)&lt;BR /&gt;#define DEEP_SLEEP_ENABLED_PERIPH (SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK |\&lt;BR /&gt; SYSCON_PDRUNCFG_PDEN_USB_RAM_MASK | SYSCON_PDRUNCFG_PDEN_SRAMX_MASK)&lt;BR /&gt;#define EEPROM_DATA 0xC0DE&lt;BR /&gt;#define DEEP_SLEEP_TIME 100U&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt; * Code&lt;BR /&gt; ******************************************************************************/&lt;BR /&gt;/*!&lt;BR /&gt; * @brief Main function&lt;BR /&gt; */&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; eeprom_config_t config;&lt;BR /&gt; uint32_t sourceClock_Hz = 0;&lt;/P&gt;&lt;P&gt;/* attach 12 MHz clock to FLEXCOMM0 (debug console) */&lt;BR /&gt; CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockPLL180M();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM example begins...\r\n");&lt;/P&gt;&lt;P&gt;/* Init EEPROM */&lt;BR /&gt; EEPROM_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt; sourceClock_Hz = EEPROM_CLK_FREQ;&lt;BR /&gt; EEPROM_Init(EXAMPLE_EEPROM, &amp;amp;config, sourceClock_Hz);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write %x\n", EEPROM_DATA);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, EEPROM_DATA);&lt;/P&gt;&lt;P&gt;uint32_t readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data Before Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;/* Init RTC */&lt;BR /&gt; RTC_Init(RTC);&lt;BR /&gt; RTC_Reset(RTC);&lt;BR /&gt; NVIC_ClearPendingIRQ(RTC_IRQn);&lt;BR /&gt; RTC_EnableInterrupts(RTC, RTC_CTRL_WAKEDPD_EN_MASK);&lt;BR /&gt; EnableIRQ(RTC_IRQn);&lt;BR /&gt; EnableDeepSleepIRQ(RTC_IRQn);&lt;/P&gt;&lt;P&gt;/* Enter Deep Sleep for 100 ms */&lt;BR /&gt; BOARD_BootClockFRO12M();&lt;/P&gt;&lt;P&gt;PRINTF("Enter Deep Sleep!\n");&lt;BR /&gt; RTC_SetWakeupCount(RTC, DEEP_SLEEP_TIME);&lt;BR /&gt; RTC_StartTimer(RTC);&lt;BR /&gt; POWER_EnterDeepSleep((uint64_t)(DEEP_SLEEP_ENABLED_PERIPH));&lt;BR /&gt; RTC_StopTimer(RTC);&lt;BR /&gt; uint16_t sleepCount = DEEP_SLEEP_TIME - RTC_GetWakeupCount(RTC);&lt;BR /&gt; PRINTF("Sleep Time = %d ms\n", sleepCount);&lt;/P&gt;&lt;P&gt;BOARD_BootClockPLL180M();&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write Data After Sleep %x\n", 0x1234);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, 0x1234);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;PRINTF("EEPROM Write Data After Sleep %x\n", 0x5678);&lt;BR /&gt; EEPROM_WriteWord(EXAMPLE_EEPROM, 0, 0x5678);&lt;/P&gt;&lt;P&gt;readData = *((uint32_t *)(FSL_FEATURE_EEPROM_BASE_ADDRESS));&lt;BR /&gt; PRINTF("EEPROM Read Data After Sleep = %x\n", readData);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt; {&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void RTC_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; RTC_ClearStatusFlags(RTC, RTC_CTRL_WAKE1KHZ_MASK);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978051#M38623</guid>
      <dc:creator>emblink182</dc:creator>
      <dc:date>2019-10-29T17:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 546 EEPROM data corruption after deep sleep exit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978052#M38624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helllo &lt;A _jive_internal="true" data-content-finding="Community" data-userid="341740" data-username="emblink182@gmail.com" href="https://community.nxp.com/people/emblink182@gmail.com"&gt;Alex Tepliy&lt;/A&gt;,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;After waked up from deep sleep mode, try to reset the EEPROM:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;   &lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESET_PeripheralReset(kEEPROM_RST_SHIFT_RSTn);&lt;/P&gt; &lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91971iBBC2A8F5A20C4247/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 09:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978052#M38624</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-11-01T09:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 546 EEPROM data corruption after deep sleep exit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978053#M38625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice_Yang, thanks for your answer! Peripheral reset fixed this problem.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I have a few extra questions if you mind answer them.&lt;BR /&gt;1) Do I need to call eeprom_init after peripheral reset call?&lt;BR /&gt;2) In your opinion, what was the cause of the problem?&lt;BR /&gt;3) I inspect the source code of libpower.a and found a define PDRUNCFG0_PD_VDDCORE_EE witch marked as a reserved field in the datasheet. When I add this define to DEEP_SLEEP_ENABLED_PERIPH together with&amp;nbsp;SYSCON_PDRUNCFG_PDEN_VD6_MASK&amp;nbsp; eeprom worked fine. Does this flag relate to eeprom?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 17:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-546-EEPROM-data-corruption-after-deep-sleep-exit/m-p/978053#M38625</guid>
      <dc:creator>emblink182</dc:creator>
      <dc:date>2019-11-01T17:37:39Z</dc:date>
    </item>
  </channel>
</rss>

