S32K3 HSE

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

S32K3 HSE

Jump to solution
2,850 Views
ZY2
Contributor II

Hello, when I use S32K314 HSE to install AES KEY, the call to Hse_Ip_ServiceRequest() interface always returns timeout. May I ask what is the possible reason

 

95dc5075a9d2d7d0016feb8e10d37da.png

 
 

adeb10c38208c0e1c17e4966354c9b9.png14a8e44c606001bb52adff5210d6383.png

 

 

Tags (1)
0 Kudos
Reply
1 Solution
2,806 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

If the key was already installed, try to erase it:

lukaszadrapa_0-1741930966482.png

It's not possible to import new key in plain if the key slot is not empty. Or simply try to format the catalogs again to start over.

View solution in original post

0 Kudos
Reply
5 Replies
2,826 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @ZY2 

According to GSR register, bit 0 is set. It's flag called HSE_ERR_GENERAL. So, HSE was shut down due to some fatal error.

Most likely, it's because HSE can't access provided parameters - the access was terminated by bus error.

1. Make sure you provided correct pointers as a parameters to the service.

2. Make sure that all data objects used for communication with HSE are forced to non-cacheable SRAM or disable the data cache completely. This is the most common reason.

3. If XRDC is enabled, make sure that HSE has appropriate rights to access the memory.

As a first step, I would try to disable the data cache to see if it makes a difference.

Regards,

Lukas

0 Kudos
Reply
2,816 Views
ZY2
Contributor II

1,I reworked the implementation to refer to the official routine, but it still returns a timeout and also closes the cache.

2 ,I installed the HSE KEY successfully before, but failed to install the AES KEY

DemoDemokey catalogkey catalogThe interface I refactoredThe interface I refactoredDisable cachingDisable caching

0 Kudos
Reply
2,807 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

If the key was already installed, try to erase it:

lukaszadrapa_0-1741930966482.png

It's not possible to import new key in plain if the key slot is not empty. Or simply try to format the catalogs again to start over.

0 Kudos
Reply
626 Views
LZY
Contributor II

Hello, I have also encountered a similar problem. Could you please tell me how to format it?

0 Kudos
Reply
2,777 Views
ZY2
Contributor II

Thank you for your reply. The problem has been found. I defined the pKeyInfo variable locally.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2060153%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2060153%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20when%20I%20use%20S32K314%20HSE%20to%20install%20AES%20KEY%2C%20the%20call%20to%20Hse_Ip_ServiceRequest()%20interface%20always%20returns%20timeout.%20May%20I%20ask%20what%20is%20the%20possible%20reason%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2295dc5075a9d2d7d0016feb8e10d37da.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2295dc5075a9d2d7d0016feb8e10d37da.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2295dc5075a9d2d7d0016feb8e10d37da.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327644iC5CAFF38F26DA469%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2295dc5075a9d2d7d0016feb8e10d37da.png%22%20alt%3D%2295dc5075a9d2d7d0016feb8e10d37da.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22adeb10c38208c0e1c17e4966354c9b9.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22adeb10c38208c0e1c17e4966354c9b9.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22adeb10c38208c0e1c17e4966354c9b9.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327640i5DF3B496A1A70D2E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22adeb10c38208c0e1c17e4966354c9b9.png%22%20alt%3D%22adeb10c38208c0e1c17e4966354c9b9.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2214a8e44c606001bb52adff5210d6383.png%22%20style%3D%22width%3A%20825px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2214a8e44c606001bb52adff5210d6383.png%22%20style%3D%22width%3A%20825px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2214a8e44c606001bb52adff5210d6383.png%22%20style%3D%22width%3A%20825px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327641iB813044CA01B9E8B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2214a8e44c606001bb52adff5210d6383.png%22%20alt%3D%2214a8e44c606001bb52adff5210d6383.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2062722%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062722%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%20The%20problem%20has%20been%20found.%20I%20defined%20the%20pKeyInfo%20variable%20locally.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2061790%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2061790%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20the%20key%20was%20already%20installed%2C%20try%20to%20erase%20it%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_0-1741930966482.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1741930966482.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1741930966482.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328080i036AE2BD9C5CF6A4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1741930966482.png%22%20alt%3D%22lukaszadrapa_0-1741930966482.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt's%20not%20possible%20to%20import%20new%20key%20in%20plain%20if%20the%20key%20slot%20is%20not%20empty.%20Or%20simply%20try%20to%20format%20the%20catalogs%20again%20to%20start%20over.%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2061710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2061710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E1%EF%BC%8CI%20reworked%20the%20implementation%20to%20refer%20to%20the%20official%20routine%2C%20but%20it%20still%20returns%20a%20timeout%20and%20also%20closes%20the%20cache.%3C%2FP%3E%3CP%3E2%20%EF%BC%8CI%20installed%20the%20HSE%20KEY%20successfully%20before%2C%20but%20failed%20to%20install%20the%20AES%20KEY%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Demo%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Demo%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Demo%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328064iE5DB49A75B3FF4B5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22e84606985f22e1f60352cae8d3f9720.png%22%20alt%3D%22Demo%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDemo%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDemo%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDemo%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22key%20catalog%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22key%20catalog%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22key%20catalog%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328065iCDB45286D7FB2CD6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22f8511a21fe608dc1b6bb1a0e0f58e87.png%22%20alt%3D%22key%20catalog%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ekey%20catalog%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ekey%20catalog%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ekey%20catalog%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22The%20interface%20I%20refactored%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22The%20interface%20I%20refactored%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22The%20interface%20I%20refactored%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328066i79E42D865F529CDD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%226e2cd66f8cb22e8a23ac7fd23988d14.png%22%20alt%3D%22The%20interface%20I%20refactored%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20interface%20I%20refactored%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20interface%20I%20refactored%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20interface%20I%20refactored%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Disable%20caching%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Disable%20caching%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Disable%20caching%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328067i3F9448ED6D645D09%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22f0621f678387f918a8737092317f619.png%22%20alt%3D%22Disable%20caching%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDisable%20caching%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDisable%20caching%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDisable%20caching%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2060465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2060465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241679%22%20target%3D%22_blank%22%3E%40ZY2%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAccording%20to%20GSR%20register%2C%20bit%200%20is%20set.%20It's%20flag%20called%20HSE_ERR_GENERAL.%20So%2C%20HSE%20was%20shut%20down%20due%20to%20some%20fatal%20error.%20%3C%2FP%3E%0A%3CP%3EMost%20likely%2C%20it's%20because%20HSE%20can't%20access%20provided%20parameters%20-%20the%20access%20was%20terminated%20by%20bus%20error.%20%3C%2FP%3E%0A%3CP%3E1.%20Make%20sure%20you%20provided%20correct%20pointers%20as%20a%20parameters%20to%20the%20service.%3C%2FP%3E%0A%3CP%3E2.%20Make%20sure%20that%20all%20data%20objects%20used%20for%20communication%20with%20HSE%20are%20forced%20to%20non-cacheable%20SRAM%20or%20disable%20the%20data%20cache%20completely.%20This%20is%20the%20most%20common%20reason.%20%3C%2FP%3E%0A%3CP%3E3.%20If%20XRDC%20is%20enabled%2C%20make%20sure%20that%20HSE%20has%20appropriate%20rights%20to%20access%20the%20memory.%20%3C%2FP%3E%0A%3CP%3EAs%20a%20first%20step%2C%20I%20would%20try%20to%20disable%20the%20data%20cache%20to%20see%20if%20it%20makes%20a%20difference.%20%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20have%20also%20encountered%20a%20similar%20problem.%20Could%20you%20please%20tell%20me%20how%20to%20format%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E