<?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のトピックLPC1788: EMC at reset</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-EMC-at-reset/m-p/1430672#M48265</link>
    <description>&lt;P&gt;I'm using LPC1788 on a custom board. I'm using a J-Link debugger probe connected to SWD.&lt;/P&gt;&lt;P&gt;The user manual says PCEMC (bit 11 of PCONP) reset value is 0 (EMC peripheral is disabled). However, when I start a debug session from MCUXpresso IDE I can see PCEMC at 1, even at the beginning of ResetISR(). Anyway the project doesn't touch PCEMC at all and I tested this after a power cycle.&lt;/P&gt;&lt;P&gt;Another question. What happens if I access an address mapped to EMC (0xA000 0000), but the EMC is not configured yet?&lt;/P&gt;&lt;P&gt;I put a static variable to SDRAM through linker script. ResetISR() tries to reset bss sections, including the variable in SDRAM. During ResetISR() SDRAM is not already configured, so I thought an HardFault exception triggered, but this isn't the case. main() function is called as usual, even if I have a bss section in SDRAM (address 0xA000 0000) and EMC is not configured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 10:40:30 GMT</pubDate>
    <dc:creator>giusloq</dc:creator>
    <dc:date>2022-03-18T10:40:30Z</dc:date>
    <item>
      <title>LPC1788: EMC at reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-EMC-at-reset/m-p/1430672#M48265</link>
      <description>&lt;P&gt;I'm using LPC1788 on a custom board. I'm using a J-Link debugger probe connected to SWD.&lt;/P&gt;&lt;P&gt;The user manual says PCEMC (bit 11 of PCONP) reset value is 0 (EMC peripheral is disabled). However, when I start a debug session from MCUXpresso IDE I can see PCEMC at 1, even at the beginning of ResetISR(). Anyway the project doesn't touch PCEMC at all and I tested this after a power cycle.&lt;/P&gt;&lt;P&gt;Another question. What happens if I access an address mapped to EMC (0xA000 0000), but the EMC is not configured yet?&lt;/P&gt;&lt;P&gt;I put a static variable to SDRAM through linker script. ResetISR() tries to reset bss sections, including the variable in SDRAM. During ResetISR() SDRAM is not already configured, so I thought an HardFault exception triggered, but this isn't the case. main() function is called as usual, even if I have a bss section in SDRAM (address 0xA000 0000) and EMC is not configured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 10:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-EMC-at-reset/m-p/1430672#M48265</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-18T10:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788: EMC at reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-EMC-at-reset/m-p/1431078#M48278</link>
      <description>&lt;P&gt;Hi, Giuseppe,&lt;/P&gt;
&lt;P&gt;I think it is possible that the PCEMC (bit 11 of PCONP) reset value is 1 rather than 0 after Reset.&lt;/P&gt;
&lt;P&gt;If you write/read SDRAM before you initialize the EMC, the SDRAM will not generate the timing to access SDRAM, if you write or read the correct EMC address space, I do not think the hard-fault will be triggered.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 06:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-EMC-at-reset/m-p/1431078#M48278</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-21T06:11:23Z</dc:date>
    </item>
  </channel>
</rss>

