<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LPC1788 - SDRAM after a watchdog reset... in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SDRAM-after-a-watchdog-reset/m-p/519498#M3190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marc Crandall on Mon Dec 05 14:29:10 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an LPC1788 with a MT48LC16M16 SDRAM chip.&amp;nbsp; All works well and I do not have any issues with the external memory in normal operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a bootloader to configure the external memory and run a memory check.&amp;nbsp; My problem is when I get a watchdog reset in the main application (I'm causing them on purpose for testing) the configuration of the external SDRAM runs in the bootloader and one of two things happens:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Everything works exactly the same as on a power up (50% of the time)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) As soon as I try and access the memory I get a fault that kills my debugger. (The other 50% of the time)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea what is going on?&amp;nbsp; Note I have tried this with SCB bit 1 on/off no difference.&amp;nbsp; I've also tried not re-configuring the EMC when it's a watchdog reset but this seems to fail every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to safely and surely reset this SDRAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:39:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:39:40Z</dc:date>
    <item>
      <title>LPC1788 - SDRAM after a watchdog reset...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SDRAM-after-a-watchdog-reset/m-p/519498#M3190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marc Crandall on Mon Dec 05 14:29:10 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an LPC1788 with a MT48LC16M16 SDRAM chip.&amp;nbsp; All works well and I do not have any issues with the external memory in normal operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a bootloader to configure the external memory and run a memory check.&amp;nbsp; My problem is when I get a watchdog reset in the main application (I'm causing them on purpose for testing) the configuration of the external SDRAM runs in the bootloader and one of two things happens:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Everything works exactly the same as on a power up (50% of the time)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) As soon as I try and access the memory I get a fault that kills my debugger. (The other 50% of the time)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea what is going on?&amp;nbsp; Note I have tried this with SCB bit 1 on/off no difference.&amp;nbsp; I've also tried not re-configuring the EMC when it's a watchdog reset but this seems to fail every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to safely and surely reset this SDRAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:39:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SDRAM-after-a-watchdog-reset/m-p/519498#M3190</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:39:40Z</dc:date>
    </item>
  </channel>
</rss>

