<?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 Cannot read DP STAT register, TDO/SWDIO pin held permanently low (K22) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-read-DP-STAT-register-TDO-SWDIO-pin-held-permanently-low/m-p/913184#M53489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using IAR Embedded Workbench with an I-Jet programmer to program a Kinetis K22 processor (MK22FN512VLL12) that is installed on our own custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One board does not allow access to the debug port while others work fine. This is with the debugger probe set for a hardware reset. After the hardware reset TDO stays low and the DAP is not accessible. If I change the debugger probe setting to "No Reset", it then works fine. What would prevent access to the debug port after a reset and how do I fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some key excerpts from the log:&lt;/P&gt;&lt;P&gt;CoreSight error: Cannot read DP STAT register. No DAP access. Debugging is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;CMD_INTERPRETER: failed&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\NXP\Kxx.dmac(91,18): Error: Operation error.&lt;/P&gt;&lt;P&gt;&amp;lt;Call to _ExecDeviceCoreConnect failed&lt;/P&gt;&lt;P&gt;Error while calling macro execUserCoreConnect&lt;/P&gt;&lt;P&gt;LowLevelReset(): Core 0: CpuStatus(status = &amp;lt;0x80: CPU_STATUS_MERR&amp;gt;) = 0&lt;/P&gt;&lt;P&gt;Debug Log(info): CPU status FAILED&lt;/P&gt;&lt;P&gt;&amp;gt;Calling _ExecDeviceCoreConnect&lt;/P&gt;&lt;P&gt;ISigCmdInterpreter::Execute('DAP.RDPw 0x08 0x010000f0')&lt;/P&gt;&lt;P&gt;JTAG test failed - the TDO/SWDIO pin held permanently low.CoreSight error : Firmware scan error (may indicate pending fault AP transaction that must be aborted).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2019 15:32:48 GMT</pubDate>
    <dc:creator>oj_willis</dc:creator>
    <dc:date>2019-09-11T15:32:48Z</dc:date>
    <item>
      <title>Cannot read DP STAT register, TDO/SWDIO pin held permanently low (K22)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-read-DP-STAT-register-TDO-SWDIO-pin-held-permanently-low/m-p/913184#M53489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using IAR Embedded Workbench with an I-Jet programmer to program a Kinetis K22 processor (MK22FN512VLL12) that is installed on our own custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One board does not allow access to the debug port while others work fine. This is with the debugger probe set for a hardware reset. After the hardware reset TDO stays low and the DAP is not accessible. If I change the debugger probe setting to "No Reset", it then works fine. What would prevent access to the debug port after a reset and how do I fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some key excerpts from the log:&lt;/P&gt;&lt;P&gt;CoreSight error: Cannot read DP STAT register. No DAP access. Debugging is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;CMD_INTERPRETER: failed&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\NXP\Kxx.dmac(91,18): Error: Operation error.&lt;/P&gt;&lt;P&gt;&amp;lt;Call to _ExecDeviceCoreConnect failed&lt;/P&gt;&lt;P&gt;Error while calling macro execUserCoreConnect&lt;/P&gt;&lt;P&gt;LowLevelReset(): Core 0: CpuStatus(status = &amp;lt;0x80: CPU_STATUS_MERR&amp;gt;) = 0&lt;/P&gt;&lt;P&gt;Debug Log(info): CPU status FAILED&lt;/P&gt;&lt;P&gt;&amp;gt;Calling _ExecDeviceCoreConnect&lt;/P&gt;&lt;P&gt;ISigCmdInterpreter::Execute('DAP.RDPw 0x08 0x010000f0')&lt;/P&gt;&lt;P&gt;JTAG test failed - the TDO/SWDIO pin held permanently low.CoreSight error : Firmware scan error (may indicate pending fault AP transaction that must be aborted).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-read-DP-STAT-register-TDO-SWDIO-pin-held-permanently-low/m-p/913184#M53489</guid>
      <dc:creator>oj_willis</dc:creator>
      <dc:date>2019-09-11T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read DP STAT register, TDO/SWDIO pin held permanently low (K22)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-read-DP-STAT-register-TDO-SWDIO-pin-held-permanently-low/m-p/913185#M53490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear OJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you have a development board or a J-Link debugger apart from the I-Jet? In the command line of the debugger you can use the command "unlock kinetis" that could help you to recover the MCU. Check more information about it in the following &lt;A href="https://mcuoneclipse.com/2014/10/05/unlocking-and-erasing-flash-with-segger-j-link/"&gt;link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, this could be due to a bad soldering, could you check that the reset circuit and the JTAG/SWD lines doesn't have any anomaly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 23:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-read-DP-STAT-register-TDO-SWDIO-pin-held-permanently-low/m-p/913185#M53490</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-09-17T23:25:06Z</dc:date>
    </item>
  </channel>
</rss>

