<?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のトピックRe: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/875010#M34945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;BR /&gt;Sorry for reply late.&lt;BR /&gt;If the SDRAM_SIZE becomes 129, it means that the writing byte will be 258 bytes which consist of 0x2800101 and 0x2800102(will be written: 0xA5A5) and the previous 256 bytes.&lt;BR /&gt;So it's correct.&lt;/P&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/90470iC31BC303F4680940/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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, 05 Jul 2019 11:28:05 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2019-07-05T11:28:05Z</dc:date>
    <item>
      <title>SDRAM Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874979#M34914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;Hi Jeremy,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am using &lt;STRONG&gt;LPC4367&lt;/STRONG&gt; controller with &lt;STRONG&gt;MCU Xpresso 10.3.0_2200&lt;/STRONG&gt;. I am using SDRAM and NOR Flash interface in one of our projects. I was working with Evaluation board &lt;STRONG&gt;OM13088&lt;/STRONG&gt; but it that board no SDRAM and NOR flash interface is avialable.&amp;nbsp; I am using SDRAM and NOR flash both interfaced with EMC lines aviable in LPC4367 controller.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I refered the code in &lt;SPAN&gt;e lpcopen_3_02_lpcxpresso_mcb4357 and also refered&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;periph_memtest and misc_spifi_tst demos&lt;/SPAN&gt;.&lt;/SPAN&gt;&amp;nbsp;But there is no EMC init routine avialable. Is there any sample code or a reference code for SDRAM with proper intitiatilization routine.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Also i want to allocate one of my Buffer to SDRAM address, i got the information related to it i MCU expresso User guied but still i want to know than as we user&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;__At(Address) attribute in Keil to allocate the array or a buffer like&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;uint16_t Buffer[1024]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__at(0x28000000)&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In the similar manner how we can use it in MCU Expresso . I have&amp;nbsp; downloaded MCUxpresso 10.3.0 .&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;To conclude i want the sample or areference code for SDRAM and NOR flash with proper EMC init routine which not provided in existing reference code&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I need this since i want to test my development board which is ready. So please consider it on higher priority. Mean while i am trying to refere other forums as well for my understanding.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874979#M34914</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-02-19T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874980#M34915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I've answered the question in the thread (&lt;A href="https://community.nxp.com/thread/495962"&gt;SDRAM and NOR Flash Sample / Reference code for Understanding the functionality&lt;/A&gt;&amp;nbsp;), please check it.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Wed, 20 Feb 2019 05:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874980#M34915</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-02-20T05:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874981#M34916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response. As per&amp;nbsp; your inputs i have check the code for SDRAM available in LPCopen (periph_memtest) ans as per that I created new project for my development board using LPC4367 in LPCXpresso IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issue with the code where my code crashes in between.&amp;nbsp; Following the code for EMC initialization.&lt;/P&gt;&lt;P&gt;SDRAM which&amp;nbsp; i habe interface is "AS4C4M16SA-C&amp;amp;I"&amp;nbsp; 64M – (4M x 16 bit) Synchronous DRAM (SDRAM). Controller is running at 100 Mhz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define EMC_ADDRESS_DYCS0&amp;nbsp; &amp;nbsp;(0x28000000)&lt;/P&gt;&lt;P&gt;#define DRAM_SIZE 20//(8 * 1024 * 1024)&lt;/P&gt;&lt;P&gt;/* EMC clock delay */&lt;BR /&gt;#define CLK0_DELAY 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Chip_SystemInit(void)&lt;BR /&gt;{&lt;BR /&gt; /* Initial internal clocking */&lt;BR /&gt; //Chip_SetupIrcClocking();&lt;/P&gt;&lt;P&gt;/* Setup FLASH acceleration to target clock rate prior to clock switch */&lt;BR /&gt; Chip_CREG_SetFlashAcceleration(MAX_CLOCK_FREQ);&lt;/P&gt;&lt;P&gt;Chip_SetupXtalClocking();&lt;/P&gt;&lt;P&gt;/* Reset and enable 32Khz oscillator */&lt;BR /&gt; LPC_CREG-&amp;gt;CREG0 &amp;amp;= ~((1 &amp;lt;&amp;lt; 3) | (1 &amp;lt;&amp;lt; 2));&lt;BR /&gt; LPC_CREG-&amp;gt;CREG0 |= (1 &amp;lt;&amp;lt; 1) | (1 &amp;lt;&amp;lt; 0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void EMC_SetpinMux&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* EMC Address Lines */&lt;BR /&gt; /*A0 - A4*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 9, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 10, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 11, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 12, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 13, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*A5 - A7*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 0, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 1, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 2, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;/*A8 - A10*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 8, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*A11 - A13*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 2, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 1, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x02, 0, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;/*A14-A15*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 8, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC1));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC1));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* EMC Data Lines */&lt;BR /&gt; /* D0 - D7 */&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 8, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 9, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 10, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 11, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 12, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 13, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/* D8 - D11 */&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 5, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;/* D12 - D15 */&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 0, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 1, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 2, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(0x05, 3, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /*EMC Control Lines*/&lt;BR /&gt; /*EMC_WE*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*EMC_BLS0*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x01, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;BR /&gt; /*EMC_BLS0*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC1));&lt;/P&gt;&lt;P&gt;/*EMC_CAS*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*EMC_RAS*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 5, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*SDRAM_CS0*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 9, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*SDRAM_CKEO (EMC_CKEOUT0)*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 11, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*EMC_DQMOUT0*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 12, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/*EMC_DQMOUT1*/&lt;BR /&gt; Chip_SCU_PinMuxSet(0x06, 10, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC3));&lt;/P&gt;&lt;P&gt;/* SDRAM_CLK0 (EMC_CLK0)*/&lt;BR /&gt; Chip_SCU_ClockPinMuxSet(0, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_HIGHSPEEDSLEW_EN | SCU_MODE_FUNC0));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void EMC_SetupSDRAMMemmory(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/* Setup EMC Delays */&lt;BR /&gt; /* Move all clock delays together */&lt;BR /&gt; LPC_SCU-&amp;gt;EMCDELAYCLK = ((CLK0_DELAY) | (CLK0_DELAY &amp;lt;&amp;lt; 4) | (CLK0_DELAY &amp;lt;&amp;lt; 8) | (CLK0_DELAY &amp;lt;&amp;lt; 12));&lt;/P&gt;&lt;P&gt;/* Setup EMC Clock Divider for divide by 2 - this is done in both the CCU (clocking)&lt;BR /&gt; and CREG. For frequencies over 120MHz, a divider of 2 must be used. For frequencies&lt;BR /&gt; less than 120MHz, a divider of 1 or 2 is ok. */&lt;BR /&gt; Chip_Clock_EnableOpts(CLK_MX_EMC_DIV, true, true, 2);&lt;BR /&gt; LPC_CREG-&amp;gt;CREG6 |= (1 &amp;lt;&amp;lt; 16);&lt;/P&gt;&lt;P&gt;/* Enable EMC clock */&lt;BR /&gt; Chip_Clock_Enable(CLK_MX_EMC);&lt;/P&gt;&lt;P&gt;/* Init EMC Controller -Enable-LE mode */&lt;BR /&gt; Chip_EMC_Init(1, 0, 0);&lt;BR /&gt; /* Init EMC Dynamic Controller */&lt;BR /&gt; Chip_EMC_Dynamic_Init((IP_EMC_DYN_CONFIG_T *) &amp;amp;AS4C4M16SA_CI_Config);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Main While*/&lt;/P&gt;&lt;P&gt;uint32_t *StardAddr, *StardAddr1;&lt;BR /&gt; uint32_t Length = DRAM_SIZE;&lt;BR /&gt; uint32_t ReadData[DRAM_SIZE];&lt;BR /&gt; uint32_t WriteData[DRAM_SIZE];&lt;BR /&gt; unsigned long i = 0;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt; // Read clock settings and update SystemCoreClock variable&lt;BR /&gt; SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// TODO: insert code here&lt;BR /&gt; /* LED31 PA.4 - GPIO5[19] */&lt;BR /&gt; Chip_SCU_PinMuxSet(0xA, 4,(SCU_MODE_INBUFF_EN | SCU_MODE_PULLUP | SCU_MODE_FUNC4));&lt;BR /&gt; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 19, (bool) true);&lt;BR /&gt; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 5, 19);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMC_SetPinMux();&lt;BR /&gt; // Force the counter to be placed into memory&lt;BR /&gt; EMC_SetupSDRAMMemmory();&lt;BR /&gt; // Enter an infinite loop, just incrementing a counter&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; StardAddr = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; for(i=0; i&amp;lt;20; i++)&lt;BR /&gt; {&lt;BR /&gt; *StardAddr = 0x55AA55AA;&lt;BR /&gt; StardAddr++;&lt;BR /&gt; }&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFF;i++ );&lt;BR /&gt; for (i=0; i&amp;lt;0xFFF;i++ );&lt;BR /&gt;#if 1&lt;BR /&gt; StardAddr1 = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; for(i=0; i&amp;lt;Length; i++)&lt;BR /&gt; {&lt;BR /&gt; ReadData[i] = (uint32_t)*StardAddr1;&lt;BR /&gt; if(ReadData[i] != *StardAddr1)&lt;BR /&gt; {&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; StardAddr1++;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;BR /&gt; return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not understanding that it sometimes works and sometime while debugging it crasches. I referred&amp;nbsp; follwing thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/455171"&gt;https://community.nxp.com/thread/455171&lt;/A&gt;&amp;nbsp;while implementation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me now whether the method whic i am using to access the SDRAM memory is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also find the code attached for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874981#M34916</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-13T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874982#M34917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs regarding the query. It is required for&amp;nbsp; the project development. Need to any modifications required since some times it runs a complete while and agian while repeating the same statement it crashes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;StardAddr = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;for(i=0; i&amp;lt;20; i++)&lt;BR /&gt;{&lt;BR /&gt;*StardAddr = 0x55AA55AA;&lt;BR /&gt;StardAddr++;&lt;BR /&gt;}&lt;BR /&gt;for (i=0; i&amp;lt;0xFFFF;i++ );&lt;BR /&gt;for (i=0; i&amp;lt;0xFFF;i++ );&lt;BR /&gt;#if 1&lt;BR /&gt;StardAddr1 = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;for(i=0; i&amp;lt;Length; i++)&lt;BR /&gt;{&lt;BR /&gt;ReadData[i] = (uint32_t)*StardAddr1;&lt;BR /&gt;if(ReadData[i] != *StardAddr1)&lt;BR /&gt;{&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt;for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;StardAddr1++;&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;refer the code attached inthe above post.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 11:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874982#M34917</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-14T11:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874983#M34918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi Jeremy,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Any inputs regarding the query. It is required for&amp;nbsp; the project development. Need to any modifications required since some times it runs a complete while and agian while repeating the same statement it crashes,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;StardAddr = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;for(i=0; i&amp;lt;20; i++)&lt;BR /&gt;{&lt;BR /&gt;*StardAddr = 0x55AA55AA;&lt;BR /&gt;StardAddr++;&lt;BR /&gt;}&lt;BR /&gt;for (i=0; i&amp;lt;0xFFFF;i++ );&lt;BR /&gt;for (i=0; i&amp;lt;0xFFF;i++ );&lt;BR /&gt;#if 1&lt;BR /&gt;StardAddr1 = (uint32_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;for(i=0; i&amp;lt;Length; i++)&lt;BR /&gt;{&lt;BR /&gt;ReadData[i] = (uint32_t)*StardAddr1;&lt;BR /&gt;if(ReadData[i] != *StardAddr1)&lt;BR /&gt;{&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt;for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;StardAddr1++;&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;refer the code attached inthe above post.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 05:09:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874983#M34918</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-17T05:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874984#M34919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I'd like to know which board you run the code for testing, in further, &lt;BR /&gt;whether you can replicate the crash event every time.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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, 17 May 2019 07:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874984#M34919</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-17T07:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874985#M34920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on my customized board. I refered AN11508 for SDRAM modification and I am using AS4C4M16SA-C&amp;amp;I ,&amp;nbsp;64M – (4M x 16 bit) Synchronous DRAM (SDRAM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also refered follwing links,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/435767"&gt;https://community.nxp.com/thread/435767&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/418570"&gt;https://community.nxp.com/thread/418570&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/420158"&gt;https://community.nxp.com/thread/420158&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/420806"&gt;https://community.nxp.com/thread/420806&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on these links I made modifications in my code. Also find the schematics for development board based on the AN11508.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&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/81498iA8DED7F1F49763A8/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;P&gt;Also now I made slight modification with respect to the EMC_CLK0. I changed for EMC_CLK0 to EMC_CLK1. Rest all the connections are same.&lt;/P&gt;&lt;P&gt;Now after doing this modification I am facing problem with respect to the code execution. I am writing data to the SDRAM location using the following method,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define DRAM_SIZE 20//(8 * 1024 * 1024)&lt;/P&gt;&lt;P&gt;#define EMC_ADDRESS_DYCS0&amp;nbsp; &amp;nbsp;(0x28000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint16_t *StardAddr,&lt;BR /&gt;uint16_t Length = DRAM_SIZE;&lt;BR /&gt;uint16_t ReadData[DRAM_SIZE];&lt;BR /&gt;uint16_t WriteData[DRAM_SIZE];&lt;/P&gt;&lt;P&gt;unsigned long&amp;nbsp; i = 0;&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;StardAddr = (uint16_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for(i=0; i&amp;lt;20; i++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*StardAddr = 0x55AA;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;StardAddr++;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0; i&amp;lt;0xFFFF;i++ );&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0; i&amp;lt;0xFFF;i++ );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StardAddr = (uint16_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;for(i=0; i&amp;lt;Length; i++)&lt;BR /&gt; {&lt;BR /&gt; ReadData[i] = *StardAddr1;&lt;BR /&gt; if(ReadData[i] != *StardAddr)&lt;BR /&gt; {&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; StardAddr++;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}/* EOF While*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the process and the observations while running the code.&lt;/P&gt;&lt;P&gt;After loading the code I stop the code in while(1) , at "&lt;SPAN&gt;StardAddr = (uint16_t *)EMC_ADDRESS_DYCS0; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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/81505i3C1EC35ABDF451F5/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;P&gt;here you can see that before initialization nothing is there in the expression. I have already written 0x55aa. so now it is expected that as I assign the address I should see the data 0x55aa l in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81506i3EE8A8FF928B346D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;after running the code stepwise it is assigned and you can see the value as well in the expression side. Then i run the code and stop the debugger on the reading section&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81507iBA51FD8A4040B02E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am againg assigning the same variable pointer to&amp;nbsp; the start of the SDRAM address. Now again if I asigned the address to the start location it is expected that it should show the same data again 0x55aa. but below you can see,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81508iDEC7A7B3A9FC0489/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in the expression side no value is there even though the pointer is assigned to the&amp;nbsp; SDRAM start addess&amp;nbsp;0x28000000. After running the code till&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ReadData[i] = *StardAddr1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81509i5BD43AC709263F74/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again step wise execution&amp;nbsp; from the above line, it goes somewhere which cannot be traced,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81510i0010942A16DABCDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also it show in the expression side&amp;nbsp; some error. Now I&amp;nbsp; have terminate in order to come out of the loop. then it gives error as&lt;/P&gt;&lt;P&gt;"Target error from status-poll: Ee(FF). Redlink interface error 255."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not understanding the reason behind the same. is it a problem with the compiler or with SDRAM access routine?. I am using LPCXpresso IDE.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Refere the attached code as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEed the solution for the same since it is required in the project ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 10:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874985#M34920</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-17T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874986#M34921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;After reviewing the code carefully, I don't find the errors except that miss configuring the EMC_D7 pin, please check it.&lt;/P&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/81669i9DB089AB1937D452/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;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81670i2F878ECAC62A884D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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>Mon, 20 May 2019 08:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874986#M34921</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-20T08:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874987#M34922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for the input. I missed the initialization of the EMC_D7. I made the modification in the code. I found that when i do debugging of the code it creates problem. But when i run without break points it it is running properly. This is say based on the the code I have written.&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;/P&gt;&lt;P&gt;StardAddr = (uint16_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; for(i=0; i&amp;lt;20; i++)&lt;BR /&gt; {&lt;BR /&gt; *StardAddr = 0x55AA;&lt;BR /&gt; StardAddr++;&lt;BR /&gt; }&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFF;i++ );&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; StardAddr = (uint16_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; for(i=0; i&amp;lt;Length; i++)&lt;BR /&gt; {&lt;BR /&gt; ReadData[i] = *StardAddr;&lt;BR /&gt; if(ReadData[i] != 0x55AA)&lt;BR /&gt; {&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 19, (bool) true);&lt;BR /&gt;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;StardAddr++;&lt;BR /&gt; }&lt;BR /&gt; for (i=0; i&amp;lt;0xFFFF;i++ );&lt;BR /&gt;return 0;&lt;/P&gt;&lt;P&gt;}/*Eof While*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While running this code stepwise using debugging method it creates problem which I mentioned. But when I run the code without break point it runs and when it verifies the read and write data and if it proper then the LED will toggle and if there is a mismatch then the LED will be continuos ON.&lt;/P&gt;&lt;P&gt;This is how i am verifying the SDRAM read and write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagarding the behaviour of the code is ther a problem if i debug the code with break points? Is this behaviour is correct?&lt;/P&gt;&lt;P&gt;I will also be working with NOR flash but the code available in the example codes mentioned that the NOR flash code is not tested.And the code is based on SPI flash not the parallel interface flash. I am lokking for paralle interface NOR Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any sample code for reference w.r.t the interface of NOR flash?&lt;/P&gt;&lt;P&gt;Also&amp;nbsp; can SDRAM and NOR FLash access is possible simultaneously?&lt;/P&gt;&lt;P&gt;It is required in our project on higher priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 05:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874987#M34922</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-21T05:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874988#M34923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore" rel="nofollow noopener noreferrer" target="_blank"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;Q1) Regarding the behavior of the code is the problem if I debug the code with breakpoints? Is this behavior is correct?&lt;BR /&gt;-- Yes, it's correct.&lt;BR /&gt;Q2) Do we have any sample code for reference w.r.t the interface of NOR flash?&lt;BR /&gt;-- No, however, in the periph_memtest demo, it's initialized the parallel flash, it's available to be testing as doing for the SDRAM.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Setup external memories */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Board_SetupExtMemory&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Setup EMC Delays */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Move all clock delays together */&lt;/SPAN&gt;
 LPC_SCU&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;EMCDELAYCLK &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK0_DELAY&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK0_DELAY &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK0_DELAY &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK0_DELAY &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Setup EMC Clock Divider for divide by 2 - this is done in both the CCU (clocking)
    and CREG. For frequencies over 120MHz, a divider of 2 must be used. For frequencies
    less than 120MHz, a divider of 1 or 2 is ok. */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_EnableOpts&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK_MX_EMC_DIV&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; true&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; true&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 LPC_CREG&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;CREG6 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;16&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Enable EMC clock */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_Enable&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CLK_MX_EMC&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Init EMC Controller -Enable-LE mode */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_EMC_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/* Init EMC Dynamic Controller */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_EMC_Dynamic_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IP_EMC_DYN_CONFIG_T &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;MT48LC4M32_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;



 &lt;SPAN class="comment token"&gt;/* Init EMC Static Controller CS0 */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_EMC_Static_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IP_EMC_STATIC_CONFIG_T &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;S29GL64N90_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;



 &lt;SPAN class="comment token"&gt;/* Enable Buffer for External Flash */&lt;/SPAN&gt;
 LPC_EMC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;STATICCONFIG0 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;19&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Q3) Also can SDRAM and NOR flash access is possible simultaneously?&lt;BR /&gt;-- No, I'm afraid not.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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>Tue, 21 May 2019 08:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874988#M34923</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-21T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874989#M34924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I will check with the code for NOR flash and get back to you. Before that I am trying to allocate the memory to the buffer. for that i refered&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-content-finding="Community" data-objectid="389100" data-objecttype="1" href="https://community.nxp.com/thread/389100" rel="noopener noreferrer" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px 1px calc(12px + 0.35ex);" target="_blank"&gt;Placing data into different RAM blocks&lt;/A&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;thread. But still no success.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;I created the memory in MCU setting as SDRAM_8MB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/83435i119953F3DDF02BC3/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Then using _DATA(RAM) I allocated the buffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;__DATA(RAM8) uint8_t data_buffer[DRAM_SIZE_1] ; then after compilation it was not showing the correct values as shown below you can see that the memory size and name exisit but used size is 0 where it should be 1KB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/83436i6EA8A210289E5743/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;I have attached the Code for your reference. Kindly check for the same. I also check .Map file but still it did not show the variable name which i used. Also tried to use.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="background: #f5f2f0; border: 0px; font-size: 15px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 15px;"&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 15px;"&gt;__attribute__&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;(&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 15px;"&gt;section&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 15px;"&gt;".noinit.$RAM5"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 15px;"&gt;aligned&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit; font-size: 15px;"&gt;8&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;)&lt;/SPAN&gt;
uint8_t data_buffer&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;[&lt;/SPAN&gt;BUF_SIZE&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 15px;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;But again no success. Output is same as above. Please check the code and let me know since im using LPCXpresso so the mehtod are different and i am trying those methods only. Please check the code meanwhile i will refer the forums for the same to check whether there is any mistake from my side in the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Gaurav More.&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 id="toc-hId-2019462278" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 2rem;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874989#M34924</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2020-11-02T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874990#M34925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any update regarding the SDRAM memory allocation using _SECTION and _DATA pragma mentioned above. I am checking but it is not reflectiong int he code as per the&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389100"&gt;Placing data into different RAM blocks&lt;/A&gt;&amp;nbsp;post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the post i made the modification inthe code and added the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__SECTION(data,RAM8) uint8_t data_buffer[1024];&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t&lt;SPAN&gt; &lt;/SPAN&gt;*StardAddr1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint16_t Length = 20;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uinsinged long i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (i=0;i&amp;lt;Length; i++)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;data_buffer[i] = 0x0B;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinToggle(LPC_GPIO_PORT, 5, 19);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0; i&amp;lt;0xFFFFF;i++ );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;StardAddr1 = (uint8_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0;i&amp;lt;Length; i++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(data_buffer[i] != *StardAddr1)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 19, (bool) true);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(1)&amp;nbsp;{}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}/* EOF While */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After compiling the code I got the data as menioned below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83549i71DCD6176FFE8991/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see that it is reflecting the memory as 1K used size.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but&amp;nbsp; when I execute the following statement&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for (i=0;i&amp;lt;Length; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;data_buffer[i] = 0x0B;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is expected that it should only fill 20 locations instead of 1024. but while checking the code it fills all the location that is 1024.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;StardAddr1 = (uint8_t *)EMC_ADDRESS_DYCS0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0;i&amp;lt;Length; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(data_buffer[i] != *StardAddr1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 19, (bool) true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(1)&amp;nbsp;{}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here while executing the code while assigning the pointer to&amp;nbsp;EMC_ADDRESS_DYCS0 and checking the expression it is visible that we can observe the&amp;nbsp; value of *StardAddr1 which is the same as written in&amp;nbsp;data_buffer. But it stuck in between since the length variable value is 2827 which is not the actual value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not able to figure out how it changes the values where i have assigne value 20 hardcoded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All this issue comes while debugging and while free running menas removing the debugger and reseting the controller it works properly the LED toggling works fine,. So why is&amp;nbsp; this ? since moving further it is required in the project that I need to used the debugging method to check the implementation with different variables allocated in different location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also now i am using&amp;nbsp;__SECTION(data,RAM8) uint8_t data_buffer[1024];&amp;nbsp;This will place the 1024 byte buffer into the RAM8 but if i want another buffer to be allocated in the continuos memory location then shall I use below mentioned way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;__SECTION(data,(RAM8 + sizeof (data_buffer)) uint8_t data_buffer1[1024];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please check the code I shared for that since I need to evaluation accessing&amp;nbsp; time of SDRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 07:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874990#M34925</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-22T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874991#M34926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="313949" data-username="gauravmore" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;No doubt that the &lt;A href="https://community.nxp.com/thread/389100"&gt;Placing data into different RAM blocks&lt;/A&gt;&amp;nbsp;illustrate the correct way to place the data in the RAM,&lt;BR /&gt;And the key question is the data buffer[] array is capable of doing read and write operation or not, whether you give a try.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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>Wed, 22 May 2019 09:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874991#M34926</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-22T09:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874992#M34927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to allocate the data buffer array to SDRAM memory but when I am writing the data using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;for (i=0;i&amp;lt;Length; i++)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;data_buffer[i] = 0x0B;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This code and checking whether it is updated then it shows tha all the 1024 location is updated instead of 20 location. Why this is ?&amp;nbsp; and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Also now i am using&amp;nbsp;__SECTION(data,RAM8) uint8_t data_buffer[1024];&amp;nbsp;This will place the 1024 byte buffer into the RAM8 but if i want another buffer to be allocated in the continuos memory location then shall I use below mentioned way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;__SECTION(data,(RAM8 + sizeof (data_buffer)) uint8_t data_buffer1[1024];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Also please check the code where I have modified the EMCD7 pin configuration and also the allocation of the databuffer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 09:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874992#M34927</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-22T09:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874993#M34928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1) This code and checking whether it is updated then it shows that all the 1024 location is updated instead of 20 location. Why this is?&lt;BR /&gt;-- I'm not clear with your statement, please explain it.&lt;BR /&gt;2) Also now i am using __SECTION(data,RAM8) uint8_t data_buffer[1024]; This will place the 1024 byte buffer into the RAM8 but if i want another buffer to be allocated in the continuos memory location then shall I use below mentioned way?&lt;BR /&gt;-- Please refer to the thread &lt;A href="https://community.nxp.com/thread/389101"&gt;Placing data at an address&lt;/A&gt;&amp;nbsp; to make it.&lt;BR /&gt;3) Also please check the code where I have modified the EMCD7 pin configuration and also the allocation of the databuffer.&lt;BR /&gt;-- I already check it and it's correct now.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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>Thu, 23 May 2019 06:03:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874993#M34928</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-23T06:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874994#M34929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;1) This code and checking whether it is updated then it shows that all the 1024 location is updated instead of 20 location. Why this is?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;--- I declared the uint8_t data_buffer arrary of size 1024 bytes. Now I have assigned the data_buffer to SDRAM location using&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;__SECTION(data,RAM8) uint8_t data_buffer[1024];&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Now in main I am only filling 20 array location with 0x0B using where Length = 20&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;for (i=0;i&amp;lt;Length; i++)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;data_buffer[i] = 0x0B;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; "&gt;But after completion of the loop I found that all 1024 array is filled with 0x0B. It is expected that only from data_buffer[0] to data_buffer[19], it should fill 0x0B rest all should be 0. This is what is happening and I am not understanding the reason for the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; "&gt;Also in addition although it is filled with 1024 array with oxoB, I moved forward to check whether the value is fillled at the SDRAM location where the data_buffer is allocated using another pointer .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;uint8_t *StardAddr1;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;StardAddr1 = (uint8_t *)EMC_ADDRESS_DYCS0;//0x28000000&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (i=0;i&amp;lt;Length; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(data_buffer[i] != *StardAddr1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 19, (bool) true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(1)&amp;nbsp;{}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Now Length variable value is 20. So it means it should check only 20 array locations but when I check in debug mode the value of length variable is something 2527. So iIam not understanding this behaviour and also in that case if I check in debug mode then the&amp;nbsp; debugger hangs and then only way is to terminate it and again reload. but when I remove the debugger and reset the board then the code works properply as per the LED indication.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Now there is confusion that even though the code is working fine in free running mode, is it checking only for 20 array location out of 1024?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Over all it is difficult to understand the behaviour of the debbuger and that why I ask you to check the modified code where whether i have made any mistake or missing any modification which is affecting the debugging of the code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Is there any issue with the debugger when executing the external RAM code access?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Also one more question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Do we have an sample code for NOR flash interface with any other controll apart from LPC4367? &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Need for the reference and validation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Gaurav More&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 09:08:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874994#M34929</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-23T09:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874995#M34930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Q1) Do we have a sample code for NOR flash interface with any other controller apart from LPC4367? &lt;BR /&gt;-- In the periph_memtest demo, it's also initialized the parallel flash, it's available to be testing as doing for the SDRAM. In addition, I've attached a demo which describes how to use EMC to program the external Nor Flash, note that: the demo is base on Keil and IAR.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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, 24 May 2019 07:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874995#M34930</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-24T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874996#M34931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for the reply and the code you sent for the reference. I am refering the code and making modifcations as per the demo code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the SDRAM code debug behaviour is still open. I am attaching the setup for debuging where you can see that I am using OM13088 Evaluation board for debugging by development board.&lt;/P&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/83854i5657A05C3A47BFBF/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;P&gt;&lt;/P&gt;&lt;P&gt;Here you can see that the evalboard OM13088 for LPC4367 is used to debug the development board. Also i am attaching the vedio of the behaviour while debugging the code.&lt;/P&gt;&lt;P&gt;The details of the vedio is as follows, whic you can see it in the vedio but feww thing i want to highlight while watching the vedio,&lt;/P&gt;&lt;P&gt;1. When I uploaded the code for debugging and run the code without any break point. at that time the code is working fine. You can see the LED toggling as per the code logic.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Now when I stop the code then it stoped at for loop,&amp;nbsp; there you can see the at the data_buffer I want to store 0x0B and that too in only 20 arrays but the expression shows that it has stored in all the array location which is not expected as per the logic.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;#define&amp;nbsp;&amp;nbsp;DRAM_SIZE&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Length = DRAM_SIZE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;for (i=0;i&amp;lt;Length; i++)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;data_buffer[i] = 0x0B;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This is the first issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3. The second issue, When I put the break to other locationa after stopping the code to check the value then you can see the behaviour, It is not tracable . it shows some error which is not understanding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;4. And the last one is when i stop the code again to trace the program counter then the code gets terminated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;but again when I run the code after removing teh debugger then it runs well as per the code logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am attaching both the vedios&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1. Debug behaviour (SDRAM_debugvedio.zip)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2. After reset the board by removing the debugger,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is critical since i need to integrate the module in my project but if the debug behaviour is like this then it is deficult for the to proceed. Also refer the attached code w.r.t the settings required for debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp; SDRAM (AS4C4M16SA-6TIN ) for your reference. Also let me know if I am missing any settings. Mean while I will work with the NOR flash code as per the demo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 06:14:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874996#M34931</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-27T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874997#M34932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="313949" data-objecttype="3" href="https://community.nxp.com/people/gauravmore"&gt;Gaurav More&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;According to your reply, the demo will work well while debugging, however, it may encounter some weird phenomenon when placing some breakpoints, is that right?&lt;BR /&gt;What's the firmware the LPC4367 run with, CMSIS-DAP or Jlink?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&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>Mon, 27 May 2019 09:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874997#M34932</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-27T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM and NOR Flash Sample / Reference code for Understanding the functionality</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874998#M34933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It worked well when it is free running. which you already seen and when I put a breakpoint in between to check the values then it is behaving some what different. Also it is just a demo code and no other modules are running in parallel with that.&lt;/P&gt;&lt;P&gt;Especially for me this is one concern regarding the fill part&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;I&lt;/SPAN&gt;&amp;nbsp;want to store 0x0B and that too in only 20 arrays but the expression shows that it has stored in all the array location which is not expected as per the logic.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;#define&amp;nbsp;&amp;nbsp;DRAM_SIZE&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Length = DRAM_SIZE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;for (i=0;i&amp;lt;Length; i++)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;data_buffer[i] = 0x0B;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2) What's the firmware the LPC4367 run with, CMSIS-DAP or Jlink?&lt;/P&gt;&lt;P&gt;&lt;/P&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/83900i197F951F8CB6AD50/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;P&gt;&lt;/P&gt;&lt;P&gt;Also you can comment on the setup but for me i am able to debug but then it there any dependency of the debugger?&amp;nbsp;&lt;/P&gt;&lt;P&gt;also have check the project is there any such issue whic can trigger the kind of behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 11:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-Reference-code-for-Understanding-the-functionality/m-p/874998#M34933</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2019-05-27T11:15:18Z</dc:date>
    </item>
  </channel>
</rss>

