<?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のトピックRe: LPC1519 Target error from Commit Flash write</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736070#M29724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing to note is that we don't strictly support LPC1500 debug with the original LPC-Link(1) - as detailed in the LPCXpresso IDE FAQ at&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389162"&gt;Which debug probes are supported by LPCXpresso IDE with which MCUs?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Generally we would recommend using LPC-Link2 instead. These probes are available from many NXP distributors at low cost (around $20 typically) :&amp;nbsp;&lt;A class="link-titled" href="http://nxp.com/lpc-link2" title="http://nxp.com/lpc-link2"&gt;LPC-Link2|NXP&lt;/A&gt;&amp;nbsp;. You can also obtain one by purchasing a standard LPCXpresso1549 board (&lt;A class="link-titled" href="https://www.nxp.com/lpcxpresso-boards" title="https://www.nxp.com/lpcxpresso-boards"&gt;LPCXpresso Boards|NXP&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That aside, I would suggest that you double check your board design against the information given in the FAQ at:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/388998"&gt;Design Considerations for Debug&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then potentially try booting your board into ISP mode before starting a debug session:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that starting a debug session requires additional interaction with the target over just programming flash. And it appears to be that additional interaction to gain debug control that is failing in your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso&amp;nbsp;IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Feb 2018 11:24:27 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2018-02-11T11:24:27Z</dc:date>
    <item>
      <title>LPC1519 Target error from Commit Flash write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736069#M29723</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;I am having a problems debugging LPC1519. I keep getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;Target error from Commit Flash write: Ep(08).&lt;/P&gt;&lt;P&gt;This is the full log of debugging session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPCXpresso RedlinkMulti Driver v8.2 (Sep 5 2016 10:12:38 - crt_emu_cm_redlink build 725)&lt;BR /&gt;Found chip XML file in C:/ZDATA/00 - Projects/02 - LPCxx/LPC1519/periph_blinky/Debug/LPC1519.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;============= SCRIPT: LPC15RunBootRomConnect.scp =============&lt;BR /&gt;DpID = 2BA01477&lt;BR /&gt;APID = 0x24770011&lt;BR /&gt;Halt on reset vector catch&lt;BR /&gt;Halt on watchpoint write of ROMWSCTRL register&lt;BR /&gt;============= END SCRIPT =====================================&lt;BR /&gt;Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)&lt;BR /&gt;Serial Number: WIN64HS12&lt;BR /&gt;VID:PID: 1FC9:0009&lt;BR /&gt;USB Path:&lt;BR /&gt;Vector catch on SYSRESETREQ signal&lt;BR /&gt;Emu(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC230. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;BR /&gt;inspected v.2 On-chip Flash Memory C:\ProgramFiles_xZ\nxp\LPCXpresso_8.2.2_650\lpcxpresso\bin\Flash\LPC15xx_256K.cfx&lt;BR /&gt;image 'LPC15 (256K Flash) Jun 21 2016 11:53:30'&lt;BR /&gt;NXP: LPC1519 Part ID: 0x00000000&lt;BR /&gt;Connected: was_reset=true. was_stopped=true&lt;BR /&gt;LPCXpresso Free License - Download limit is 256K&lt;BR /&gt;Opening flash driver C:\ProgramFiles_xZ\nxp\LPCXpresso_8.2.2_650\lpcxpresso\bin\Flash\LPC15xx_256K.cfx&lt;BR /&gt;Writing 6680 bytes to address 0x00000000 in Flash&lt;BR /&gt;Erased/Wrote page 0-1 with 6680 bytes in 323msec&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 6680 bytes in 0.32 seconds (20.20 KB/sec)&lt;BR /&gt;============= SCRIPT: LPC15RunBootRomReset.scp =============&lt;BR /&gt;Halt on reset vector catch&lt;BR /&gt;Halt on watchpoint write of ROMWSCTRL register&lt;BR /&gt;============= END SCRIPT ===================================&lt;BR /&gt;Target error from Commit Flash write: Ep(08). Cannot access core regs when target running.&lt;BR /&gt;(crt_emu_cm_redlink) terminating on communication loss: Pipe has been closed by GDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I only program the flash, then it works. This is the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ni: LPCXpresso RedlinkMulti Driver v8.2 (Sep 5 2016 10:12:38 - crt_emu_cm_redlink.exe build 725)&lt;BR /&gt;Pc: ( 0) Reading remote configuration&lt;BR /&gt;Nc: Found chip XML file in C:/ZDATA/00 - Projects/02 - LPCxx/LPC1519/periph_blinky/Debug/LPC1519.xml&lt;BR /&gt;Pc: ( 5) Remote configuration complete&lt;BR /&gt;Wc: ============= SCRIPT: LPC15RunBootRomConnect.scp =============&lt;BR /&gt;Wc: DpID = 2BA01477&lt;BR /&gt;Wc: APID = 0x24770011&lt;BR /&gt;Wc: Halt on reset vector catch&lt;BR /&gt;Wc: Halt on watchpoint write of ROMWSCTRL register&lt;BR /&gt;Wc: ============= END SCRIPT =====================================&lt;BR /&gt;Xe:&lt;BR /&gt;Nc: Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)&lt;BR /&gt;Nc: Serial Number: WIN64HS12&lt;BR /&gt;Nc: VID:PID: 1FC9:0009&lt;BR /&gt;Nc: USB Path: &lt;BR /&gt;Pc: ( 30) Emulator Connected&lt;BR /&gt;Xc:&lt;BR /&gt;Pc: ( 40) Debug Halt&lt;BR /&gt;Pc: ( 50) CPU ID&lt;BR /&gt;Nc: Emu(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC230. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Nc: inspected v.2 On-chip Flash Memory C:\ProgramFiles_xZ\nxp\LPCXpresso_8.2.2_650\lpcxpresso\bin\Flash\LPC15xx_256K.cfx&lt;BR /&gt;Nc: image 'LPC15 (256K Flash) Jun 21 2016 11:53:30'&lt;BR /&gt;Nc: NXP: LPC1519 Part ID: 0x00000000&lt;BR /&gt;Pc: ( 65) Chip Setup Complete&lt;BR /&gt;Nt: Connected: was_reset=true. was_stopped=false&lt;BR /&gt;Cr:v LPCXpresso Free License - Download limit is 256K&lt;BR /&gt;Pc: ( 70) License Check Complete&lt;BR /&gt;Nt: Loading 'periph_blinky.axf' ELF 0x00000000 len 0x1A18&lt;BR /&gt;Nc: Opening flash driver C:\ProgramFiles_xZ\nxp\LPCXpresso_8.2.2_650\lpcxpresso\bin\Flash\LPC15xx_256K.cfx&lt;BR /&gt;Nt: Writing 6680 bytes to address 0x00000000 in Flash&lt;BR /&gt;Pb: 1 of 1 ( 0) Writing pages 0-1 at 0x00000000 with 6680 bytes&lt;BR /&gt;Ps: ( 0) at 00000000: 0 bytes - 0/6680&lt;BR /&gt;Ps: ( 61) at 00000000: 4096 bytes - 4096/6680&lt;BR /&gt;Ps: (100) at 00001000: 4096 bytes - 8192/6680&lt;BR /&gt;Nt: Erased/Wrote page 0-1 with 6680 bytes in 285msec&lt;BR /&gt;Pb: (100) Finished writing Flash successfully.&lt;BR /&gt;Nt: Flash Write Done&lt;BR /&gt;Nt: Loaded 0x1A18 bytes in 446ms (about 14kB/s)&lt;BR /&gt;Nt: Reset target (core)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application works until the power is gone. Then nothing happens until I program the flash again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;LPCXpresso v8.2.2 [Build 650] [2016-09-09] and LPC-Link Probe v1.3 to custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or input is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zoran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 11:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736069#M29723</guid>
      <dc:creator>zoranradmilovic</dc:creator>
      <dc:date>2018-02-10T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1519 Target error from Commit Flash write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736070#M29724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing to note is that we don't strictly support LPC1500 debug with the original LPC-Link(1) - as detailed in the LPCXpresso IDE FAQ at&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389162"&gt;Which debug probes are supported by LPCXpresso IDE with which MCUs?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Generally we would recommend using LPC-Link2 instead. These probes are available from many NXP distributors at low cost (around $20 typically) :&amp;nbsp;&lt;A class="link-titled" href="http://nxp.com/lpc-link2" title="http://nxp.com/lpc-link2"&gt;LPC-Link2|NXP&lt;/A&gt;&amp;nbsp;. You can also obtain one by purchasing a standard LPCXpresso1549 board (&lt;A class="link-titled" href="https://www.nxp.com/lpcxpresso-boards" title="https://www.nxp.com/lpcxpresso-boards"&gt;LPCXpresso Boards|NXP&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That aside, I would suggest that you double check your board design against the information given in the FAQ at:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/388998"&gt;Design Considerations for Debug&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then potentially try booting your board into ISP mode before starting a debug session:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that starting a debug session requires additional interaction with the target over just programming flash. And it appears to be that additional interaction to gain debug control that is failing in your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso&amp;nbsp;IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 11:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736070#M29724</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-02-11T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1519 Target error from Commit Flash write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736071#M29725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;That aside, I would suggest that you double check your board design against the information given in the FAQ at:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-content-finding="Community" data-objectid="388998" data-objecttype="1" href="https://community.nxp.com/thread/388998"&gt;Design Considerations for Debug&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That is the WRONG information, See Fig. 105 of the LPC15xx manual for the correct information. DO NOT put a pulldown resistor on SWCLK because it already has a pullUP resistor inside the IC. It will just bias the input into an indeterminate state,&amp;nbsp; remove any noise immunity that it has and probably make it draw current from the supply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needless to say, I suspect that it is is a hardware problem as the SWD interface is particularly finicky. See my post&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/462362"&gt;https://community.nxp.com/thread/462362&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's now 5 months since I did that work and the 74HC1G17 on the SWCLK input has made a huge difference in programming reliability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also - did you program any changes to the clock? TO change it to the crystal oscillator or to connect it to the PLL?&lt;/P&gt;&lt;P&gt;If the changeover isn't successful (perhaps you forgot to power up the new oscillator in PDRUNCFG or enable it in SYSAHBCLKCTRL) it will crash immediately after programming, like yours seems to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:23:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1519-Target-error-from-Commit-Flash-write/m-p/736071#M29725</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2018-03-12T13:23:25Z</dc:date>
    </item>
  </channel>
</rss>

