<?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 - Bus fault when Reading Secure Debug Password in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2408743#M60713</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On the S32K312, I'm trying to activate the Secure Debug feature using a routine in my embeded software&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is doing the following :&lt;/P&gt;&lt;P&gt;- Read Secure debug Password (&lt;SPAN&gt;CUST_DB_PSWD_A&amp;nbsp;@ UTEST 0x1B00 0080)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- if the Password is not set (all bytes&amp;nbsp;@&amp;nbsp;0xFF), program it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm observing is that when the device is in Lifecycle CUST_DEL, this code is working correctly.&lt;BR /&gt;However, when the lifecycle is advanced to either OEM_PROD or IN_FIELD, reading&amp;nbsp; the&amp;nbsp;&lt;SPAN&gt;CUST_DB_PSWD_A triggers a bus fault exception.&lt;BR /&gt;&lt;BR /&gt;I was not able to identify in the reference Manual that this was the expected behavior.&lt;BR /&gt;Is this normal ?&lt;BR /&gt;And if yes, how can the embedded code check if a custom secure Debug password is programmed or not, without trigerring an exception ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2026 08:41:04 GMT</pubDate>
    <dc:creator>Bijam</dc:creator>
    <dc:date>2026-08-27T08:41:04Z</dc:date>
    <item>
      <title>S32K312 - Bus fault when Reading Secure Debug Password</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2408743#M60713</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On the S32K312, I'm trying to activate the Secure Debug feature using a routine in my embeded software&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is doing the following :&lt;/P&gt;&lt;P&gt;- Read Secure debug Password (&lt;SPAN&gt;CUST_DB_PSWD_A&amp;nbsp;@ UTEST 0x1B00 0080)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- if the Password is not set (all bytes&amp;nbsp;@&amp;nbsp;0xFF), program it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm observing is that when the device is in Lifecycle CUST_DEL, this code is working correctly.&lt;BR /&gt;However, when the lifecycle is advanced to either OEM_PROD or IN_FIELD, reading&amp;nbsp; the&amp;nbsp;&lt;SPAN&gt;CUST_DB_PSWD_A triggers a bus fault exception.&lt;BR /&gt;&lt;BR /&gt;I was not able to identify in the reference Manual that this was the expected behavior.&lt;BR /&gt;Is this normal ?&lt;BR /&gt;And if yes, how can the embedded code check if a custom secure Debug password is programmed or not, without trigerring an exception ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 08:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2408743#M60713</guid>
      <dc:creator>Bijam</dc:creator>
      <dc:date>2026-08-27T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 - Bus fault when Reading Secure Debug Password</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2408985#M60725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/9029"&gt;@Bijam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the Lifecycle (LC) has already been advanced, there is no need to verify whether the password has been programmed.&lt;/P&gt;
&lt;P&gt;Whether HSE firmware is used or not, secure debug access can only be enabled after the debug password has been configured and the device LC has been advanced. The LC cannot be advanced unless the password has already been programmed.&lt;/P&gt;
&lt;P&gt;If you still need to confirm that the password is present, the best approach is to check the current LC state first. Only attempt to read/program CUST_DB_PSWD_A when the MCU is in CUST_DEL. If the MCU is already in OEM_PROD or IN_FIELD, skip the password verification entirely. The password must already be programmed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 18:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2408985#M60725</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-08-27T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 - Bus fault when Reading Secure Debug Password</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2409530#M60759</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/35818"&gt;@Valval&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm assuming I can read the current LC state using the register "LC and LC Control (DCMLCC)".&lt;BR /&gt;There are two fields inside this register: "DCMRLC -&amp;nbsp;Real LC" and "DCMCLC -&amp;nbsp;Current LC".&lt;BR /&gt;What is the difference betwen both field ? I don't really understand what "Real LC" means.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2026 06:57:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2409530#M60759</guid>
      <dc:creator>Bijam</dc:creator>
      <dc:date>2026-08-31T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 - Bus fault when Reading Secure Debug Password</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2409746#M60782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/9029"&gt;@Bijam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your understanding is correct. The LC can be read from the DCMRLC and DCMCLC fields.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DCMRLC (Real LC) reflects the actual LC value stored in the UTEST memory.&lt;/LI&gt;
&lt;LI&gt;DCMCLC (Current LC) represents a combination of the real LC and any simulated LC:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_0-1788192004223.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395634iA2D0342FAE291FE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_0-1788192004223.png" alt="VaneB_0-1788192004223.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;VaneB_0-1788192004223.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_1-1788192011054.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395635i9429677C1580B3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_1-1788192011054.png" alt="VaneB_1-1788192011054.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;VaneB_1-1788192011054.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For example, if a simulated LC advancement is performed to the HSE_LC_SIMULATED_IN_FIELD stage, the DCMRLC (Real LC) should remain CUST_DEL, while the DCMCLC (Current LC) would report IN_FIELD. After a reset, the simulated state is cleared, and both fields should again indicate CUST_DEL.&lt;/P&gt;
&lt;P&gt;If simulated LC advancement is not used, DCMRLC and DCMCLC should always report the same value.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2026 16:01:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Bus-fault-when-Reading-Secure-Debug-Password/m-p/2409746#M60782</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-08-31T16:01:23Z</dc:date>
    </item>
  </channel>
</rss>

