<?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 Re: Bricked LPC845 ? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635448#M4980</link>
    <description>&lt;P&gt;OK, thank you, I am trying this. Unfortunately, the default FAIM programming is not the correct one for allowing external serial access - we were planning on setting that up at a later stage, but I suppose there is no time like the present! If this resolves the issue, it still leaves the question of exactly what in my code caused it to happen.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 13:04:17 GMT</pubDate>
    <dc:creator>malcolmmacdonald</dc:creator>
    <dc:date>2023-04-18T13:04:17Z</dc:date>
    <item>
      <title>Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1632556#M4972</link>
      <description>&lt;P&gt;#MCUXpresso, LPC845, PEMicro Multilink Universal&lt;/P&gt;&lt;P&gt;I have been using a board for a couple of weeks now (our design) with no issues as I get all the hardware interfaces and state changes worked out before applying them to the application code. The last one is a loop going into powerdown mode with a wake-up using WKT, making an ADC measurement, printing it, rinse and repeat (file attached). Nothing too extreme, I thought. Unfortunately, when I ran it, the debug session crashed and, when I tried to restart it, the PEMicro Connection Assistant popped up saying there was an error when trying to make the connection. After this, I tried a previous program which had worked correctly and got the same result. Moving to different HW with the old program with the same PEMicro works. Trying the new program crashes the debug session and "bricks" the board. Trying a second known-working PEMicro also does not allow the connection. So, I now appear to have two boards to which I cannot connect, but no idea as to what I can possibly have done to affect them like this. Have I managed to blow something up? But how? The only line of code which I haven't used previously is 'POWER_EnterPowerDown(0U);'&lt;/P&gt;&lt;P&gt;Has anyone else seen something similar?&lt;/P&gt;&lt;P&gt;(BTW, both MCUXpresso and the PEMicro have the latest SW/FW versions)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 20:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1632556#M4972</guid>
      <dc:creator>malcolmmacdonald</dc:creator>
      <dc:date>2023-04-12T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1632846#M4973</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/20549"&gt;@malcolmmacdonald&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The mcu doesn't support debug in power down mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1632846#M4973</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-04-13T06:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1633149#M4974</link>
      <description>&lt;P&gt;Thanks for getting back to me, Alice, but I don't understand your response. The SDK power_mode_switch_lpc example on the breakout board (OK, it's using the onboard debugger rather than the PEMicro) runs with no problems. I get that you can't use the debugger when it is in powerdown. However, that doesn't explain why I can't access the chip once it has executed this code. The problem stays with the board, so either something has been destroyed or something has been written to non-volatile memory.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 12:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1633149#M4974</guid>
      <dc:creator>malcolmmacdonald</dc:creator>
      <dc:date>2023-04-13T12:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1633709#M4977</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/20549"&gt;@malcolmmacdonald&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;However, that doesn't explain why I can't access the chip once it has executed&lt;STRONG&gt; this code&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;-&amp;gt;&amp;gt; Which code?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;power_mode_switch_lpc&amp;nbsp;? Or your own project?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can enter ISP mode, use flash magic erase full chip, then debug again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 07:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1633709#M4977</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-04-14T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1634850#M4978</link>
      <description>&lt;P&gt;As far as I can see (I have never used Flash Magic before) one can erase and reprogram all the program flash. How is that going to allow the Serial Wire Debug to work again?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 19:18:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1634850#M4978</guid>
      <dc:creator>malcolmmacdonald</dc:creator>
      <dc:date>2023-04-17T19:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635322#M4979</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/20549"&gt;@malcolmmacdonald&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to download an image into the flash on the target that will then prevent any further debug access or connections. The first thing to try to recover debug access is to boot into the ISP bootloader. This is normally controlled by the state of ISP pin(s) as the MCU comes out of reset.&lt;/P&gt;
&lt;P&gt;About detail please refer to :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923" target="_blank"&gt;https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 09:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635322#M4979</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-04-18T09:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635448#M4980</link>
      <description>&lt;P&gt;OK, thank you, I am trying this. Unfortunately, the default FAIM programming is not the correct one for allowing external serial access - we were planning on setting that up at a later stage, but I suppose there is no time like the present! If this resolves the issue, it still leaves the question of exactly what in my code caused it to happen.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635448#M4980</guid>
      <dc:creator>malcolmmacdonald</dc:creator>
      <dc:date>2023-04-18T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bricked LPC845 ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635634#M4981</link>
      <description>That works, thank you. Now to find out what is different between my code using power down mode and the SDK example...</description>
      <pubDate>Tue, 18 Apr 2023 20:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Bricked-LPC845/m-p/1635634#M4981</guid>
      <dc:creator>malcolmmacdonald</dc:creator>
      <dc:date>2023-04-18T20:08:37Z</dc:date>
    </item>
  </channel>
</rss>

