<?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 S32N55 HSE2 — CRS(APP) Domain Secure Debug Authentication using ADKP in S32G</title>
    <link>https://community.nxp.com/t5/S32G/S32N55-HSE2-CRS-APP-Domain-Secure-Debug-Authentication-using/m-p/2387055#M16491</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are working on Secure Debug authentication for the S32N55 platform and have successfully implemented FSS domain debug authorization using ADKP (HSE_OTP_FOEM_ADKP_ATTR_ID) via SDC-600.&lt;/P&gt;&lt;P&gt;We are now trying to extend this to the CRS domain (HSE_DEBUG_DOMAIN_APP = 0x1B) and have the following questions:&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q1] Is ADKP usable for CRS domain Secure Debug authentication?&lt;/P&gt;&lt;P&gt;After provisioning ADKP via HSE_OTP_FOEM_ADKP_ATTR_ID, is it possible to use the same ADKP for CRS domain (APP) Secure Debug authentication via HSE_DEBUG_CMD_APP_CHALLENGE?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q2] Does SetOwnerDebugKeyMap() need to be called separately per MU (FSS MU vs CRS MU)?&lt;/P&gt;&lt;P&gt;Per the RM description of hseOwnerDebugKeyMapConfig_t:&lt;BR /&gt;"This service is called for each installed device owner individually from an owning MU.&lt;BR /&gt;HSE FW assumes the owner identity based on the MU this service request is sent to."&lt;/P&gt;&lt;P&gt;Our current implementation calls SetOwnerDebugKeyMap() (HSE_SRV_ID_DEBUG_KEY_MAPPING) only through FSS MU (MU0), mapping aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP.&lt;/P&gt;&lt;P&gt;- Is a separate SetOwnerDebugKeyMap() call required through the CRS MU for CRS domain authentication?&lt;BR /&gt;- If so, which MU number should be used for the CRS domain on S32N55?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q3] Does SetOwnerDebugKeyMap() need to be called on every boot?&lt;/P&gt;&lt;P&gt;The RM states:&lt;BR /&gt;"Only the numOfAuthorizationRefEntries and numOfAuthenticationRefEntries are logged,&lt;BR /&gt;rest of the entries are ignored."&lt;/P&gt;&lt;P&gt;This implies the key mapping is volatile and not stored in NVM. Does this mean SetOwnerDebugKeyMap() must be called on every boot (after SU rights are granted) for both FSS and CRS domains?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q4] Correct keyRef value for APP_CHALLENGE&lt;/P&gt;&lt;P&gt;In hseDebugAuthorizeStartCmd_t, the keyRef field references the index mapped via hseOwnerDebugKeyMapConfig_t. Since we map aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP, we send keyRef = 0x00 for CRS domain authentication. Is this correct?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q5] Response size and packet structure for APP_CHALLENGE&lt;/P&gt;&lt;P&gt;Per hseDebugAuthorizeProofProvCmd_t byte map, the packet structure is always 32 bytes (2 packets x 8 words). HSE_CR_APP_RESPONSE_SIZE = 16U vs HSE_CR_FSS_OR_HSE_RESPONSE_SIZE = 32U.&lt;/P&gt;&lt;P&gt;For APP_CHALLENGE, should the host send:&lt;BR /&gt;- 16 bytes of AES-encrypted response + 16 bytes of zero padding = 32 bytes total?&lt;BR /&gt;- Or only 16 bytes?&lt;/P&gt;&lt;P&gt;Currently, after sending FLAG_START + DebugSignalMap(4 bytes) + Response(16 bytes) + FLAG_END, HSE2 does not respond and T32 hangs waiting indefinitely. When we send 32 bytes (16-byte response + 16-byte zero padding), we observe the same hang.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;For reference:&lt;BR /&gt;- Sherpa_Cdd_AllocateChannel() always allocates MU0 (FSS)&lt;BR /&gt;- SetOwnerDebugKeyMap(): aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP (0x00000302), called with SU rights&lt;BR /&gt;- crs_auth.cmm: DEBUG_TARGET=0x1B, OID=0xFF*16, keyRef=0x00&lt;BR /&gt;- AUTH_MODE_REQ passes successfully (HSE_DEBUG_WAITING_RESPONSE_TO_CHG received)&lt;BR /&gt;- Challenge received: 32 bytes&lt;BR /&gt;- After sending Response, no ACK (0x4A4A4A4A) received from HSE2&lt;/P&gt;&lt;P&gt;Please see the attached CMM script and log for reference.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2026 13:05:55 GMT</pubDate>
    <dc:creator>EddiePark</dc:creator>
    <dc:date>2026-06-26T13:05:55Z</dc:date>
    <item>
      <title>S32N55 HSE2 — CRS(APP) Domain Secure Debug Authentication using ADKP</title>
      <link>https://community.nxp.com/t5/S32G/S32N55-HSE2-CRS-APP-Domain-Secure-Debug-Authentication-using/m-p/2387055#M16491</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are working on Secure Debug authentication for the S32N55 platform and have successfully implemented FSS domain debug authorization using ADKP (HSE_OTP_FOEM_ADKP_ATTR_ID) via SDC-600.&lt;/P&gt;&lt;P&gt;We are now trying to extend this to the CRS domain (HSE_DEBUG_DOMAIN_APP = 0x1B) and have the following questions:&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q1] Is ADKP usable for CRS domain Secure Debug authentication?&lt;/P&gt;&lt;P&gt;After provisioning ADKP via HSE_OTP_FOEM_ADKP_ATTR_ID, is it possible to use the same ADKP for CRS domain (APP) Secure Debug authentication via HSE_DEBUG_CMD_APP_CHALLENGE?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q2] Does SetOwnerDebugKeyMap() need to be called separately per MU (FSS MU vs CRS MU)?&lt;/P&gt;&lt;P&gt;Per the RM description of hseOwnerDebugKeyMapConfig_t:&lt;BR /&gt;"This service is called for each installed device owner individually from an owning MU.&lt;BR /&gt;HSE FW assumes the owner identity based on the MU this service request is sent to."&lt;/P&gt;&lt;P&gt;Our current implementation calls SetOwnerDebugKeyMap() (HSE_SRV_ID_DEBUG_KEY_MAPPING) only through FSS MU (MU0), mapping aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP.&lt;/P&gt;&lt;P&gt;- Is a separate SetOwnerDebugKeyMap() call required through the CRS MU for CRS domain authentication?&lt;BR /&gt;- If so, which MU number should be used for the CRS domain on S32N55?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q3] Does SetOwnerDebugKeyMap() need to be called on every boot?&lt;/P&gt;&lt;P&gt;The RM states:&lt;BR /&gt;"Only the numOfAuthorizationRefEntries and numOfAuthenticationRefEntries are logged,&lt;BR /&gt;rest of the entries are ignored."&lt;/P&gt;&lt;P&gt;This implies the key mapping is volatile and not stored in NVM. Does this mean SetOwnerDebugKeyMap() must be called on every boot (after SU rights are granted) for both FSS and CRS domains?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q4] Correct keyRef value for APP_CHALLENGE&lt;/P&gt;&lt;P&gt;In hseDebugAuthorizeStartCmd_t, the keyRef field references the index mapped via hseOwnerDebugKeyMapConfig_t. Since we map aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP, we send keyRef = 0x00 for CRS domain authentication. Is this correct?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;[Q5] Response size and packet structure for APP_CHALLENGE&lt;/P&gt;&lt;P&gt;Per hseDebugAuthorizeProofProvCmd_t byte map, the packet structure is always 32 bytes (2 packets x 8 words). HSE_CR_APP_RESPONSE_SIZE = 16U vs HSE_CR_FSS_OR_HSE_RESPONSE_SIZE = 32U.&lt;/P&gt;&lt;P&gt;For APP_CHALLENGE, should the host send:&lt;BR /&gt;- 16 bytes of AES-encrypted response + 16 bytes of zero padding = 32 bytes total?&lt;BR /&gt;- Or only 16 bytes?&lt;/P&gt;&lt;P&gt;Currently, after sending FLAG_START + DebugSignalMap(4 bytes) + Response(16 bytes) + FLAG_END, HSE2 does not respond and T32 hangs waiting indefinitely. When we send 32 bytes (16-byte response + 16-byte zero padding), we observe the same hang.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;For reference:&lt;BR /&gt;- Sherpa_Cdd_AllocateChannel() always allocates MU0 (FSS)&lt;BR /&gt;- SetOwnerDebugKeyMap(): aOwnerAuthRef[0] = HSE_OTP_KEY_FOEM_ADKP (0x00000302), called with SU rights&lt;BR /&gt;- crs_auth.cmm: DEBUG_TARGET=0x1B, OID=0xFF*16, keyRef=0x00&lt;BR /&gt;- AUTH_MODE_REQ passes successfully (HSE_DEBUG_WAITING_RESPONSE_TO_CHG received)&lt;BR /&gt;- Challenge received: 32 bytes&lt;BR /&gt;- After sending Response, no ACK (0x4A4A4A4A) received from HSE2&lt;/P&gt;&lt;P&gt;Please see the attached CMM script and log for reference.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2026 13:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32N55-HSE2-CRS-APP-Domain-Secure-Debug-Authentication-using/m-p/2387055#M16491</guid>
      <dc:creator>EddiePark</dc:creator>
      <dc:date>2026-06-26T13:05:55Z</dc:date>
    </item>
  </channel>
</rss>

