<?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のトピックRe: LPC4337 M4 debug problem if M0 program is before M4</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576118#M22611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you download the bootloader along with the application code? If so, you could modify the LPC18LPC43InternalFlashBootResetScript.scp to provide the bootloader entry as the initial PC, then deal with stopping execution in the M4 code. Doing this might make sense if the application relies on something in your bootloader setup, but it's somewhat messy to do. If you don't download the bootloader with the application (the more common case), then modify the script PC setting to use the M4 entry, not the M0 entry as it appears now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 13:38:39 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2016-06-27T13:38:39Z</dc:date>
    <item>
      <title>LPC4337 M4 debug problem if M0 program is before M4</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576117#M22610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problem with debugging M4 program if M0 program is before M4. It's look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121874iDB35DBA9DFC2B39A/image-size/large?v=v2&amp;amp;px=999" title="154365_154365.png" alt="154365_154365.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60610iE8291929F9A93C50/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootloader run M4 program from Flash B then M4 run M0 Program from Flash A.&lt;/P&gt;&lt;P&gt;Debugging M4 program in this configuration is impossible. It's look like debugger try run Cortex M0 as M4 program.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debug Messages Logs:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LPCXpresso RedlinkMulti Driver v8.1 (Mar 11 2016 13:34:34 - crt_emu_cm_redlink build 672)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Found chip XML file in D:/Projekty/ISM/iSMASedona/Firmware_new/Sedona/Release/LPC4337.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.147 (NXP Semiconductors)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Serial Number:&amp;nbsp; CWG2CUCV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;VID:PID:&amp;nbsp; 1FC9:0090&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;2f6b45be&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Emu(0): Connected&amp;amp;Reset. DpID: 4BA00477. CpuID: 410FC240. Info: &amp;lt;None&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Debug protocol: JTAG. RTCK: Disabled. Vector catch: Disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.1.4_606\lpcxpresso\bin\Flash\LPC18x7_43x7_2x512_BootA.cfx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;image 'LPC18x7/LPC43x7 2x512KB (Boot Bank A) Feb 16 2016 09:18:47'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;NXP: LPC4337&amp;nbsp; Part ID: 0x00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Connected: was_reset=true. was_stopped=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LPCXpresso Free License - Download limit is 256K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Writing 9292 bytes to address 0x1A010000 in Flash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Erased/Wrote page&amp;nbsp; 8-8 with 9292 bytes in 230msec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Flash Write Done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Writing 220916 bytes to address 0x1B000000 in Flash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Erased/Wrote page&amp;nbsp; 15-25 with 220916 bytes in 2446msec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Flash Write Done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Flash Program Summary: 230208 bytes in 2.68 seconds (84.01 KB/sec)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;============= SCRIPT: LPC18LPC43InternalFLASHBootResetscript.scp =============&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Boot from FLASH image pc/sp reset script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #e23d39;"&gt;PC = 0x1A011641&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;SP = 0x20010000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;XPSR = 0x01000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;VTOR = 0x00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;============= END SCRIPT =====================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If M0 program is after M4 program then everything works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How to debug M4 program in this configuration as above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 11:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576117#M22610</guid>
      <dc:creator>klatecki</dc:creator>
      <dc:date>2016-06-27T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 M4 debug problem if M0 program is before M4</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576118#M22611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you download the bootloader along with the application code? If so, you could modify the LPC18LPC43InternalFlashBootResetScript.scp to provide the bootloader entry as the initial PC, then deal with stopping execution in the M4 code. Doing this might make sense if the application relies on something in your bootloader setup, but it's somewhat messy to do. If you don't download the bootloader with the application (the more common case), then modify the script PC setting to use the M4 entry, not the M0 entry as it appears now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576118#M22611</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-06-27T13:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 M4 debug problem if M0 program is before M4</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576119#M22612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont' download the bootloader with the application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added this line to the script:&lt;/P&gt;&lt;P&gt;101 a% = peek32 this 0x1b000004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and its works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 14:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC4337-M4-debug-problem-if-M0-program-is-before-M4/m-p/576119#M22612</guid>
      <dc:creator>klatecki</dc:creator>
      <dc:date>2016-06-27T14:12:58Z</dc:date>
    </item>
  </channel>
</rss>

