<?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 S32K312 STCU2 Debugging Query in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1758888#M28721</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Currently, I am working on S32K312 SAF EVAL Package.&lt;SPAN&gt;&amp;nbsp;I am using S32K312EVB-Q172, PE Micro debugger and S32DS using RTD Build version&amp;nbsp;S32K3_RTD_3_0_0_P07_D2306_ASR_REL_4_7_REV_0000_20230629.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Target - Debug_FLASH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have a query related to STCU2 debugging.&lt;/P&gt;&lt;P&gt;After functional call of&amp;nbsp;Bist_Run(BIST_DIAGNOSTIC_CFG); PE Micro debugger getting disconnected. so, I am not able to see watch register.&lt;/P&gt;&lt;P&gt;I have query on below points.&lt;/P&gt;&lt;P&gt;1. Why PE micro debugger is getting disconnected after call of&amp;nbsp;Bist_Run(BIST_DIAGNOSTIC_CFG).&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. After disconnected the PE debugger, I observed software is reset and again start executing, tested with LED blinking. is it expected behavior?&lt;/P&gt;&lt;P&gt;3. Without Power off the hardware, after re-flashing then I check the status of FES register Bit ST_DONE found set. But STCU2 related register value is in default state. is it expected behavior?&lt;/P&gt;&lt;P&gt;4. According to S32K3 RM, FES register bit ST_DONE bit will be set post self-test. so, I am assuming STCU2 test is successfully done. is it expected behavior?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. After power on reset of hardware FES register value is 0.&lt;/P&gt;&lt;P&gt;6. How can I see the register status of STCU2. Because PE debugger getting disconnected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please see the below attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_0-1700206171246.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250366iAE58035BF1C162EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_0-1700206171246.png" alt="raj12_0-1700206171246.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="raj12_0-1700209917469.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250383i4660C9D6C5127142/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_0-1700209917469.png" alt="raj12_0-1700209917469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_1-1700206766052.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250370iF23866F7A96382FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_1-1700206766052.png" alt="raj12_1-1700206766052.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_2-1700206782058.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250371i87987F030EBAF052/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_2-1700206782058.png" alt="raj12_2-1700206782058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 12:32:46 GMT</pubDate>
    <dc:creator>raj12</dc:creator>
    <dc:date>2023-11-17T12:32:46Z</dc:date>
    <item>
      <title>S32K312 STCU2 Debugging Query</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1758888#M28721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Currently, I am working on S32K312 SAF EVAL Package.&lt;SPAN&gt;&amp;nbsp;I am using S32K312EVB-Q172, PE Micro debugger and S32DS using RTD Build version&amp;nbsp;S32K3_RTD_3_0_0_P07_D2306_ASR_REL_4_7_REV_0000_20230629.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Target - Debug_FLASH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have a query related to STCU2 debugging.&lt;/P&gt;&lt;P&gt;After functional call of&amp;nbsp;Bist_Run(BIST_DIAGNOSTIC_CFG); PE Micro debugger getting disconnected. so, I am not able to see watch register.&lt;/P&gt;&lt;P&gt;I have query on below points.&lt;/P&gt;&lt;P&gt;1. Why PE micro debugger is getting disconnected after call of&amp;nbsp;Bist_Run(BIST_DIAGNOSTIC_CFG).&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. After disconnected the PE debugger, I observed software is reset and again start executing, tested with LED blinking. is it expected behavior?&lt;/P&gt;&lt;P&gt;3. Without Power off the hardware, after re-flashing then I check the status of FES register Bit ST_DONE found set. But STCU2 related register value is in default state. is it expected behavior?&lt;/P&gt;&lt;P&gt;4. According to S32K3 RM, FES register bit ST_DONE bit will be set post self-test. so, I am assuming STCU2 test is successfully done. is it expected behavior?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. After power on reset of hardware FES register value is 0.&lt;/P&gt;&lt;P&gt;6. How can I see the register status of STCU2. Because PE debugger getting disconnected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please see the below attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_0-1700206171246.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250366iAE58035BF1C162EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_0-1700206171246.png" alt="raj12_0-1700206171246.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="raj12_0-1700209917469.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250383i4660C9D6C5127142/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_0-1700209917469.png" alt="raj12_0-1700209917469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_1-1700206766052.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250370iF23866F7A96382FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_1-1700206766052.png" alt="raj12_1-1700206766052.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_2-1700206782058.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250371i87987F030EBAF052/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_2-1700206782058.png" alt="raj12_2-1700206782058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 12:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1758888#M28721</guid>
      <dc:creator>raj12</dc:creator>
      <dc:date>2023-11-17T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 STCU2 Debugging Query</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1759783#M28773</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225347"&gt;@raj12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. Yes, system reset disconnects the debugger.&lt;/P&gt;
&lt;P&gt;2. Yes, it boots up again.&lt;/P&gt;
&lt;P&gt;3. The FES, DES register show the source of the latest reset. But the peripheral registers are reset. The RM specifies the reset value for each register.&lt;/P&gt;
&lt;P&gt;4. Yes&lt;/P&gt;
&lt;P&gt;5. After POR, you should see just DES[F_POR] = 1.&lt;/P&gt;
&lt;P&gt;6. The PE Micro debugger can be attach to the running MCU after the ST_DONE reset without a reset triggered by the debugger (FES[F_EXR]).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1700475832594.png" style="width: 552px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250643i125B9FF9019C5EEB/image-dimensions/552x429?v=v2" width="552" height="429" role="button" title="danielmartynek_0-1700475832594.png" alt="danielmartynek_0-1700475832594.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Mon, 20 Nov 2023 10:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1759783#M28773</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-20T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 STCU2 Debugging Query</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1760426#M28804</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your quick reply,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now my previous query got resolved after your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now I have another query related to STCU2.&lt;/P&gt;&lt;P&gt;1. I tried to insert fake fault of FCCU which is NCF_5. then while debugging observed ERR_STAT register bit 8 is in high state, FES register bit 4 ST_DONE in high state, NCF_S0 register bit 5 in high state, MBESW0 bit 1 to 5 in high state, MBSSW0 bit 1 to 5 is in high state. So, I am assuming BIST is functionally fine. is it expected behavior for NCF_5? please see the attachment.&lt;/P&gt;&lt;P&gt;2. For other FCCU NCFn (apart of NCF_5) any bit in ERR_STAT register why not in high state? apart of ERR_STAT other register of STCU2 is same as NCF_5 FCCU fault injection?&lt;/P&gt;&lt;P&gt;3. What is the co-relationship between NCF_5 (FCCU NCF_5) and STCU2, ERR_STAT register or STCU2? I tried to refer RM but unfortunately not able to be understood (55.8.3). please see the attachement.&lt;/P&gt;&lt;P&gt;4. After injection of FCCU NCF_5 error, called&amp;nbsp;Bist_GetExecStatus(BIST_DIAGNOSTIC_CFG), function then got BIST_FAILED. is it expected behavior for NCF_5? if yes then why?&lt;/P&gt;&lt;P&gt;5. But for other NCFn&amp;nbsp;called&amp;nbsp;Bist_GetExecStatus(BIST_DIAGNOSTIC_CFG), function then got BIST_OK. is it expected behavior for other NCFn (apart of NCF_5).? if yes then why?&lt;/P&gt;&lt;P&gt;6. Which NCF Fault we should need to inject for STCU2 fault checking? I am trying to run test procedure which is provided in S32K3XX_SAF_BIST_TS.pdf (Page number 14). I am attaching snapshot below kindly look onto that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_0-1700547291077.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250777iD0995C36BDFF0EB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_0-1700547291077.png" alt="raj12_0-1700547291077.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="raj12_1-1700547320324.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250778i8E6CB71CBD2B256A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_1-1700547320324.png" alt="raj12_1-1700547320324.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="raj12_2-1700547340519.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250779i750E8C50C670F427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_2-1700547340519.png" alt="raj12_2-1700547340519.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raj12_3-1700547360959.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250780iDEA86208503B4C07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_3-1700547360959.png" alt="raj12_3-1700547360959.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="raj12_5-1700547433769.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250782iC3CF6997D757BBFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raj12_5-1700547433769.png" alt="raj12_5-1700547433769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am looking forward for your reply.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 06:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1760426#M28804</guid>
      <dc:creator>raj12</dc:creator>
      <dc:date>2023-11-21T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 STCU2 Debugging Query</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1760607#M28811</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225347"&gt;@raj12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;These are completely different questions.&lt;/P&gt;
&lt;P&gt;Please create a new thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 09:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-STCU2-Debugging-Query/m-p/1760607#M28811</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-21T09:13:20Z</dc:date>
    </item>
  </channel>
</rss>

