<?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: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569207#M17899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blebo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me providing additional details like how to run and software tools you used. It would be a great help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 19:45:36 GMT</pubDate>
    <dc:creator>gvk51</dc:creator>
    <dc:date>2017-01-24T19:45:36Z</dc:date>
    <item>
      <title>03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569196#M17888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across the error 03: Failed on Chip Setup: Ep(04). Cannot halt processor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="prog_err.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2152i8255EA1A2BA07995/image-size/large?v=v2&amp;amp;px=999" role="button" title="prog_err.png" alt="prog_err.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before to this I have programmed the OTP memory bank 3, word 0 - Customer control data, Boot source selection as follows.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;status = Chip_OTP_ProgBootSrc(CHIP_OTP_BOOTSRC_UART0);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After this I was able to use the RDK fine, able to program and debug fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have modified the USB HID code clock configuration and after this I am seeing the above error&lt;/STRONG&gt;. I have tried all the possible ways mentioned in LPCware and no luck :smileyconfused:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried entering ISP mode by pulling P2_7 low using the user switch &lt;STRONG&gt;sw2&lt;/STRONG&gt;, I see D2 &amp;amp; D3 (yellow, blue) LEDs glowing, is this the right indication for ISP mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;below is the error log&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="programming_error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2216i5B5EB32DBDB007C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="programming_error.png" alt="programming_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ni: LPCXpresso RedlinkMulti Driver v8.1 (Mar&amp;nbsp; 4 2016 17:16:40 - crt_emu_cm_redlink build 659)&lt;/P&gt;&lt;P&gt;Pc: (&amp;nbsp; 0) Reading remote configuration&lt;/P&gt;&lt;P&gt;Pc: (&amp;nbsp; 5) Remote configuration complete&lt;/P&gt;&lt;P&gt;Wc: ============= SCRIPT: LPC18LPC43InternalFLASHBootResetscript.scp =============&lt;/P&gt;&lt;P&gt;Wc: Boot from FLASH image pc/sp reset script&lt;/P&gt;&lt;P&gt;Wc: PC = 0x00000001&lt;/P&gt;&lt;P&gt;Wc: SP = 0x00000000&lt;/P&gt;&lt;P&gt;Wc: XPSR = 0x00000000&lt;/P&gt;&lt;P&gt;Wc: VTOR = 0x00000000&lt;/P&gt;&lt;P&gt;Wc: Wire Ack Fault - target connected?&lt;/P&gt;&lt;P&gt;Wc: Wire Ack Fault - target connected?&lt;/P&gt;&lt;P&gt;Wc: ============= END SCRIPT =====================================================&lt;/P&gt;&lt;P&gt;Xe:&lt;/P&gt;&lt;P&gt;Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.147 (NXP Semiconductors)&lt;/P&gt;&lt;P&gt;Nc: Serial Number:&amp;nbsp; CWGUGTMV&lt;/P&gt;&lt;P&gt;Nc: VID:PID:&amp;nbsp; 1FC9:0090&lt;/P&gt;&lt;P&gt;Nc: USB Path: /dev/hidraw2&lt;/P&gt;&lt;P&gt;Pc: ( 30) Emulator Connected&lt;/P&gt;&lt;P&gt;Xl:&lt;/P&gt;&lt;P&gt;Xc:&lt;/P&gt;&lt;P&gt;Pc: ( 40) Debug Halt&lt;/P&gt;&lt;P&gt;Pc: ( 50) CPU ID&lt;/P&gt;&lt;P&gt;Nc: Emu(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC230. Info: &amp;lt;None&amp;gt;&lt;/P&gt;&lt;P&gt;Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;/P&gt;&lt;P&gt;Nc: inspected v.2 On-chip Flash Memory /usr/local/lpcxpresso_8.1.2_603/lpcxpresso/bin/Flash/LPC18x7_43x7_2x512_BootA.cfx&lt;/P&gt;&lt;P&gt;Nc: image 'LPC18x7/LPC43x7 2x512KB (Boot Bank A) Feb 16 2016 09:18:47'&lt;/P&gt;&lt;P&gt;Nc: NXP: LPC1837&amp;nbsp; Part ID: 0x00000000&lt;/P&gt;&lt;P&gt;Pc: ( 65) Chip Setup Complete&lt;/P&gt;&lt;P&gt;Nt: Connected: was_reset=true. was_stopped=false&lt;/P&gt;&lt;P&gt;Cr:v LPCXpresso Free License - Download limit is 256K&lt;/P&gt;&lt;P&gt;Pc: ( 70) License Check Complete&lt;/P&gt;&lt;P&gt;Nt: Loading 'usbd_rom_hid_mouse_report_id_system_consumer.axf' ELF 0x1A000000 len 0x4FEC&lt;/P&gt;&lt;P&gt;Nc: AFTER driver startup timeout&lt;/P&gt;&lt;P&gt;Wc: Driver Register State&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10085000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R4:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R5:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R6:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R7:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R8:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R9:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R10:&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R11:&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; SP:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10080FE0&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FFFFFFF9 (exception from main thread)&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FEFEFEFE&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; xPSR:&amp;nbsp;&amp;nbsp; 00000003&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; MSP:&amp;nbsp;&amp;nbsp;&amp;nbsp; 10080FE0&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; PSP:&amp;nbsp;&amp;nbsp;&amp;nbsp; 10081000&lt;/P&gt;&lt;P&gt;Wc:&amp;nbsp; CFBP:&amp;nbsp;&amp;nbsp; 00000001&lt;/P&gt;&lt;P&gt;Wc:Exception information:&lt;/P&gt;&lt;P&gt;Wc:10080FFC:&amp;nbsp; xPSR:&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:10080FF8:&amp;nbsp; VECTPC: 10000034&lt;/P&gt;&lt;P&gt;Wc:10080FF4:&amp;nbsp; LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000035&lt;/P&gt;&lt;P&gt;Wc:10080FF0:&amp;nbsp; R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:10080FEC:&amp;nbsp; R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:10080FE8:&amp;nbsp; R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:10080FE4:&amp;nbsp; R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:10080FE0:&amp;nbsp; R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10085000&lt;/P&gt;&lt;P&gt;Wc:E000ED04:&amp;nbsp; ICSR:&amp;nbsp;&amp;nbsp; 00000803 (VECTPEND=0, RETTOBASE, VECTACTIVE=3)&lt;/P&gt;&lt;P&gt;Wc:E000ED38:&amp;nbsp; BFAR:&amp;nbsp;&amp;nbsp; E000EDF8&lt;/P&gt;&lt;P&gt;Wc:E000ED28:&amp;nbsp; CFSR:&amp;nbsp;&amp;nbsp; 00020001&lt;/P&gt;&lt;P&gt;Wc:E000ED2C:&amp;nbsp; HFSR:&amp;nbsp;&amp;nbsp; 40000000 ()&lt;/P&gt;&lt;P&gt;Wc:E000ED30:&amp;nbsp; DFSR:&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:E000ED3C:&amp;nbsp; AFSR:&amp;nbsp;&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;Wc:E000ED24:&amp;nbsp; SHCSR:&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;/P&gt;&lt;P&gt;Pb: (100) Writing Flash ended with an error.&lt;/P&gt;&lt;P&gt;Ed:05: File 'usbd_rom_hid_mouse_report_id_system_consumer.axf' load failure: Ef(34): Timed-out initializing flash.&lt;/P&gt;&lt;P&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am completely stuck, please give your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569196#M17888</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-04T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569197#M17889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate of other post &lt;A href="https://community.nxp.com/thread/431865"&gt;Failed on chip setup: Ep(04). Cannot halt processor.&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569197#M17889</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-08-09T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569198#M17890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, I have tried this already, did not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: RDK I have, is programmed to boot from SPIF by programming the OTP region.&lt;/P&gt;&lt;P&gt;When I enter into ISP mode two LEDs on the RDK are glowing is this the right behavior??&lt;BR /&gt;Please give me some more inputs to debug this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569198#M17890</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-09T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569199#M17891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs for my situation, I am completely stuck please give your inputs to debug this issue. I am in dire need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569199#M17891</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-11T14:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569200#M17892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For reference - I have locked your other almost identical thread on this issue : &lt;A href="https://community.nxp.com/thread/431865"&gt;Failed on chip setup: Ep(04). Cannot halt processor.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what board your LPC1837 RDK is, thus I can't make any comment on LEDs. It would also be useful to perhaps know exactly which LPCXpresso IDE release you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when using an LPC18 part with internal flash, external SPIFI flash will only be executed at reset if the internal flash is empty unless you pull the ISP at boot time. But I am slightly confused by what you are trying to do here, because you talk about setting OTP bits to both boot from UART and from SPIFI. And the flash driver you are launching is the one for the internal flash, not external SPIFI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more information on SPIFI flash programming at &lt;A href="https://community.nxp.com/message/630717"&gt;LPC18xx / LPC43xx SPIFI Flash Drivers&lt;/A&gt;. If you are trying to use both the internal and external flash, then you should also see &lt;A href="https://community.nxp.com/message/630582"&gt;Configuring projects to span multiple flash devices&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is being triggered by clock setup, then the possible routes to try to recover are:&lt;/P&gt;&lt;P&gt;- Try manually booting the part into ISP mode before connecting. Make sure you hold the ISP pin low through the whole reset sequence, as described in&amp;nbsp; &lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Use the ISP reset functionality from the debug tools themselves (if your board will support this) : &lt;A href="https://community.nxp.com/message/630653"&gt;ISP Reset over debug&lt;/A&gt; &lt;/P&gt;&lt;P&gt;- Try changing the "vector catch" setting in the launch configuration, which changes the way that the debugger handles pulling reset &lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If none of those help, then there is little more I can think of for you to try. If you were able to debug successfully previously, then I suspect that in writing to the OTP bits, you have (perhaps) accidentally locked the part for debugging - for instance by setting OTP memory bank 3, word 0 bit 31 when writing to the BOOT_SRC bits within the same word. In which case you have no choice but to switch out your chip/board. Typically writing to the BOOT_SRC bits is something you would only do towards the end of your development cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 08:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569200#M17892</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-08-12T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569201#M17893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using LPCXpresso v8.1.2 [Build 603] [2016-03-07] on Ubuntu &amp;amp; tried with latest version 8.1.4 [Build 606] [2016-03-14] on Win10&lt;/P&gt;&lt;P&gt;1) The part I am using is 1837, with internal flash. I am working to &lt;STRONG&gt;boot from internal flash&lt;/STRONG&gt; only and &lt;STRONG&gt;not interested in SPIFI boot&lt;/STRONG&gt; (external SPI flash boot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The board I am using is the one @ link &lt;A href="https://www.lpcware.com/content/project/Dual-USB-Host-Device-solution" title="https://www.lpcware.com/content/project/Dual-USB-Host-Device-solution"&gt;Dual USB solutions for the LPC1837 LPC1830 LPC1800 and LPC4337 LPC4330 LPC4300 NXP microcontrollers. On chip Hi Speed HS…&lt;/A&gt;&amp;nbsp; , used for demonstrating the Dual device functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I have &lt;STRONG&gt;accidentally&lt;/STRONG&gt; &lt;STRONG&gt;programmed&lt;/STRONG&gt; the OTP region by running the demo example,&lt;STRONG&gt; misc_otp_funcs&lt;/STRONG&gt; with the below line un-commented&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; status = Chip_OTP_ProgBootSrc(CHIP_OTP_BOOTSRC_SPIFI);&lt;/EM&gt;&lt;BR /&gt;I understand by programming the bit 31 to '1' of &lt;STRONG&gt;OTP memory bank 3, word 0&lt;/STRONG&gt; will disable the access to JTAG. The above piece of code is not setting the 31st bit, correct me if I am wrong ? &lt;STRONG&gt;Please confirm me if the above line of code disabled access to JTAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I have&lt;STRONG&gt; lost access to board&lt;/STRONG&gt; when I mucked with &lt;STRONG&gt;USB clocks&lt;/STRONG&gt;, I tried &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-content-finding="Community" data-objectid="389112" data-objecttype="1" href="https://community.nxp.com/thread/389112" style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #017bba;"&gt;Regaining debug access to target MCU&lt;/A&gt; by pulling ISP pin P2_7 to low by pressing user switch sw2 on the board and tried to re-program with working firmware like a &lt;STRONG&gt;freertos_blinky&lt;/STRONG&gt; example, it shows the following output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I have tried changing "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;the "vector catch" to "true" by editing the current launch configuration" &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Nc: Flash Driver V.2 startup failed - rc&lt;STRONG&gt; Ef(34): Timed-out initializing flash.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Pb: (100) Writing Flash ended with an error.&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Ed:05: File 'usbd_rom_hid_mouse_report_id_system_consumer.axf' load failure: Ef(34): Timed-out initializing flash.&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Please let me know if I have failed to explain my scenario. Waiting for the response&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 11:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569201#M17893</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-12T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569202#M17894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all means, and the error I am seeing is different from the reference links you are providing, please help me get access to the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me providing in-line answers for my previous question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 12:13:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569202#M17894</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-23T12:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569203#M17895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - but&amp;nbsp;if you have tried everything we have already suggested, then I am afraid that there is nothing further I can suggest to recover your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569203#M17895</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-08-24T07:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569204#M17896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid to do any other programming activity on the spare board I have apart from the one got bricked. &lt;BR /&gt;Is it possible to debug the issue from your end, if I ship you the board, I would like to find the root cause for this behavior. I do not want to lose any more boards during the development activity.&lt;BR /&gt;&lt;BR /&gt;Please do needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:32:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569204#M17896</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-08-24T07:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569205#M17897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear LPCXpresso Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me replying to my previous question and means to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamshi G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569205#M17897</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2016-09-21T12:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569206#M17898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I got same issues, and nothing helped me to unbrick the board,&amp;nbsp;except programming with :&amp;nbsp;RunBootRomReset.scp at the Connect Script setting within flash programming. Or if you are using command line interface you could add: -ConnectScript=ISPResetConnect.scp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Nov 2016 18:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569206#M17898</guid>
      <dc:creator>mehoblebo</dc:creator>
      <dc:date>2016-11-20T18:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: 03: Failed on Chip Setup: Ep(04). Cannot halt processor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569207#M17899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blebo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me providing additional details like how to run and software tools you used. It would be a great help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/03-Failed-on-Chip-Setup-Ep-04-Cannot-halt-processor/m-p/569207#M17899</guid>
      <dc:creator>gvk51</dc:creator>
      <dc:date>2017-01-24T19:45:36Z</dc:date>
    </item>
  </channel>
</rss>

