<?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中的主题 [SOLVED] Possible problem with EMC/static memory access LPC54608</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664289#M26524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my first (test) board with the LPC54608 on my desk now. The board includes 8 MByte of SDRAM (x16 bit) and a NAND Flash (x8 bit) among other things.&lt;/P&gt;&lt;P&gt;The SDRAM works as it should, it passes various test patterns etc so I know that the interface for that one is working.&lt;/P&gt;&lt;P&gt;I also have a ST NAND256 Flash device mounted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The EMC-WE (P0.15) signal is connected both to the SDRAM (WE#) and the NAND Flash (WE#).&lt;/P&gt;&lt;P&gt;The EMC-CSN0 (P0.16) &amp;nbsp;signal is connected to the NAND Flash&amp;nbsp;as chip select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(EMC-OE (P0.17), EMC-A18 (P3.29), EMC-A19 (P3.30) are connected to NAND Flash (R#, AL, CL))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I see is that if I configure the Static memory controller 0 (CS0) and makes read access to address 0x80000000 and upwards, I see activity on the EMC-CSN0 and EMC-OE as expected. However, if I do write requests to the same area, I only see the EMC-CSN0 toggling and no activity on the EMC-WE pin.&lt;/P&gt;&lt;P&gt;(and remember, the SDRAM works fine, EMC-WE toggles nicely when accessing SDRAM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there something specific I need to be aware of when dealing with static memory on the EMC bus of the LPC54608 especially with regards to the EMC-WE signal ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The clock is set to 180 MHz&lt;/P&gt;&lt;P&gt;The init code for the static memory (I know, not pretty at the moment :smileywink:)&lt;/P&gt;&lt;P&gt;(Contents of the registers of the EMC static memory controller verified with Keil debugger)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_EnablePeriphClock(SYSCON_CLOCK_EMC);&lt;BR /&gt; /* Init EMC Controller -Enable-LE mode */&lt;BR /&gt; Chip_EMC_Init(LPC_EMC, 1, 0, 0);&lt;BR /&gt;Chip_Clock_SetEMCDiv(5);&lt;/P&gt;&lt;P&gt;/* Init EMC Dynamic Controller */&lt;BR /&gt;// Chip_EMC_Dynamic_Init(LPC_EMC, &amp;amp;IS42S16400_config, Chip_Clock_GetEMCRate());&lt;BR /&gt; &lt;BR /&gt; LPC_EMC_T *EMC_Reg_add = (LPC_EMC_T *) ((uint32_t) LPC_EMC + ((0) &amp;lt;&amp;lt; 5));&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICCONFIG0 = 0;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITWEN0 = 2;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITOEN0 = 2;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITRD0 = 8;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITPAG0 = 0x1F;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITWR0 = 8;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITTURN0 = 0x0f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_SYSCON-&amp;gt;EMCSYSCTRL= (1&amp;lt;&amp;lt;0) | (1&amp;lt;&amp;lt;2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Mar 2017 14:31:39 GMT</pubDate>
    <dc:creator>carstengroen</dc:creator>
    <dc:date>2017-03-18T14:31:39Z</dc:date>
    <item>
      <title>[SOLVED] Possible problem with EMC/static memory access LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664289#M26524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my first (test) board with the LPC54608 on my desk now. The board includes 8 MByte of SDRAM (x16 bit) and a NAND Flash (x8 bit) among other things.&lt;/P&gt;&lt;P&gt;The SDRAM works as it should, it passes various test patterns etc so I know that the interface for that one is working.&lt;/P&gt;&lt;P&gt;I also have a ST NAND256 Flash device mounted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The EMC-WE (P0.15) signal is connected both to the SDRAM (WE#) and the NAND Flash (WE#).&lt;/P&gt;&lt;P&gt;The EMC-CSN0 (P0.16) &amp;nbsp;signal is connected to the NAND Flash&amp;nbsp;as chip select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(EMC-OE (P0.17), EMC-A18 (P3.29), EMC-A19 (P3.30) are connected to NAND Flash (R#, AL, CL))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I see is that if I configure the Static memory controller 0 (CS0) and makes read access to address 0x80000000 and upwards, I see activity on the EMC-CSN0 and EMC-OE as expected. However, if I do write requests to the same area, I only see the EMC-CSN0 toggling and no activity on the EMC-WE pin.&lt;/P&gt;&lt;P&gt;(and remember, the SDRAM works fine, EMC-WE toggles nicely when accessing SDRAM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there something specific I need to be aware of when dealing with static memory on the EMC bus of the LPC54608 especially with regards to the EMC-WE signal ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The clock is set to 180 MHz&lt;/P&gt;&lt;P&gt;The init code for the static memory (I know, not pretty at the moment :smileywink:)&lt;/P&gt;&lt;P&gt;(Contents of the registers of the EMC static memory controller verified with Keil debugger)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_EnablePeriphClock(SYSCON_CLOCK_EMC);&lt;BR /&gt; /* Init EMC Controller -Enable-LE mode */&lt;BR /&gt; Chip_EMC_Init(LPC_EMC, 1, 0, 0);&lt;BR /&gt;Chip_Clock_SetEMCDiv(5);&lt;/P&gt;&lt;P&gt;/* Init EMC Dynamic Controller */&lt;BR /&gt;// Chip_EMC_Dynamic_Init(LPC_EMC, &amp;amp;IS42S16400_config, Chip_Clock_GetEMCRate());&lt;BR /&gt; &lt;BR /&gt; LPC_EMC_T *EMC_Reg_add = (LPC_EMC_T *) ((uint32_t) LPC_EMC + ((0) &amp;lt;&amp;lt; 5));&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICCONFIG0 = 0;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITWEN0 = 2;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITOEN0 = 2;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITRD0 = 8;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITPAG0 = 0x1F;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITWR0 = 8;&lt;BR /&gt; EMC_Reg_add-&amp;gt;STATICWAITTURN0 = 0x0f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_SYSCON-&amp;gt;EMCSYSCTRL= (1&amp;lt;&amp;lt;0) | (1&amp;lt;&amp;lt;2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 14:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664289#M26524</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2017-03-18T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Possible problem with EMC/static memory access LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664290#M26525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;found out what the problems was! The write signal for static memory is NOT the EMC_WE but rather the EMC_BLSN0..3 signals. When connecting the EMC_BLSN0 to the NAND Flash WE# pin it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure it is exactly clear in the UM/DS what to use, Fig 116 on page 599 shows the "WE" signal going to the 8 bit memory device (and not BLSN0).&lt;/P&gt;&lt;P&gt;That coupled with the wording in Table 552 on page 574 confused me.&lt;/P&gt;&lt;P&gt;(also the fact that on the LPC177x the same schematics are shown in the UM on Fig 19. on page 206. Here WE is shown as write signal for a 8 bit memory device and on the LPC177x this is EMC_WE which works fine for an 8 bit device (no need to use EMC_BLSN0 for that device)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 15:01:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664290#M26525</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2017-03-19T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Possible problem with EMC/static memory access LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664291#M26526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="283367" data-username="carstengroen" href="https://community.nxp.com/people/carstengroen"&gt;Carsten Groen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your sharing, I was wondering if you can exemplify the sch of the conjunction of LPC54608 and NAND flash.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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>Thu, 23 Mar 2017 05:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664291#M26526</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-23T05:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Possible problem with EMC/static memory access LPC54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664292#M26527</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;I have attached the part of the schematic with the NAND Flash, hope it makes sense.&lt;/P&gt;&lt;P&gt;Connections on LPC54608 is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EMC-D0..EMC-D7: P0_02 - P0_09&lt;/P&gt;&lt;P&gt;EMC-OE: P0_17&lt;/P&gt;&lt;P&gt;EMC-BLSN0: P1_17&lt;/P&gt;&lt;P&gt;EMC-CS0: P0_16&lt;/P&gt;&lt;P&gt;EMC-A19: P3_30&lt;/P&gt;&lt;P&gt;EMC-A18: P3_29&lt;/P&gt;&lt;P&gt;NAND Busy is just connected to a GPIO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static memory space 0 is set as 8 bit interface.&lt;/P&gt;&lt;P&gt;This places the NAND Flash at the following addresses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define DATA (*(volatile unsigned char*)0x80000000) // Bit 18 and 19 = Low&lt;BR /&gt;#define ADDR (*(volatile unsigned char*)0x80040000) // Bit 18 = High&lt;BR /&gt;#define CMD (*(volatile unsigned char*)0x80080000) // Bit 19 = High&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Udklip.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15857iB8047A740E91D20F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Udklip.JPG" alt="Udklip.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 05:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SOLVED-Possible-problem-with-EMC-static-memory-access-LPC54608/m-p/664292#M26527</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2017-03-23T05:55:12Z</dc:date>
    </item>
  </channel>
</rss>

