<?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中的主题 Re: Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
    <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413314#M60996</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/263979"&gt;@Yash2530&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I performed a reference test using an S32K3X8EVB-Q289 and the on-board PEmicro debugger connected through J55.&lt;/P&gt;
&lt;P&gt;In my test, the first CRC verification also reported a mismatch because the existing flash content was different from the application being downloaded. However, the programming sequence then continued with flash erase and programming.&amp;nbsp;&lt;SPAN&gt;Therefore, the initial CRC mismatch is not necessarily the root cause and does not, by itself, confirm that Secure Debug is enabled.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The important difference is that, in the log you provided, the debug session terminates immediately after the first VC command. I do not see the subsequent EM and PM commands for erasing and programming the flash.&lt;/P&gt;
&lt;P&gt;Please check the PEmicro debug launch configuration, particularly whether downloading the executable and flash programming are enabled. Please also provide the complete PEmicro log from the beginning of the session. The beginning of the log should show the CM command and the selected .arp flash algorithm.&lt;/P&gt;
&lt;P&gt;For reference, my successful test used the following algorithm for an HSE-disabled device:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_0-1789370094591.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/396313i483145835CCC67D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_0-1789370094591.png" alt="PavelL_0-1789370094591.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PavelL_0-1789370094591.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Please verify that the algorithm selected in your configuration corresponds to the actual state of your S32K358 device, for example HSE-disabled or HSE-enabled.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;BTW, please create a new thread next time - we actively tracked community threads only 7 days after last answer.&amp;nbsp;I only receive subscription emails for updates and those can occasionally be missed.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2026 07:19:37 GMT</pubDate>
    <dc:creator>PavelL</dc:creator>
    <dc:date>2026-09-14T07:19:37Z</dc:date>
    <item>
      <title>Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
      <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2384026#M59406</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;I am currently using the S32K3X8EVB-Q289 evaluation board and have developed a custom hardware design based on the S32K358 MCU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please clarify:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Is programming/debugging an external S32K358 target using the EVB's on-board debugger officially supported?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If supported, what jumper settings or hardware modifications are required on the EVB?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Which debug connector should be used for this purpose?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Are there any limitations compared to using an S32 Debug Probe ?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there any documentation or application note describing this configuration?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your support.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Yash Gupta&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 09:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2384026#M59406</guid>
      <dc:creator>Yash2530</dc:creator>
      <dc:date>2026-06-22T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
      <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2384177#M59416</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/263979"&gt;@Yash2530&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Yes, using the S32K3X8EVB-Q289 on-board debugger to program/debug an external S32K358 target is supported. Actually, the EVB’s on-board OpenSDA debugger uses a P&amp;amp;E Micro-developed bootloader/debug application&amp;nbsp;-&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/Which-debugging-interface-is-better/m-p/1715877" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/Which-debugging-interface-is-better/m-p/1715877&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;No soldering rework or jumper setting is required on the EVB for this use case.&lt;/P&gt;
&lt;P&gt;3. J55&amp;nbsp;USB host connector.&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;In practice, for standard flashing and source-level debug of an external S32K358 target, the EVB’s on-board debugger should be sufficient. Since I don't know what feature is important to you, please compare features by yourself:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/automotive-software-and-tools/s32-design-studio-ide/s32-debugger-for-s32-platform:S32DBG-S32PLATFORM" target="_blank"&gt;https://www.nxp.com/design/design-center/software/automotive-software-and-tools/s32-design-studio-ide/s32-debugger-for-s32-platform:S32DBG-S32PLATFORM&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320180&amp;amp;productTab=5045" target="_blank"&gt;https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320180&amp;amp;productTab=5045&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;5. Yes,&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K3X8EVB-Q289HWUM" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=S32K3X8EVB-Q289HWUM&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 13:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2384177#M59416</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2026-06-22T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
      <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413134#M60986</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233505"&gt;@PavelL&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Got this error while trying to program my external controller.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;CMD&amp;gt;VC&lt;BR /&gt;Verifying object file CRC-16 to device ranges ...&lt;BR /&gt;block 00400000-0042F4B7 ...&lt;BR /&gt;Calculated CRC-16 does not match block. (File = $A9EE, Device = $EDEF)&lt;BR /&gt;Error verifying flash of device&lt;BR /&gt;Error occured during Flash programming.&lt;BR /&gt;INFO: DAP IDCODE = 0x6BA02477&lt;BR /&gt;INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000000&lt;BR /&gt;&lt;BR /&gt;Starting reset script (C:\NXP\S32DS.3.6.7\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.1.8.202603121731\supportFiles_ARM\NXP\S32K3xx\S32K358.mac) ...&lt;BR /&gt;REM Enable clocks for selected cores in MC_ME module&lt;BR /&gt;Delaying for 200mS ...&lt;BR /&gt;Done.&lt;BR /&gt;REM Initialize RAM and DMA:&lt;BR /&gt;REM Initialize DMA TCD:&lt;BR /&gt;REM Copy valid executable code to RAM for each core to be used.&lt;BR /&gt;REM Enable required cores in MC_ME:&lt;BR /&gt;Delaying for 20mS ...&lt;BR /&gt;Done.&lt;BR /&gt;Delaying for 20mS ...&lt;BR /&gt;Done.&lt;BR /&gt;&lt;BR /&gt;Reset script (C:\NXP\S32DS.3.6.7\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.1.8.202603121731\supportFiles_ARM\NXP\S32K3xx\S32K358.mac) completed.&lt;/P&gt;&lt;P&gt;PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.&lt;/P&gt;&lt;P&gt;PE-ERROR: Error downloading to the device. Terminating debug session.&lt;BR /&gt;Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "53100" from 6224&lt;BR /&gt;PE-ERROR: Error : Attempted to send response but connection already closed.&lt;BR /&gt;Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "53104" from 7224&lt;BR /&gt;INFO: DAP IDCODE = 0x6BA02477&lt;BR /&gt;Target Disconnected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yash2530_0-1789183717483.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/396302iAC3638437EF90035/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yash2530_0-1789183717483.jpeg" alt="Yash2530_0-1789183717483.jpeg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Yash2530_0-1789183717483.jpeg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Please help me resolve these.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Yash Gupta&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2026 03:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413134#M60986</guid>
      <dc:creator>Yash2530</dc:creator>
      <dc:date>2026-09-12T03:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
      <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413314#M60996</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/263979"&gt;@Yash2530&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I performed a reference test using an S32K3X8EVB-Q289 and the on-board PEmicro debugger connected through J55.&lt;/P&gt;
&lt;P&gt;In my test, the first CRC verification also reported a mismatch because the existing flash content was different from the application being downloaded. However, the programming sequence then continued with flash erase and programming.&amp;nbsp;&lt;SPAN&gt;Therefore, the initial CRC mismatch is not necessarily the root cause and does not, by itself, confirm that Secure Debug is enabled.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The important difference is that, in the log you provided, the debug session terminates immediately after the first VC command. I do not see the subsequent EM and PM commands for erasing and programming the flash.&lt;/P&gt;
&lt;P&gt;Please check the PEmicro debug launch configuration, particularly whether downloading the executable and flash programming are enabled. Please also provide the complete PEmicro log from the beginning of the session. The beginning of the log should show the CM command and the selected .arp flash algorithm.&lt;/P&gt;
&lt;P&gt;For reference, my successful test used the following algorithm for an HSE-disabled device:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_0-1789370094591.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/396313i483145835CCC67D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_0-1789370094591.png" alt="PavelL_0-1789370094591.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PavelL_0-1789370094591.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Please verify that the algorithm selected in your configuration corresponds to the actual state of your S32K358 device, for example HSE-disabled or HSE-enabled.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;BTW, please create a new thread next time - we actively tracked community threads only 7 days after last answer.&amp;nbsp;I only receive subscription emails for updates and those can occasionally be missed.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2026 07:19:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413314#M60996</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2026-09-14T07:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using S32K3X8EVB-Q289 On-Board Debugger to Program a Custom S32K358 Target</title>
      <link>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413436#M61003</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233505"&gt;@PavelL&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I have programmed the device issue was with the Reset pin of JTAG conflicting with Onboard MCU and Target board MCU. So I isolated reset pin from JTAG RESET pin and programming works. Now only issue I have to reset the mcu manually.&lt;BR /&gt;Have you also used a custom target along with EVK board jtag( J50 &amp;amp; J55(usb)) connectors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yash Gupta&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2026 15:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-S32K3X8EVB-Q289-On-Board-Debugger-to-Program-a-Custom/m-p/2413436#M61003</guid>
      <dc:creator>Yash2530</dc:creator>
      <dc:date>2026-09-14T15:42:56Z</dc:date>
    </item>
  </channel>
</rss>

