<?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: &amp;quot;Ef(34): Timed-out initializing flash&amp;quot; when trying to programm flash memory in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/845935#M33686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to answer the question myself. Thank you, whoever got the idea for this switch, for the&amp;nbsp; "--rst" option.&lt;/P&gt;&lt;P&gt;Using the command line flasher (here the --rst option does the job) I erased the flash without running the user code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:\nxp\MCUXpressoIDE_10.0.2_411\ide\bin&amp;gt;crt_emu_cm_redlink.exe --flash-erase --rst -pLPC4078&lt;/STRONG&gt;&lt;BR /&gt;Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redlink.exe build 272)&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)&lt;BR /&gt;Nc: Serial Number: I3FUFTIW&lt;BR /&gt;Nc: VID:PID: 1FC9:0090&lt;BR /&gt;Nc: USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;318c6fd0&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Pc: ( 30) Emulator Connected&lt;BR /&gt;Pc: ( 40) Debug Halt&lt;BR /&gt;Pc: ( 50) CPU ID&lt;BR /&gt;Nc: number of h/w breakpoints = 6&lt;BR /&gt;Nc: number of flash patches = 2&lt;BR /&gt;Nc: number of h/w watchpoints = 4&lt;BR /&gt;Nc: Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC240. 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 LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Image 'LPC177x_8x_407x_8x (512K) Jun 22 2017 15:17:57'&lt;BR /&gt;Nc: NXP: LPC4078&lt;BR /&gt;Cr:v MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Nt: Reset target (system)&lt;BR /&gt;Nc: Opening flash driver LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Sending SYSRESETREQ to run flash driver&lt;BR /&gt;Nt: Erase flash at 0x0&lt;BR /&gt;Nc: Closing flash driver LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nt: Erase completed (in 106ms)&lt;BR /&gt;Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the board is up and running again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 11:23:39 GMT</pubDate>
    <dc:creator>arturmiller</dc:creator>
    <dc:date>2018-10-10T11:23:39Z</dc:date>
    <item>
      <title>"Ef(34): Timed-out initializing flash" when trying to programm flash memory</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/845934#M33685</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 flashed the LPC4078 MCU with a code which (most probably) improperly setting the clocking, and the flash is no longer programmable. I can connect to the target (Attach only = True), I can execute it step by step in the debug session, I can access all the registers, change their values, but I cannot program the flash anymore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bad thing is that the MCU is in the BGA package and the P2.10 pin is not connected and not accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no software way to fix this problem I can replace the crystal with the one I programmed but I would like to avoid it (tiny SMD piece)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the JTAG interface can take over the CPU and keep it from running the user code totally, so the reprogramming should be fairly easy, but it doesn't seem to be the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the debugger log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redlink.exe build 272)&lt;BR /&gt;Pc: ( 0) Reading remote configuration&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Pc: ( 5) Remote configuration complete&lt;BR /&gt;Nc: Reconnected to existing redlink server (PID 4294967295)&lt;BR /&gt;Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'OK'&lt;BR /&gt;Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)&lt;BR /&gt;Nc: Serial Number: I3FUFTIW&lt;BR /&gt;Nc: VID:PID: 1FC9:0090&lt;BR /&gt;Nc: USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;318c6fd0&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Pc: ( 30) Emulator Connected&lt;BR /&gt;Pc: ( 40) No Halt&lt;BR /&gt;Pc: ( 50) CPU ID&lt;BR /&gt;Nc: number of h/w breakpoints = 6&lt;BR /&gt;Nc: number of flash patches = 2&lt;BR /&gt;Nc: number of h/w watchpoints = 4&lt;BR /&gt;Nc: Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC240. 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 LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Image 'LPC177x_8x_407x_8x (512K) Jun 22 2017 15:17:57'&lt;BR /&gt;Nc: NXP: LPC4078&lt;BR /&gt;Pc: ( 65) Chip Setup Complete&lt;BR /&gt;Nt: Connected: was_reset=false. was_stopped=false&lt;BR /&gt;Cr:v MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Pc: ( 70) License Check Complete&lt;BR /&gt;Nc: Opening flash driver LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Sending VECTRESET to run flash driver&lt;BR /&gt;Nc: AFTER driver startup timeout&lt;BR /&gt;Wc: Driver Addresses&lt;BR /&gt;Wc: Start: 10000000&lt;BR /&gt;Wc: Entry: 10000035&lt;BR /&gt;Wc: End: 100003DC&lt;BR /&gt;Wc: Stack: 100005E0&lt;BR /&gt;Wc: Mailbox:100025E0&lt;BR /&gt;Wc: Driver Register State&lt;BR /&gt;Wc: R0: 100025E0&lt;BR /&gt;Wc: R1: 00000000&lt;BR /&gt;Wc: R2: 00000001&lt;BR /&gt;Wc: R3: C8C30080&lt;BR /&gt;Wc: R4: 100025E0&lt;BR /&gt;Wc: R5: 00000000&lt;BR /&gt;Wc: R6: 00002EE0&lt;BR /&gt;Wc: R7: 100005AC&lt;BR /&gt;Wc: R8: 00000000&lt;BR /&gt;Wc: R9: 00000000&lt;BR /&gt;Wc: R10: 00000000&lt;BR /&gt;Wc: R11: 00000000&lt;BR /&gt;Wc: R12: 00000000&lt;BR /&gt;Wc: SP: 100005AC&lt;BR /&gt;Wc: LR: FFFFFFF9 (exception from main thread)&lt;BR /&gt;Wc: PC: 0000022C&lt;BR /&gt;Wc: xPSR: 01000003&lt;BR /&gt;Wc: MSP: 100005AC&lt;BR /&gt;Wc: PSP: 100005E0&lt;BR /&gt;Wc: CFBP: 00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)&lt;BR /&gt;Wc:Stacked Exception information&lt;BR /&gt;Wc:100005C8: xPSR: 100000EE&lt;BR /&gt;Wc:100005C4: VECTPC: 1000003D&lt;BR /&gt;Wc:100005C0: LR: 00000000&lt;BR /&gt;Wc:100005BC: R12: C8C30080&lt;BR /&gt;Wc:100005B8: R3: 00000001&lt;BR /&gt;Wc:100005B4: R2: 00000000&lt;BR /&gt;Wc:100005B0: R1: 100025E0&lt;BR /&gt;Wc:100005AC: R0: 00000000&lt;BR /&gt;Wc:Exception registers&lt;BR /&gt;Wc:E000ED04: ICSR: 00400803 (ISRPEND, VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))&lt;BR /&gt;Wc:E000ED08: VTOR: 00000000 TBLBASE=0(INCODE), TBLOFF=0x0&lt;BR /&gt;Wc:E000ED28: MMFSR: 00&lt;BR /&gt;Wc:E000ED29: BFSR: 82 (BFARVALID, PRECISERR)&lt;BR /&gt;Wc:E000ED2A: UFSR: 0000&lt;BR /&gt;Wc:E000ED2C: HFSR: 40000000 (FORCED)&lt;BR /&gt;Wc:E000ED30: DFSR: 00000001 (HALTED)&lt;BR /&gt;Wc:E000ED3C: AFSR: 00000000&lt;BR /&gt;Wc:E000ED24: SHCSR: 00000000&lt;BR /&gt;Wc:E000ED34: MMAR: C8C30108&lt;BR /&gt;Wc:E000ED38: BFAR: C8C30108&lt;BR /&gt;Wc:E000EDFC: DEMCR: 01000000 (TRCENA)&lt;BR /&gt;Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;BR /&gt;Ed:04: Failed to erase flash: Ef(34): Timed-out initializing flash.&lt;BR /&gt;Pc: (100) Target Connection Failed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 10:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/845934#M33685</guid>
      <dc:creator>arturmiller</dc:creator>
      <dc:date>2018-10-10T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Ef(34): Timed-out initializing flash" when trying to programm flash memory</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/845935#M33686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to answer the question myself. Thank you, whoever got the idea for this switch, for the&amp;nbsp; "--rst" option.&lt;/P&gt;&lt;P&gt;Using the command line flasher (here the --rst option does the job) I erased the flash without running the user code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:\nxp\MCUXpressoIDE_10.0.2_411\ide\bin&amp;gt;crt_emu_cm_redlink.exe --flash-erase --rst -pLPC4078&lt;/STRONG&gt;&lt;BR /&gt;Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redlink.exe build 272)&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)&lt;BR /&gt;Nc: Serial Number: I3FUFTIW&lt;BR /&gt;Nc: VID:PID: 1FC9:0090&lt;BR /&gt;Nc: USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;318c6fd0&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Pc: ( 30) Emulator Connected&lt;BR /&gt;Pc: ( 40) Debug Halt&lt;BR /&gt;Pc: ( 50) CPU ID&lt;BR /&gt;Nc: number of h/w breakpoints = 6&lt;BR /&gt;Nc: number of flash patches = 2&lt;BR /&gt;Nc: number of h/w watchpoints = 4&lt;BR /&gt;Nc: Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC240. 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 LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Image 'LPC177x_8x_407x_8x (512K) Jun 22 2017 15:17:57'&lt;BR /&gt;Nc: NXP: LPC4078&lt;BR /&gt;Cr:v MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Nt: Reset target (system)&lt;BR /&gt;Nc: Opening flash driver LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nc: Sending SYSRESETREQ to run flash driver&lt;BR /&gt;Nt: Erase flash at 0x0&lt;BR /&gt;Nc: Closing flash driver LPC177x_8x_407x_8x_512.cfx&lt;BR /&gt;Nt: Erase completed (in 106ms)&lt;BR /&gt;Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the board is up and running again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 11:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/845935#M33686</guid>
      <dc:creator>arturmiller</dc:creator>
      <dc:date>2018-10-10T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Ef(34): Timed-out initializing flash" when trying to programm flash memory</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/1777989#M55017</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After spending approximately four days on it, I managed to resolve the issue by updating the SDK to at least version 2.6.3 and installing the latest version of MCUXpress IDE. I recommend trying the SDK examples first to verify if the issue has been successfully resolved...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 13:16:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Ef-34-Timed-out-initializing-flash-quot-when-trying-to/m-p/1777989#M55017</guid>
      <dc:creator>MNoman</dc:creator>
      <dc:date>2023-12-20T13:16:44Z</dc:date>
    </item>
  </channel>
</rss>

