<?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: S32K3 bricked, unable to debug in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372230#M58914</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256454"&gt;@Greavesinator85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, there are not boot configuration pins on this device. I know that this could be a workaround on some other devices but that’s not the case of S32K3. It always boots from internal flash memory only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you check the reset signal? Isn’t the reset asserted all the time? I was playing with JLink on my board and I got exactly the same error message when I kept the reset asserted during ‘connect’ command execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2026 06:13:25 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2026-05-28T06:13:25Z</dc:date>
    <item>
      <title>S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371301#M58877</link>
      <description>&lt;P&gt;Hi, I've been trying to use AB_SWAP firmware for bootloading. I've not progressed the lifecycle or anything like that, and secure boot is not enabled. I am flashing one bank, and then performing an active bank switch using HSE. I was experiencing compounding reset reasons&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Bit 0 (0x0001):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Power On Reset&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Bit 8 (0x0100):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;FXOSC Failure&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Bit 15 (0x8000):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;System Clock Divider Failure&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After experimenting with switching the clock to FIRC before the bank switch reset call, I have not been able to access my MCU with JLink.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've tried connect under reset, running in a loop and power cycling etc. Is there any boot configuration via pins I can use to keep it in a known state, or factory reset tools to recover this?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Type "connect" to establish a target connection, '?' for help&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K358_M7_0&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;&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;&lt;BR /&gt;Device "S32K358_M7_0" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 27us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;SDA_AP detected&lt;BR /&gt;Unlocking device if necessary...&lt;BR /&gt;Device is not locked. Proceeding without the unlock procedure.&lt;BR /&gt;Checking if debug access is already enabled...&lt;BR /&gt;Debug access is not enabled yet. Performing enable debug access sequence...&lt;BR /&gt;Debug access enabled&lt;BR /&gt;Checking if HSE firmware is installed...&lt;BR /&gt;HSE firmware not installed&lt;BR /&gt;Checking if Cortex-M7_0 and Cortex-M7_1 are operating in lockstep mode&lt;BR /&gt;Lock step mode enabled&lt;BR /&gt;InitTarget() end - Took 10.0ms&lt;BR /&gt;Found SW-DP with ID 0x6BA02477&lt;BR /&gt;DPIDR: 0x6BA02477&lt;BR /&gt;CoreSight SoC-400 or earlier&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[1]: APB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[2]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[3]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[4]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[5]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[6]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[7]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[4]: Skipped ROMBASE read. CoreBaseAddr manually set by user&lt;BR /&gt;AP[4]: Core found&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 13us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;SDA_AP detected&lt;BR /&gt;Unlocking device if necessary...&lt;BR /&gt;Device is not locked. Proceeding without the unlock procedure.&lt;BR /&gt;Checking if debug access is already enabled...&lt;BR /&gt;Debug access is not enabled yet. Performing enable debug access sequence...&lt;BR /&gt;Debug access enabled&lt;BR /&gt;Checking if HSE firmware is installed...&lt;BR /&gt;HSE firmware not installed&lt;BR /&gt;Checking if Cortex-M7_0 and Cortex-M7_1 are operating in lockstep mode&lt;BR /&gt;Lock step mode enabled&lt;BR /&gt;InitTarget() end - Took 20.5ms&lt;BR /&gt;Found SW-DP with ID 0x6BA02477&lt;BR /&gt;DPIDR: 0x6BA02477&lt;BR /&gt;CoreSight SoC-400 or earlier&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[1]: APB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[2]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[3]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[4]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[5]: AHB-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[6]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[7]: MEM-AP (IDR: Not set, ADDR: 0x00000000)&lt;BR /&gt;AP[4]: Skipped ROMBASE read. CoreBaseAddr manually set by user&lt;BR /&gt;AP[4]: Core found&lt;/P&gt;&lt;P&gt;****** Error: DAP error while reading AIRCR.&lt;/P&gt;&lt;P&gt;Error occurred: Could not connect to the target device.&lt;BR /&gt;For troubleshooting steps visit: &lt;A href="https://kb.segger.com/J-Link_Troubleshooting" target="_blank"&gt;https://kb.segger.com/J-Link_Troubleshooting&lt;/A&gt;&lt;BR /&gt;J-Link&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 26 May 2026 11:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371301#M58877</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2026-05-26T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371334#M58880</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could not connect to the target device.? What kind of board you are using for programming?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 12:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371334#M58880</guid>
      <dc:creator>db16122</dc:creator>
      <dc:date>2026-05-26T12:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371376#M58884</link>
      <description>&lt;P&gt;It's a custom board, but I have been using it for a few months so its not a hardware issue. Then its a J-Trace connected with SWD.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 14:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2371376#M58884</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2026-05-26T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372230#M58914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256454"&gt;@Greavesinator85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, there are not boot configuration pins on this device. I know that this could be a workaround on some other devices but that’s not the case of S32K3. It always boots from internal flash memory only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you check the reset signal? Isn’t the reset asserted all the time? I was playing with JLink on my board and I got exactly the same error message when I kept the reset asserted during ‘connect’ command execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 06:13:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372230#M58914</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-05-28T06:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372357#M58918</link>
      <description>Hi Lukas,&lt;BR /&gt;I scoped it out. Reset seems to be flickering intermittently without any JLink operation. It holds high during the connect, and then resets as part of the normal connection procedure. I tried with the Reset pin strongly pulled high to avoid any issues there but still I get the exact same issue</description>
      <pubDate>Thu, 28 May 2026 09:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372357#M58918</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2026-05-28T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372365#M58919</link>
      <description>&lt;P&gt;To clarify. A 50us reset pulse is being asserted every 30ms, with or without the JLink connected&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 09:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372365#M58919</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2026-05-28T09:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372499#M58922</link>
      <description>After 6 hours of leaving the board with the oscilloscope connected, I noticed the reset pattern had stopped. I was able to connect and erase the board. I'll continue with my development cautiously.&lt;BR /&gt;&lt;BR /&gt;A theory is that the code I added to switch HSE partition included a clock switch, from FXOSC + PLL to FIRC to resolve some reset issues. I guess not gracefully closing the GMAC peripheral that was using the PLL, or not waiting for it to complete shutdown was causing instability that was then exacerbated during clock init entering some kind of reset cycle.</description>
      <pubDate>Thu, 28 May 2026 14:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2372499#M58922</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2026-05-28T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 bricked, unable to debug</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2373107#M58941</link>
      <description>&lt;P&gt;I got new information from my colleague. If you meet this problem again, try following commands:&lt;/P&gt;
&lt;P&gt;r0&lt;/P&gt;
&lt;P&gt;erase&lt;/P&gt;
&lt;P&gt;Do not use 'connect' before that. After 'erase' command, it will ask you to establish the connection. And then it will erase the flash and while no code is executed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not work, you can try to use JTAG mode instead of SWD. It looks like this can also make a difference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 14:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-bricked-unable-to-debug/m-p/2373107#M58941</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-05-29T14:09:45Z</dc:date>
    </item>
  </channel>
</rss>

