<?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: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1820016#M32386</link>
    <description>&lt;P&gt;Finally, I found that when I &lt;STRONG&gt;enabled MPU (only open MPU_ENABLE macro definition)&lt;/STRONG&gt;, multiple boards ran for a week without any abnormalities. Therefore, I am very puzzled as to why there is a crash and inability to connect to Jlink, when I enable I/DCache without enabling MPU configuration. How to explain the reason for this problem? Could you please help me answer it? Thanks!!!!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 01:48:25 GMT</pubDate>
    <dc:creator>Fovery</dc:creator>
    <dc:date>2024-03-04T01:48:25Z</dc:date>
    <item>
      <title>S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1798507#M31258</link>
      <description>&lt;P&gt;I use S32K344HVS with Jlink SWD interface, connect four pin: GND, SWC, SWD, RESET.&lt;BR /&gt;Normally, the system is OK, and I can connect the Jlink CommanderV7.94 to the MCU. But, when it run a pure software algorithm for several hours, the MCU will crash (the led blink and the console uart is stop), and I cannot connect the MCU with the Jlink.&lt;/P&gt;&lt;P&gt;【THE JlinkCommander show the error info:】&lt;BR /&gt;SEGGER J-Link Commander V7.94&lt;BR /&gt;Firmware: J-Link V11 compiled Nov 22 2023 09:48:47&lt;BR /&gt;Hardware version: V11.00&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K344&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;S32K344&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;1000&lt;BR /&gt;Device "S32K344" selected.&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 11us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;SDA_AP detected&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;Lock step mode enabled&lt;BR /&gt;InitTarget() end - Took 4.10s&lt;BR /&gt;Found SW-DP with ID 0x6BA02477&lt;BR /&gt;Failed to power up DAP&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 9us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;Unknown SDA AP Id detected: 0xFFFFFFFF&lt;BR /&gt;InitTarget() end - Took 401ms&lt;BR /&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;【The following is the information displayed by Jlink Commander during normal operation：】&lt;BR /&gt;SEGGER J-Link Commander V7.94&lt;BR /&gt;Firmware: J-Link V11 compiled Nov 22 2023 09:48:47&lt;BR /&gt;Hardware version: V11.00&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: S32K344&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;S32K344&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;1000&lt;BR /&gt;Device "S32K344" selected.&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 12us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;SDA_AP detected&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;Lock step mode enabled&lt;BR /&gt;InitTarget() end - Took 27.8ms&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)&lt;BR /&gt;AP[1]: APB-AP (IDR: Not set)&lt;BR /&gt;AP[2]: MEM-AP (IDR: Not set)&lt;BR /&gt;AP[3]: MEM-AP (IDR: Not set)&lt;BR /&gt;AP[4]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[5]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[6]: MEM-AP (IDR: Not set)&lt;BR /&gt;AP[7]: MEM-AP (IDR: Not set)&lt;BR /&gt;AP[4]: Skipped ROMBASE read. CoreBaseAddr manually set by user&lt;BR /&gt;AP[4]: Core found&lt;BR /&gt;CPUID register: 0x411FC272. Implementer code: 0x41 (ARM)&lt;BR /&gt;Cache: L1 I/D-cache present&lt;BR /&gt;Found Cortex-M7 r1p2, Little endian.&lt;BR /&gt;FPUnit: 8 code (BP) slots and 0 literal slots&lt;BR /&gt;ROM table scan skipped. CoreBaseAddr manually set by user: 0x40250400&lt;BR /&gt;I-Cache L1: 8 KB, 128 Sets, 32 Bytes/Line, 2-Way&lt;BR /&gt;D-Cache L1: 8 KB, 64 Sets, 32 Bytes/Line, 4-Way&lt;BR /&gt;SetupTarget() start&lt;BR /&gt;Initializing ECC RAM...&lt;BR /&gt;RAMCodeAddr: 0x20000000&lt;BR /&gt;RAMInitAddr: 0x20000010&lt;BR /&gt;RAMInitSize: 0x00007FF0&lt;BR /&gt;InitPattern: 0xDEADBEEF&lt;BR /&gt;ECC RAM initialized successfully&lt;BR /&gt;Initializing ECC RAM...&lt;BR /&gt;RAMCodeAddr: 0x20000000&lt;BR /&gt;RAMInitAddr: 0x20400000&lt;BR /&gt;RAMInitSize: 0x00004000&lt;BR /&gt;InitPattern: 0xDEADBEEF&lt;BR /&gt;ECC RAM initialized successfully&lt;BR /&gt;SetupTarget() end - Took 35.2ms&lt;BR /&gt;Memory zones:&lt;BR /&gt;Zone: "Default" Description: Default access mode&lt;BR /&gt;Cortex-M7 identified.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 08:59:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1798507#M31258</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-01-31T08:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1798523#M31260</link>
      <description>&lt;P&gt;When the MCU crashes, it does not enter the error interrupt to print backtrace information, nor can it be connected by Jink, causing me to be unable to view the PC value and stack content at the time of the crash. Therefore, I have no way to investigate the cause of this issue. Sincerely request support, thanks!!!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 09:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1798523#M31260</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-01-31T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1799789#M31322</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228916"&gt;@Fovery&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The LED that blinks is the reset LED, right?&lt;/P&gt;
&lt;P&gt;Does the MCU work without debugger after power-on reset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 10:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1799789#M31322</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-02-01T10:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1800675#M31374</link>
      <description>&lt;P&gt;1. The LED is only a gpio output by a task to blink, not the reset LED.&lt;/P&gt;&lt;P&gt;2. Yes, the debuger is not connect, and the MCU still crash after hours. After the MCU crash, I connect the Jlink four pins (gnd,swc,swd,reset), but Jlink comander cannot "connect" to the MCU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 08:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1800675#M31374</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-02-02T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1800770#M31378</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228916"&gt;@Fovery&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;J-link commander would reset the MCU with the connect command.&lt;/P&gt;
&lt;P&gt;Have you tried attaching it (without reset) in Ozone?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1706868255453.png" style="width: 379px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261625iDAD6F40DB721514D/image-dimensions/379x107?v=v2" width="379" height="107" role="button" title="danielmartynek_0-1706868255453.png" alt="danielmartynek_0-1706868255453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1706868297512.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261626i971D6B77442D7E64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_1-1706868297512.png" alt="danielmartynek_1-1706868297512.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1706868331754.png" style="width: 522px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261627i2101FEBD99564A5F/image-dimensions/522x127?v=v2" width="522" height="127" role="button" title="danielmartynek_2-1706868331754.png" alt="danielmartynek_2-1706868331754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 10:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1800770#M31378</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-02-02T10:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1810457#M31773</link>
      <description>&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;P&gt;Using Ozone "Attach to Running Program", the MCU is connect and the ozone can display the current running status. I'll&amp;nbsp;continue to analysis based on the Ozone.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 02:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1810457#M31773</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-02-19T02:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1820016#M32386</link>
      <description>&lt;P&gt;Finally, I found that when I &lt;STRONG&gt;enabled MPU (only open MPU_ENABLE macro definition)&lt;/STRONG&gt;, multiple boards ran for a week without any abnormalities. Therefore, I am very puzzled as to why there is a crash and inability to connect to Jlink, when I enable I/DCache without enabling MPU configuration. How to explain the reason for this problem? Could you please help me answer it? Thanks!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 01:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1820016#M32386</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-03-04T01:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1822569#M32572</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228916"&gt;@Fovery&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It does not make much sense to me.&lt;/P&gt;
&lt;P&gt;Have you found more information about the crash?&lt;/P&gt;
&lt;P&gt;Is the stuck in a loop somewhere?&lt;/P&gt;
&lt;P&gt;Do you have HardFault_Hnadler() inmplemented in the project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:31:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1822569#M32572</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-06T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1822951#M32603</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;Summarize the issues of this forum post:&lt;/P&gt;&lt;P&gt;[Problem phenomenon]&lt;BR /&gt;In the S32K344 project, I/DCache is enabled, but MPU_ENABLE is not defined. When running a pure algorithm (drone IMU algorithm, variables placed in SRAM) for about a few minutes to an hour, the MCU will enter an unknown crash state, as shown below: the LED light does not blink, Jlink cannot connect without hardware reset, and the MCU didn't entered NMI/MEM/Usage/Hardfaut interrupts (In these error interrupts will print backtrace info through the UART). At this crash status, only by resetting the MCU through the hardware reset pin, the MCU run again. But the problem site cannot be analyzed anymore. And the Ozone "Attach to Running Program" will retry to reset the MCU reset PIN to connect after it cannot&amp;nbsp; connected to the MCU in the unknown crash state.&lt;/P&gt;&lt;P&gt;[Problem fixing]&lt;BR /&gt;Only by adding the MPU_ENABLE macro definition in the S32DS project settings, multiple boards were tested for a week, there were no abnormal resets or crashes.&lt;/P&gt;&lt;P&gt;[My Doubt]&lt;BR /&gt;How to explain the reason for this problem, that S32K344 enter the unknown crash status without MPU_ENABLE.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 05:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1822951#M32603</guid>
      <dc:creator>Fovery</dc:creator>
      <dc:date>2024-03-07T05:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 with Jlink SWD debug, cannot connect Jlink when MCU crash</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1824237#M32710</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228916"&gt;@Fovery&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Refer to the Arm ® v7-M Architecture Reference Manual&lt;/P&gt;
&lt;P&gt;B3.5.2 Behavior when the MPU is disabled.&lt;/P&gt;
&lt;P&gt;And compare the default memory map and attributes to your MPU configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 14:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-with-Jlink-SWD-debug-cannot-connect-Jlink-when-MCU-crash/m-p/1824237#M32710</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-08T14:56:05Z</dc:date>
    </item>
  </channel>
</rss>

