<?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: Recovering from constant reset issue on s32k148evb in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1245699#M10174</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I tried the steps you sent. But i couldnt load the application onto the board as I was again unable to connect to the board. My observations are as follow:&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r0&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000 ***ERROR&lt;BR /&gt;J-Link&amp;gt;unlock Kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...O.K.&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000035&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000035&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K148&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;S32K148&lt;BR /&gt;Please specify target interface:&lt;BR /&gt;J) JTAG (Default)&lt;BR /&gt;S) SWD&lt;BR /&gt;T) cJTAG&lt;BR /&gt;TIF&amp;gt;S&lt;BR /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;100&lt;BR /&gt;Device "S32K148" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried connecting J3.7-&amp;gt;3.19 and issued unlock kinetis which worked fine. But at the end I couldnt connect. Is it like the board is completely bricked or any other means of recovering from this?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 11:52:54 GMT</pubDate>
    <dc:creator>harish_cont41</dc:creator>
    <dc:date>2021-03-15T11:52:54Z</dc:date>
    <item>
      <title>Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242532#M10101</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have s32k148evb board where erase failed using J-Link and the reset led is constantly blinking. which means it is in constant reset. This is causing the issue of not able to be connected to the target either through segger or OpenSDA channels. Can you help me recover from this? Is there any utility that can be tried to program on this evb board? Kindly help me. This is the only board we have and the issue is urgent.&lt;/P&gt;&lt;P&gt;I tried J-LInk commander to issue to halt, reset etc commands but failed. I also tried Kinetis Recovery Utility but the USB connection is not recognized. Also when I connect the board with segger it shows red led blinking which means its not working properly. I cannot reflash any bootloader or application with this conditions. Kindly help me.&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 12:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242532#M10101</guid>
      <dc:creator>harish_cont41</dc:creator>
      <dc:date>2021-03-09T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242540#M10102</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
&lt;P&gt;Please try the Unlock Kinetis command and keep the MCU in reset externally,&lt;/P&gt;
&lt;P&gt;as it was discussed here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Unbricking-S32K146/m-p/937227" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/Unbricking-S32K146/m-p/937227&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 13:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242540#M10102</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-03-09T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242947#M10106</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I tried the steps that are mentioned in the link. Is the 3.5-3.11 connection is necessary and is it the same for S32K148EVB also. Please clarify this. Without this connection also my commands are as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r0&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;unlock Kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...O.K.&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;/P&gt;&lt;P&gt;And when I tried connecting, I am still not able to connect to the target. Do I need to hold the reset button for a long time or is it fine to issue the connect command as my previous&amp;nbsp; unlock kinetis worked fine. Please clarify.&lt;/P&gt;&lt;P&gt;This the connect command result on my connection to the target S32K148EVB:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;connect&lt;BR /&gt;Device "S32K148" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me sir, this board was replaced recently and we run into another issue here.&lt;/P&gt;&lt;P&gt;BTW, reset led is constantly on, how can I reset this reset register to something which can help me to make a connection to the target. Can this be done by Jlink. As of now J-link Lite also not able&amp;nbsp; to connect to the target.&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 05:40:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1242947#M10106</guid>
      <dc:creator>harish_cont41</dc:creator>
      <dc:date>2021-03-10T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1243313#M10115</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
&lt;P&gt;Please connect the reset pin (PTA5 - J3.7 to GND - J3.19) and power cycle the MCU, so that the MCU is kept in reset out POR. And use only the Unlock kinetis command, after that please read the registers again.&lt;/P&gt;
&lt;P&gt;But it is strange that the J-link commander says the MCU is secure and yet a read of the MDM-AP Status register returns 0x00000000.&lt;/P&gt;
&lt;P&gt;The MCU is periodically resetting itself due to core lockups since there is no code to be executed.&lt;/P&gt;
&lt;P&gt;Was the MCU partitioned for CSEc before the failure?&lt;/P&gt;
&lt;P&gt;If so, the MCU cannot be mass erased.&lt;/P&gt;
&lt;P&gt;AN12130, Production Flash Programming Best Practices for S32K1xx MCUs&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12130.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3.2.5.2 Mass erase and CSEc considerations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1243313#M10115</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-03-10T14:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1244623#M10143</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I connected J3.7 to J3.19 tried resetting but the reset Led continued to glow. And the unlock Kinetis went fine. But the readind the AP registers are as below:&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r0&lt;BR /&gt;J-Link&amp;gt;unlock Kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...O.K.&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000037&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000037&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K148&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;S32K148&lt;BR /&gt;Please specify target interface:&lt;BR /&gt;J) JTAG (Default)&lt;BR /&gt;S) SWD&lt;BR /&gt;T) cJTAG&lt;BR /&gt;TIF&amp;gt;S&lt;BR /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;100&lt;BR /&gt;Device "S32K148" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;Cannot connect to target.&lt;/P&gt;&lt;P&gt;I really not able to do away with this problem. To reprogram I can neither connect nor I can erase.&lt;/P&gt;&lt;P&gt;Is the board bricked or any other steps I can try to recover the board. Also let me know if the connecting J3.7 to 3.19 is correct. Because I read online that 3.19 is not GND. Please help.&lt;/P&gt;&lt;P&gt;I am working on S32K148EVB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 06:17:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1244623#M10143</guid>
      <dc:creator>harish_cont41</dc:creator>
      <dc:date>2021-03-12T06:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1244898#M10151</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
&lt;P&gt;Please don't trigger the mass erase again after the successful Unlock Kinetis command.&lt;/P&gt;
&lt;P&gt;Remove this:&amp;nbsp; J-Link&amp;gt;swdwriteap 1,0x1&lt;/P&gt;
&lt;P&gt;Actually, the MCU needs to be released from the system reset so that the new unlocked configuration can be loaded to the FSEC register.&lt;/P&gt;
&lt;P&gt;1. connect the reset pin to the ground - it is J3.7 -&amp;gt; J3.19, please see that attached schematic.&lt;/P&gt;
&lt;P&gt;2. power cycle the MCU&lt;/P&gt;
&lt;P&gt;3. use Unlock Kinetis&lt;/P&gt;
&lt;P&gt;4. release the reset pin&lt;/P&gt;
&lt;P&gt;5. try to load a new application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 14:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1244898#M10151</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-03-12T14:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1245699#M10174</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I tried the steps you sent. But i couldnt load the application onto the board as I was again unable to connect to the board. My observations are as follow:&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r0&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000 ***ERROR&lt;BR /&gt;J-Link&amp;gt;unlock Kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...O.K.&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000035&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000035&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K148&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;S32K148&lt;BR /&gt;Please specify target interface:&lt;BR /&gt;J) JTAG (Default)&lt;BR /&gt;S) SWD&lt;BR /&gt;T) cJTAG&lt;BR /&gt;TIF&amp;gt;S&lt;BR /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;100&lt;BR /&gt;Device "S32K148" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.&lt;BR /&gt;For debugger connection the device needs to be unsecured.&lt;BR /&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;BR /&gt;Executing default behavior previously saved in the registry.&lt;BR /&gt;Device will be unsecured now.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;DPIDR: 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Skipped. Could not read CPUID register&lt;BR /&gt;AP[1]: Skipped. Not an AHB-AP&lt;/P&gt;&lt;P&gt;****** Error: Could not find core in Coresight setup&lt;/P&gt;&lt;P&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried connecting J3.7-&amp;gt;3.19 and issued unlock kinetis which worked fine. But at the end I couldnt connect. Is it like the board is completely bricked or any other means of recovering from this?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1245699#M10174</guid>
      <dc:creator>harish_cont41</dc:creator>
      <dc:date>2021-03-15T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recovering from constant reset issue on s32k148evb</title>
      <link>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1246527#M10203</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
&lt;P&gt;Are you sure the MCU hasn't been partitioned for CSEc?&lt;/P&gt;
&lt;P&gt;For example the SDK flexcan_encrypted example uses CSEc, and once the keys are allocated, the MCU cannot be mass erased even if Mass erase is enabled in the MDM-AP Status register until the keys are removed - and that is not possible anymore if the MCU gets accidentally locked.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:17:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Recovering-from-constant-reset-issue-on-s32k148evb/m-p/1246527#M10203</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-03-16T15:17:30Z</dc:date>
    </item>
  </channel>
</rss>

