<?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: Problems debuging: chip initialization failed - Em(17) error in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849251#M3429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you break your issue down so we can help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the debug log shown in your first post, the QSPI flash driver fails to initialise when started with a Soft reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you create a new project (a simple hello world should be fine) that demonstrates the issue on your target boards. Please confirm whether this only occurs when writing to QSPI flash (on both boards) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: these board have a number of ISP buttons. I would recommend using the on board ISP0 button to ensure board recovery i.e. hold down this button and click the board reset button.. If this is used, I would also recommend unselecting the 'Pull ISP reset' feature found at 'Windows -&amp;gt; Properties -&amp;gt; MCUXpresso IDE -&amp;gt; LinkServer Options'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 09:49:57 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2018-07-30T09:49:57Z</dc:date>
    <item>
      <title>Problems debuging: chip initialization failed - Em(17) error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849248#M3426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m working with the LPCXpresso54018 board and the LPCXpresso54608 board, I was working fine but then, it started to have troubles some times I can debug and some times I cannot. Then when I tried to debug it started to show this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE RedlinkMulti Driver v10.2 (May 10 2018 18:10:59 - crt_emu_cm_redlink build 510)&lt;BR /&gt;Found chip XML file in C:/Users/Ant/Documents/MCUXpressoIDE_10.2.0_759/workspace/lpcxpresso54018_emwin_touch_and_draw/Debug\LPC54018.xml&lt;BR /&gt;Reconnected to existing link server&lt;BR /&gt;Connecting to probe 1 core 0:0 (using server started externally) gave 'OK'&lt;BR /&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.183 (NXP Semiconductors)&lt;BR /&gt;Serial Number: KXBUA3AU&lt;BR /&gt;VID:PID: 1FC9:0090&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#7&amp;amp;384c4213&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Using memory from core 0:0 after searching for a good core&lt;BR /&gt;Expecting vector catch on SYSRESETREQ signal&lt;BR /&gt;debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 6&lt;BR /&gt;number of flash patches = 2&lt;BR /&gt;number of h/w watchpoints = 4&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 00000C24. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04003BB002 ChipIP dev DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04002BB003 ChipIP dev FPB (type 0x0)&lt;BR /&gt;ROM 1 E0000000: CID B105E00D PID 04003BB001 ChipIP dev ITM (type 0x0)&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BB9A1 CoreSight dev TPIU type 0x11 Trace Sink - TPIU&lt;BR /&gt;ROM 1 E0041000: CID B105900D PID 04000BB925 CoreSight dev ETM type 0x13 Trace Source - core&lt;BR /&gt;Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_GENERIC.cfx&lt;BR /&gt;Image 'LPC5460x Generic SPIFI Nov 14 2017 15:01:10'&lt;BR /&gt;Opening flash driver LPC540xx_SPIFI_GENERIC.cfx&lt;BR /&gt;using SOFT reset to run the flash driver&lt;BR /&gt;After error Ee(04). Wire Error -&lt;BR /&gt;Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access&lt;BR /&gt;flash driver polled mailbox (8 bytes at 0x2000B728) read failed (on poll 1/301) - retrying after 1ms - rc Em(17). Debug port inaccessible after access at location 0x2000B728&lt;BR /&gt;After error Ee(04). Wire Error -&lt;BR /&gt;Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access&lt;BR /&gt;flash driver polled mailbox (8 bytes at 0x2000B728) read failed (on poll 1/301) - halting for postmortem - rc Em(17). Debug port inaccessible after access at location 0x2000B728&lt;BR /&gt;Cannot halt processor&lt;BR /&gt;failed to halt target for postmortem - rc Ep(04). Cannot halt processor.&lt;BR /&gt;failed to read registers - Ep(08). Cannot access core regs when target running.&lt;BR /&gt;Flash Driver V.2 startup failed - rc Em(17). Debug port inaccessible after access at location 0x2000B728&lt;BR /&gt;chip initialization failed - Em(17). Debug port inaccessible after access at location 0x2000B728&lt;BR /&gt;NXP: LPC54018&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;Cannot halt processor&lt;BR /&gt;Could not stop execution from running: Ep(04). Cannot halt processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got stock in this and this is urgent to my work could anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m working with MCUXpresso IDE, I´m using LPCXpresso54018 and LPCXpresso54608 boards, I´m using LPC-Link 2 board like a second option and USB port of the board like my first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 17:55:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849248#M3426</guid>
      <dc:creator>oscarniño</dc:creator>
      <dc:date>2018-07-24T17:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems debuging: chip initialization failed - Em(17) error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849249#M3427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;https://community.nxp.com/thread/389112&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 21:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849249#M3427</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-07-24T21:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems debuging: chip initialization failed - Em(17) error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849250#M3428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done, it is not pretty clear to me, but infact I saw that maybe it could works because MCUXpresso let me debug after I have try to run a software in LPCXpresso, I have changed the reset option indicates in&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389040"&gt;https://community.nxp.com/thread/389040&lt;/A&gt;&amp;nbsp;question. but It still doesn´t work fine. I have to debug first an aplication on LPCXpresso and then try to debug in MCUXpresso in order to debug my application. Any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 17:34:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849250#M3428</guid>
      <dc:creator>oscarniño</dc:creator>
      <dc:date>2018-07-25T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems debuging: chip initialization failed - Em(17) error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849251#M3429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you break your issue down so we can help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the debug log shown in your first post, the QSPI flash driver fails to initialise when started with a Soft reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you create a new project (a simple hello world should be fine) that demonstrates the issue on your target boards. Please confirm whether this only occurs when writing to QSPI flash (on both boards) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: these board have a number of ISP buttons. I would recommend using the on board ISP0 button to ensure board recovery i.e. hold down this button and click the board reset button.. If this is used, I would also recommend unselecting the 'Pull ISP reset' feature found at 'Windows -&amp;gt; Properties -&amp;gt; MCUXpresso IDE -&amp;gt; LinkServer Options'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:49:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849251#M3429</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-07-30T09:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems debuging: chip initialization failed - Em(17) error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849252#M3430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I still trying with this problem, I can´t resolve it, when I try to debug it this report is showed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE RedlinkMulti Driver v10.2 (May 10 2018 18:10:59 - crt_emu_cm_redlink build 510)&lt;BR /&gt;Found chip XML file in C:/Users/Ant/Documents/MCUXpressoIDE_10.2.0_759/workspace/lpcxpresso54018_hello_world/Debug\LPC54018.xml&lt;BR /&gt;Reconnected to existing link server&lt;BR /&gt;Connecting to probe 1 core 0:0 (using server started externally) gave 'OK'&lt;BR /&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)&lt;BR /&gt;Serial Number: NRA2CQFR&lt;BR /&gt;VID:PID: 1FC9:0090&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#7&amp;amp;654b1f4&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Using memory from core 0:0 after searching for a good core&lt;BR /&gt;Expecting vector catch on SYSRESETREQ signal&lt;BR /&gt;debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 6&lt;BR /&gt;number of flash patches = 2&lt;BR /&gt;number of h/w watchpoints = 4&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 00000C24. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04003BB002 ChipIP dev DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04002BB003 ChipIP dev FPB (type 0x0)&lt;BR /&gt;ROM 1 E0000000: CID B105E00D PID 04003BB001 ChipIP dev ITM (type 0x0)&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BB9A1 CoreSight dev TPIU type 0x11 Trace Sink - TPIU&lt;BR /&gt;ROM 1 E0041000: CID B105900D PID 04000BB925 CoreSight dev ETM type 0x13 Trace Source - core&lt;BR /&gt;Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_GENERIC.cfx&lt;BR /&gt;Image 'LPC5460x Generic SPIFI Nov 14 2017 15:01:10'&lt;BR /&gt;Opening flash driver LPC540xx_SPIFI_GENERIC.cfx&lt;BR /&gt;using SOFT reset to run the flash driver&lt;BR /&gt;AFTER driver startup timeout&lt;BR /&gt;Driver Addresses&lt;BR /&gt;Start: 20000000&lt;BR /&gt;Entry: 20000035&lt;BR /&gt;End: 20002718&lt;BR /&gt;Stack: 20003718&lt;BR /&gt;Mailbox:2000B718&lt;BR /&gt;Driver Register State&lt;BR /&gt;R0: 200036E0&lt;BR /&gt;R1: 200000F6&lt;BR /&gt;R2: 0000FFFF&lt;BR /&gt;R3: 0000BEAB&lt;BR /&gt;R4: 2000B718&lt;BR /&gt;R5: 00000000&lt;BR /&gt;R6: 00000000&lt;BR /&gt;R7: 00000000&lt;BR /&gt;R8: 00000000&lt;BR /&gt;R9: 00000000&lt;BR /&gt;R10: 00000000&lt;BR /&gt;R11: 00000000&lt;BR /&gt;R12: 00000000&lt;BR /&gt;SP: 200036E0&lt;BR /&gt;LR: FFFFFFF9 (exception from main thread)&lt;BR /&gt;PC: 000093DA&lt;BR /&gt;xPSR: 21000003&lt;BR /&gt;MSP: 200036E0&lt;BR /&gt;PSP: 20003718&lt;BR /&gt;CFBP: 00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)&lt;BR /&gt;Stacked Exception information&lt;BR /&gt;200036FC: xPSR: 21000000&lt;BR /&gt;200036F8: VECTPC: 200000F6&lt;BR /&gt;200036F4: LR: 200019CB&lt;BR /&gt;200036F0: R12: 00000000&lt;BR /&gt;200036EC: R3: 00002000&lt;BR /&gt;200036E8: R2: 00000002&lt;BR /&gt;200036E4: R1: 40000000&lt;BR /&gt;200036E0: R0: 00000000&lt;BR /&gt;Exception registers&lt;BR /&gt;E000ED04: ICSR: 00400803 (ISRPEND, VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))&lt;BR /&gt;E000ED08: VTOR: 00000000 TBLBASE=0(INCODE), TBLOFF=0x0&lt;BR /&gt;E000ED28: MMFSR: 00&lt;BR /&gt;E000ED29: BFSR: 00&lt;BR /&gt;E000ED2A: UFSR: 0001 (UNDEFINSTR)&lt;BR /&gt;E000ED2C: HFSR: 40000000 (FORCED)&lt;BR /&gt;E000ED30: DFSR: 00000001 (HALTED)&lt;BR /&gt;E000ED3C: AFSR: 00000000&lt;BR /&gt;E000ED24: SHCSR: 00000000&lt;BR /&gt;E000ED34: MMAR: E000EDF8&lt;BR /&gt;E000ED38: BFAR: E000EDF8&lt;BR /&gt;E000EDFC: DEMCR: 01000001 (TRCENA, VC_CORERESET)&lt;BR /&gt;VECTPC instructions near 200000F6&lt;BR /&gt;200000F0: 5300&lt;BR /&gt;200000F2: F8C1&lt;BR /&gt;200000F4: FFFF&lt;BR /&gt;200000F6: FFFF&lt;BR /&gt;200000F8: F240&lt;BR /&gt;200000FA: 3206&lt;BR /&gt;Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;BR /&gt;chip initialization failed - Ef(34): Timed-out initializing flash.&lt;BR /&gt;NXP: LPC54018&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;Awaiting telnet connection to port 3337 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;Starting execution using soft reset with PC 0x0 SP 0x0 from load at 0x10000000&lt;BR /&gt;Cannot halt processor&lt;BR /&gt;Could not stop execution from running: Ep(04). Cannot halt processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about unselecting Pull ISP reset I have done but it still si happened, This report is done with a simple Hello World example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 22:19:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problems-debuging-chip-initialization-failed-Em-17-error/m-p/849252#M3430</guid>
      <dc:creator>oscarniño</dc:creator>
      <dc:date>2018-07-30T22:19:31Z</dc:date>
    </item>
  </channel>
</rss>

