<?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>LPCXpresso IDE FAQsのトピックHow do I debug from reset?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-do-I-debug-from-reset/m-p/470291#M55</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Case 1. I have ResetISR in my application&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by changing the startup breakpoint. By default it is the first instruction in main().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Debug Configuration for your application (Run-&amp;gt;Debug Configurations ...).&lt;/LI&gt;&lt;LI&gt;Switch to the "Debugger tab".&lt;/LI&gt;&lt;LI&gt;In the "Stop on startup at:" field, enter &lt;STRONG&gt;ResetISR&lt;/STRONG&gt; (or the name of the function called by the Reset vector if different)&lt;/LI&gt;&lt;LI&gt;Click 'Debug'.&lt;/LI&gt;&lt;LI&gt;You will now be stopped in the first instruction of the ResetISR function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Case 2. ResetISR is already in flash&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you need to find the address of the reset vector. To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load your application and stop at main.&lt;/LI&gt;&lt;LI&gt;Now open the Peripherals view, and then click on "MFlashxxx".&lt;UL&gt;&lt;LI&gt;This will open a Memory window at address 0x0.&lt;/LI&gt;&lt;LI&gt;Address 0x4 contains the address of the ResetISR function. Make a note of the address.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Stop debugging.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to set the startup breakpoint at this address:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Debug Configuration for your application (Run-&amp;gt;Debug Configurations ...).&lt;/LI&gt;&lt;LI&gt;Switch to the "Debugger tab".&lt;/LI&gt;&lt;LI&gt;In the "Stop on startup at:" field, enter the address you made a note of, prefixed by '*'. So, if the address was 0x3071, then enter *0x3071.&lt;/LI&gt;&lt;LI&gt;Click 'Debug'.&lt;/LI&gt;&lt;LI&gt;You will now be stopped in the first instruction of the ResetISR function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information please see the FAQ &lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="388988" data-objecttype="1" href="https://community.nxp.com/thread/388988"&gt;Changing the Initial Breakpoint on startup&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 19:11:59 GMT</pubDate>
    <dc:creator>lpcware-support</dc:creator>
    <dc:date>2016-03-31T19:11:59Z</dc:date>
    <item>
      <title>How do I debug from reset?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-do-I-debug-from-reset/m-p/470291#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Case 1. I have ResetISR in my application&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by changing the startup breakpoint. By default it is the first instruction in main().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Debug Configuration for your application (Run-&amp;gt;Debug Configurations ...).&lt;/LI&gt;&lt;LI&gt;Switch to the "Debugger tab".&lt;/LI&gt;&lt;LI&gt;In the "Stop on startup at:" field, enter &lt;STRONG&gt;ResetISR&lt;/STRONG&gt; (or the name of the function called by the Reset vector if different)&lt;/LI&gt;&lt;LI&gt;Click 'Debug'.&lt;/LI&gt;&lt;LI&gt;You will now be stopped in the first instruction of the ResetISR function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Case 2. ResetISR is already in flash&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you need to find the address of the reset vector. To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load your application and stop at main.&lt;/LI&gt;&lt;LI&gt;Now open the Peripherals view, and then click on "MFlashxxx".&lt;UL&gt;&lt;LI&gt;This will open a Memory window at address 0x0.&lt;/LI&gt;&lt;LI&gt;Address 0x4 contains the address of the ResetISR function. Make a note of the address.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Stop debugging.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to set the startup breakpoint at this address:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the Debug Configuration for your application (Run-&amp;gt;Debug Configurations ...).&lt;/LI&gt;&lt;LI&gt;Switch to the "Debugger tab".&lt;/LI&gt;&lt;LI&gt;In the "Stop on startup at:" field, enter the address you made a note of, prefixed by '*'. So, if the address was 0x3071, then enter *0x3071.&lt;/LI&gt;&lt;LI&gt;Click 'Debug'.&lt;/LI&gt;&lt;LI&gt;You will now be stopped in the first instruction of the ResetISR function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information please see the FAQ &lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="388988" data-objecttype="1" href="https://community.nxp.com/thread/388988"&gt;Changing the Initial Breakpoint on startup&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 19:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-do-I-debug-from-reset/m-p/470291#M55</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-03-31T19:11:59Z</dc:date>
    </item>
  </channel>
</rss>

