<?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のトピックDebug multicore S32K358 with TRACE32</title>
    <link>https://community.nxp.com/t5/S32K/Debug-multicore-S32K358-with-TRACE32/m-p/2328499#M57184</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Currently, I am trying to debug the S32K358 multicore system using Trace32. I have already launched both cores (CM7‑0 and CM7‑2) , but when core 2 start_Os, then change from unprivileged mode privileged mode by call svc #0, the program cannot run and not raise any fault as well (Current use GCC compiler)&lt;/P&gt;&lt;P&gt;Could you please help explain the reason for this behavior?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 08 Mar 2026 11:03:37 GMT</pubDate>
    <dc:creator>TinNxp</dc:creator>
    <dc:date>2026-03-08T11:03:37Z</dc:date>
    <item>
      <title>Debug multicore S32K358 with TRACE32</title>
      <link>https://community.nxp.com/t5/S32K/Debug-multicore-S32K358-with-TRACE32/m-p/2328499#M57184</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Currently, I am trying to debug the S32K358 multicore system using Trace32. I have already launched both cores (CM7‑0 and CM7‑2) , but when core 2 start_Os, then change from unprivileged mode privileged mode by call svc #0, the program cannot run and not raise any fault as well (Current use GCC compiler)&lt;/P&gt;&lt;P&gt;Could you please help explain the reason for this behavior?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 Mar 2026 11:03:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debug-multicore-S32K358-with-TRACE32/m-p/2328499#M57184</guid>
      <dc:creator>TinNxp</dc:creator>
      <dc:date>2026-03-08T11:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Debug multicore S32K358 with TRACE32</title>
      <link>https://community.nxp.com/t5/S32K/Debug-multicore-S32K358-with-TRACE32/m-p/2329263#M57207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256732"&gt;@TinNxp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There was a similar issue discussed in this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/FreeRTOS-stuck-at-quot-svc-0-quot-in-function-of/m-p/1641853" target="_blank"&gt;Re: FreeRTOS stuck at "svc 0" in function of prvPortStartFirstTask in debug mode - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Here is the solution:&lt;/P&gt;
&lt;P&gt;"The root cause of the issue is that RTD and FreeRTOS are both using SVC for different needs.&lt;/P&gt;
&lt;P&gt;FreeRTOS uses SVC 0 only to start the first task, and does not use it after&lt;/P&gt;
&lt;P&gt;RTD use SVC to switch between privileged and user modes.&lt;/P&gt;
&lt;P&gt;The first issue is they both implement an SVC Isr handler, and both use SVC 0.&lt;/P&gt;
&lt;P&gt;The cleanest way to solve the issue is to merge the two SVC Isr handler into one that serves all SVC interrupts, and to change the FreeRTOS to use an SVC Id not used by RTD (RTD use SVC number 0 to 3).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The easiest work around can be to undefine&amp;nbsp;&lt;SPAN&gt;MCAL_ENABLE_USER_MODE_SUPPORT. In this case, RTD do not use SVC anymore, but the whole software is run in privileged mode.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Maybe try this solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this still does not work, try doing a single-core project to rule out any multicore issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 21:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debug-multicore-S32K358-with-TRACE32/m-p/2329263#M57207</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2026-03-09T21:04:03Z</dc:date>
    </item>
  </channel>
</rss>

