[URGENT] S32N55 Secure Debug Implementation - SDAF volkano.exe Issue and HSE2 FW RM Request

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[URGENT] S32N55 Secure Debug Implementation - SDAF volkano.exe Issue and HSE2 FW RM Request

Jump to solution
686 Views
EddiePark
Contributor IV

Dear NXP Support Team,

I am currently working on a customer project involving the S32N55 platform with a tight delivery schedule, and I urgently need your support on the following topics related to Secure Debug implementation. Your prompt response would be greatly appreciated.

---

[Topic 1] SDAF volkano.exe - Unable to load crypto library

Environment:
- TRACE32 Package: trace32_n_2026_04_000189919_nxp_s32n55_conf
- SDAF Version: 1.1.0 RTM
- Host OS: Windows 10 x64

Symptom:
All volkano.exe commands (e.g. generate_wrapkey, discover) fail with the following error:
**error** Unable to load crypto library

Steps already taken:
- Copied libeay32.dll and ssleay32.dll (OpenSSL 1.0.2s Win64) into the sdaf folder
- Confirmed VC++ 2017 Redistributable (14.16.27052) is already installed
- Confirmed volkano.exe is a 64-bit binary

Questions:
1. Are there any additional DLLs or middleware required to run volkano.exe?
2. Is a physical SmartCard and card reader mandatory for volkano.exe to function?
3. If a SmartCard is required, could you please advise on the compatible SmartCard model and the middleware installation procedure?
4. Is there a way to use volkano.exe in local storage mode without a SmartCard for development purposes?

---

[Topic 2] Secure Debug Implementation - ADKP Provisioning and Challenge/Response Flow

For our customer project, we are implementing Secure Debug for the S32N55 in OEM_CLOSED lifecycle using the FSS debug domain with Challenge/Response (C/R) authorization mode (HSE_OWNER_DEBUG_AUTH_CR, default mode).

Our current understanding of the flow is as follows:
1. Provision ADKP (32-byte symmetric secret) into OTP fuses via HSE2 SetAttribute (HSE_OTP_FOEM_ADKP_ATTR_ID)
2. Advance lifecycle to OEM_CLOSED
3. At debug time, TRACE32 reads UID and 256-bit Challenge via CHIP.SecureChallenge()
4. volkano.exe computes the Response using the provisioned ADKP
5. TRACE32 connects via SYStem.Option KEYCODE

Questions:
1. Could you confirm that the above flow is correct for S32N55 FSS Secure Debug?
2. What is the exact cryptographic algorithm used to compute the C/R Response from the ADKP and Challenge? (e.g. AES-ECB)
3. Is there any additional configuration required beyond ADKP provisioning (e.g. FOEM_Debug_Auth_Mode fuse setting) to enable C/R mode?
4. Is the MCK (HSE_OTP_FOEM_MCK_ATTR_ID) required for Secure Debug?
5. Could you please share the HSE2 Firmware Reference Manual for S32N55, specifically the chapter covering the Secure Debug Challenge/Response algorithm and ADKP provisioning details? We understand that the C/R Response calculation algorithm may be documented in the HSE-H/M RM (as in the case of S32G2), but we are not certain whether the same algorithm applies to S32N55 HSE2. Clarification on this point would also be greatly appreciated.

This is a critical blocker for our customer project delivery. We would greatly appreciate a response at your earliest convenience.

Best regards,
Eddie Park

0 Kudos
Reply
1 Solution
610 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @EddiePark,

Thanks for reaching out to us. I understand the urgency of your questions, and thus I want to make it clear that I won't be able to help you with everything regarding the S32N55, since it is a pre-production chip,  in the NXP community we can only help you with fully launched products. You can contact your NXP representative/distributor for closer help on this topic.

Furthermore, I do not know the procedure to secure debug with TRACE32, I can share this post which describes how to do it with S32 Design Studio. However, for the S32N55 the steps may differ a bit since it is quite a newer chip, I cannot offer you definitive information as I mentioned above. You can also check this other conversation, which has a similar topic.

For better support on how to do it in TRACE32 I would recommend you to contact lauterbach in parallel. 

 

Please note that I cannot test the ADKP functionality since I am not authorized to modify any OTP configuration of the test boards we have.

 

Let me know if I can help you with anything else.

View solution in original post

0 Kudos
Reply
1 Reply
611 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @EddiePark,

Thanks for reaching out to us. I understand the urgency of your questions, and thus I want to make it clear that I won't be able to help you with everything regarding the S32N55, since it is a pre-production chip,  in the NXP community we can only help you with fully launched products. You can contact your NXP representative/distributor for closer help on this topic.

Furthermore, I do not know the procedure to secure debug with TRACE32, I can share this post which describes how to do it with S32 Design Studio. However, for the S32N55 the steps may differ a bit since it is quite a newer chip, I cannot offer you definitive information as I mentioned above. You can also check this other conversation, which has a similar topic.

For better support on how to do it in TRACE32 I would recommend you to contact lauterbach in parallel. 

 

Please note that I cannot test the ADKP functionality since I am not authorized to modify any OTP configuration of the test boards we have.

 

Let me know if I can help you with anything else.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2359843%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BURGENT%5D%20S32N55%20Secure%20Debug%20Implementation%20-%20SDAF%20volkano.exe%20Issue%20and%20HSE2%20FW%20RM%20Request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359843%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%20Support%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20on%20a%20customer%20project%20involving%20the%20S32N55%20platform%20with%20a%20tight%20delivery%20schedule%2C%20and%20I%20urgently%20need%20your%20support%20on%20the%20following%20topics%20related%20to%20Secure%20Debug%20implementation.%20Your%20prompt%20response%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E---%3C%2FP%3E%3CP%3E%5BTopic%201%5D%20SDAF%20volkano.exe%20-%20Unable%20to%20load%20crypto%20library%3C%2FP%3E%3CP%3EEnvironment%3A%3CBR%20%2F%3E-%20TRACE32%20Package%3A%20trace32_n_2026_04_000189919_nxp_s32n55_conf%3CBR%20%2F%3E-%20SDAF%20Version%3A%201.1.0%20RTM%3CBR%20%2F%3E-%20Host%20OS%3A%20Windows%2010%20x64%3C%2FP%3E%3CP%3ESymptom%3A%3CBR%20%2F%3EAll%20volkano.exe%20commands%20(e.g.%20generate_wrapkey%2C%20discover)%20fail%20with%20the%20following%20error%3A%3CBR%20%2F%3E**error**%20Unable%20to%20load%20crypto%20library%3C%2FP%3E%3CP%3ESteps%20already%20taken%3A%3CBR%20%2F%3E-%20Copied%20libeay32.dll%20and%20ssleay32.dll%20(OpenSSL%201.0.2s%20Win64)%20into%20the%20sdaf%20folder%3CBR%20%2F%3E-%20Confirmed%20VC%2B%2B%202017%20Redistributable%20(14.16.27052)%20is%20already%20installed%3CBR%20%2F%3E-%20Confirmed%20volkano.exe%20is%20a%2064-bit%20binary%3C%2FP%3E%3CP%3EQuestions%3A%3CBR%20%2F%3E1.%20Are%20there%20any%20additional%20DLLs%20or%20middleware%20required%20to%20run%20volkano.exe%3F%3CBR%20%2F%3E2.%20Is%20a%20physical%20SmartCard%20and%20card%20reader%20mandatory%20for%20volkano.exe%20to%20function%3F%3CBR%20%2F%3E3.%20If%20a%20SmartCard%20is%20required%2C%20could%20you%20please%20advise%20on%20the%20compatible%20SmartCard%20model%20and%20the%20middleware%20installation%20procedure%3F%3CBR%20%2F%3E4.%20Is%20there%20a%20way%20to%20use%20volkano.exe%20in%20local%20storage%20mode%20without%20a%20SmartCard%20for%20development%20purposes%3F%3C%2FP%3E%3CP%3E---%3C%2FP%3E%3CP%3E%5BTopic%202%5D%20Secure%20Debug%20Implementation%20-%20ADKP%20Provisioning%20and%20Challenge%2FResponse%20Flow%3C%2FP%3E%3CP%3EFor%20our%20customer%20project%2C%20we%20are%20implementing%20Secure%20Debug%20for%20the%20S32N55%20in%20OEM_CLOSED%20lifecycle%20using%20the%20FSS%20debug%20domain%20with%20Challenge%2FResponse%20(C%2FR)%20authorization%20mode%20(HSE_OWNER_DEBUG_AUTH_CR%2C%20default%20mode).%3C%2FP%3E%3CP%3EOur%20current%20understanding%20of%20the%20flow%20is%20as%20follows%3A%3CBR%20%2F%3E1.%20Provision%20ADKP%20(32-byte%20symmetric%20secret)%20into%20OTP%20fuses%20via%20HSE2%20SetAttribute%20(HSE_OTP_FOEM_ADKP_ATTR_ID)%3CBR%20%2F%3E2.%20Advance%20lifecycle%20to%20OEM_CLOSED%3CBR%20%2F%3E3.%20At%20debug%20time%2C%20TRACE32%20reads%20UID%20and%20256-bit%20Challenge%20via%20CHIP.SecureChallenge()%3CBR%20%2F%3E4.%20volkano.exe%20computes%20the%20Response%20using%20the%20provisioned%20ADKP%3CBR%20%2F%3E5.%20TRACE32%20connects%20via%20SYStem.Option%20KEYCODE%3C%2FP%3E%3CP%3EQuestions%3A%3CBR%20%2F%3E1.%20Could%20you%20confirm%20that%20the%20above%20flow%20is%20correct%20for%20S32N55%20FSS%20Secure%20Debug%3F%3CBR%20%2F%3E2.%20What%20is%20the%20exact%20cryptographic%20algorithm%20used%20to%20compute%20the%20C%2FR%20Response%20from%20the%20ADKP%20and%20Challenge%3F%20(e.g.%20AES-ECB)%3CBR%20%2F%3E3.%20Is%20there%20any%20additional%20configuration%20required%20beyond%20ADKP%20provisioning%20(e.g.%20FOEM_Debug_Auth_Mode%20fuse%20setting)%20to%20enable%20C%2FR%20mode%3F%3CBR%20%2F%3E4.%20Is%20the%20MCK%20(HSE_OTP_FOEM_MCK_ATTR_ID)%20required%20for%20Secure%20Debug%3F%3CBR%20%2F%3E5.%20Could%20you%20please%20share%20the%20HSE2%20Firmware%20Reference%20Manual%20for%20S32N55%2C%20specifically%20the%20chapter%20covering%20the%20Secure%20Debug%20Challenge%2FResponse%20algorithm%20and%20ADKP%20provisioning%20details%3F%20We%20understand%20that%20the%20C%2FR%20Response%20calculation%20algorithm%20may%20be%20documented%20in%20the%20HSE-H%2FM%20RM%20(as%20in%20the%20case%20of%20S32G2)%2C%20but%20we%20are%20not%20certain%20whether%20the%20same%20algorithm%20applies%20to%20S32N55%20HSE2.%20Clarification%20on%20this%20point%20would%20also%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThis%20is%20a%20critical%20blocker%20for%20our%20customer%20project%20delivery.%20We%20would%20greatly%20appreciate%20a%20response%20at%20your%20earliest%20convenience.%3C%2FP%3E%3CP%3EBest%20regards%2C%3CBR%20%2F%3EEddie%20Park%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BURGENT%5D%20S32N55%20Secure%20Debug%20Implementation%20-%20SDAF%20volkano.exe%20Issue%20and%20HSE2%20FW%20RM%20Request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243574%22%20target%3D%22_blank%22%3E%40EddiePark%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20reaching%20out%20to%20us.%20I%20understand%20the%20urgency%20of%20your%20questions%2C%20and%20thus%20I%20want%20to%20make%20it%20clear%20that%20I%20won't%20be%20able%20to%20help%20you%20with%20everything%20regarding%20the%20S32N55%2C%20since%20it%20is%20a%20pre-production%20chip%2C%26nbsp%3B%20in%20the%20NXP%20community%20we%20can%20only%20help%20you%20with%20fully%20launched%20products.%20You%20can%20contact%20your%20NXP%20representative%2Fdistributor%20for%20closer%20help%20on%20this%20topic.%3C%2FP%3E%0A%3CP%3EFurthermore%2C%20I%20do%20not%20know%20the%20procedure%20to%20secure%20debug%20with%20TRACE32%2C%20I%20can%20share%20this%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FHOWTO-Secure-Debugging-from-S32DS-IDE-with-S32-Debugger-and-S32%2Fta-p%2F1964462%22%20target%3D%22_blank%22%3Epost%3C%2FA%3E%26nbsp%3Bwhich%20describes%20how%20to%20do%20it%20with%20S32%20Design%20Studio.%20However%2C%20for%20the%20S32N55%20the%20steps%20may%20differ%20a%20bit%20since%20it%20is%20quite%20a%20newer%20chip%2C%20I%20cannot%20offer%20you%20definitive%20information%20as%20I%20mentioned%20above.%20You%20can%20also%20check%20this%20other%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32G%2FHow-can-I-find-the-page-that-includes-the-Secure-Keys-Registry%2Ftd-p%2F2140833%22%20target%3D%22_blank%22%3Econversation%3C%2FA%3E%2C%20which%20has%20a%20similar%20topic.%3C%2FP%3E%0A%3CP%3EFor%20better%20support%20on%20how%20to%20do%20it%20in%20TRACE32%20I%20would%20recommend%20you%20to%20contact%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.lauterbach.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Elauterbach%3C%2FA%3E%26nbsp%3Bin%20parallel.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20note%20that%20I%20cannot%20test%20the%20ADKP%20functionality%20since%20I%20am%20not%20authorized%20to%20modify%20any%20OTP%20configuration%20of%20the%20test%20boards%20we%20have.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20I%20can%20help%20you%20with%20anything%20else.%3C%2FP%3E%3C%2FLINGO-BODY%3E