<?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>S32KのトピックS32K142 JLINK program failed</title>
    <link>https://community.nxp.com/t5/S32K/S32K142-JLINK-program-failed/m-p/2365858#M58604</link>
    <description>&lt;DIV&gt;Hello everyone,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have several faulty boards which fail to be programmed normally with CPU halt timeout error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use J-Link debugger and the latest J-Flash software. I choose device &lt;STRONG&gt;S32K142 (allow security)&lt;/STRONG&gt;, but the connection always fails after clicking Connect. The detailed J-Flash log is shown below:&lt;BR /&gt;&lt;BR /&gt;Connecting ...&lt;BR /&gt;- Connecting via USB to probe/ programmer device 0&lt;BR /&gt;- Probe/ Programmer firmware: J-Link V12 compiled Mar 26 2026 10:14:53&lt;BR /&gt;- Probe/ Programmer S/N: 602004248&lt;BR /&gt;- Device "S32K142 (ALLOW SECURITY)" selected.&lt;BR /&gt;- Target interface speed: 4000 kHz (Fixed)&lt;BR /&gt;- VTarget = 3.328V&lt;BR /&gt;- ConfigTargetSettings() start&lt;BR /&gt;- ConfigTargetSettings() end - Took 30us&lt;BR /&gt;- InitTarget() start&lt;BR /&gt;- SWD selected. Executing JTAG -&amp;gt; SWD switching sequence.&lt;BR /&gt;- Device will be unsecured now.&lt;BR /&gt;- Timeout while halting CPU.&lt;BR /&gt;- InitTarget() end - Took 1.97s&lt;BR /&gt;- Found SW-DP with ID 0x2BA01477&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Attach to CPU failed. Executing connect under reset.&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Could not find core in Coresight setup&lt;BR /&gt;- ConfigTargetSettings() start&lt;BR /&gt;- ConfigTargetSettings() end - Took 4us&lt;BR /&gt;- InitTarget() start&lt;BR /&gt;- SWD selected. Executing JTAG -&amp;gt; SWD switching sequence.&lt;BR /&gt;- Device will be unsecured now.&lt;BR /&gt;- Timeout while halting CPU.&lt;BR /&gt;- InitTarget() end - Took 1.30s&lt;BR /&gt;- Found SW-DP with ID 0x2BA01477&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Attach to CPU failed. Executing connect under reset.&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Could not find core in Coresight setup&lt;BR /&gt;- ERROR: Failed to connect.&lt;BR /&gt;Could not establish a connection to target.&lt;BR /&gt;General troubleshooting guide: &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;- ERROR: Connect failed&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;Furthermore, I captured SWD communication waveforms with a logic analyzer during mass erase process, and the operation sequence is as below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Read MDM-AP Status = 0x34&lt;/LI&gt;&lt;LI&gt;Read MDM-AP Status = 0x36&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x10&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x01&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x08&lt;/LI&gt;&lt;LI&gt;Read MDM-AP Status = 0x35&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could anyone kindly help analyze the possible reasons causing this programming and connection failure? Thank you very much.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 15 May 2026 03:03:35 GMT</pubDate>
    <dc:creator>BianHaopeng1</dc:creator>
    <dc:date>2026-05-15T03:03:35Z</dc:date>
    <item>
      <title>S32K142 JLINK program failed</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-JLINK-program-failed/m-p/2365858#M58604</link>
      <description>&lt;DIV&gt;Hello everyone,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have several faulty boards which fail to be programmed normally with CPU halt timeout error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use J-Link debugger and the latest J-Flash software. I choose device &lt;STRONG&gt;S32K142 (allow security)&lt;/STRONG&gt;, but the connection always fails after clicking Connect. The detailed J-Flash log is shown below:&lt;BR /&gt;&lt;BR /&gt;Connecting ...&lt;BR /&gt;- Connecting via USB to probe/ programmer device 0&lt;BR /&gt;- Probe/ Programmer firmware: J-Link V12 compiled Mar 26 2026 10:14:53&lt;BR /&gt;- Probe/ Programmer S/N: 602004248&lt;BR /&gt;- Device "S32K142 (ALLOW SECURITY)" selected.&lt;BR /&gt;- Target interface speed: 4000 kHz (Fixed)&lt;BR /&gt;- VTarget = 3.328V&lt;BR /&gt;- ConfigTargetSettings() start&lt;BR /&gt;- ConfigTargetSettings() end - Took 30us&lt;BR /&gt;- InitTarget() start&lt;BR /&gt;- SWD selected. Executing JTAG -&amp;gt; SWD switching sequence.&lt;BR /&gt;- Device will be unsecured now.&lt;BR /&gt;- Timeout while halting CPU.&lt;BR /&gt;- InitTarget() end - Took 1.97s&lt;BR /&gt;- Found SW-DP with ID 0x2BA01477&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Attach to CPU failed. Executing connect under reset.&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Could not find core in Coresight setup&lt;BR /&gt;- ConfigTargetSettings() start&lt;BR /&gt;- ConfigTargetSettings() end - Took 4us&lt;BR /&gt;- InitTarget() start&lt;BR /&gt;- SWD selected. Executing JTAG -&amp;gt; SWD switching sequence.&lt;BR /&gt;- Device will be unsecured now.&lt;BR /&gt;- Timeout while halting CPU.&lt;BR /&gt;- InitTarget() end - Took 1.30s&lt;BR /&gt;- Found SW-DP with ID 0x2BA01477&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Attach to CPU failed. Executing connect under reset.&lt;BR /&gt;- DPIDR: 0x2BA01477&lt;BR /&gt;- CoreSight SoC-400 or earlier&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, ADDR: 0x00000000)&lt;BR /&gt;- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)&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;- Could not find core in Coresight setup&lt;BR /&gt;- ERROR: Failed to connect.&lt;BR /&gt;Could not establish a connection to target.&lt;BR /&gt;General troubleshooting guide: &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;- ERROR: Connect failed&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;Furthermore, I captured SWD communication waveforms with a logic analyzer during mass erase process, and the operation sequence is as below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Read MDM-AP Status = 0x34&lt;/LI&gt;&lt;LI&gt;Read MDM-AP Status = 0x36&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x10&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x01&lt;/LI&gt;&lt;LI&gt;Write MDM-AP Control = 0x08&lt;/LI&gt;&lt;LI&gt;Read MDM-AP Status = 0x35&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could anyone kindly help analyze the possible reasons causing this programming and connection failure? Thank you very much.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 May 2026 03:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-JLINK-program-failed/m-p/2365858#M58604</guid>
      <dc:creator>BianHaopeng1</dc:creator>
      <dc:date>2026-05-15T03:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 JLINK program failed</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-JLINK-program-failed/m-p/2366641#M58651</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;BianHaopeng1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Did you enable the CSEc module on your chip before?&lt;/P&gt;
&lt;P&gt;If so, it cannot be directly erased using a mass eraser.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 04:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-JLINK-program-failed/m-p/2366641#M58651</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-05-18T04:29:46Z</dc:date>
    </item>
  </channel>
</rss>

