Hello,
I successfully installed HSE FW (v0.2.55) on my S32K312 micro, and I am experiencing some issues.
I will explain the sequence that I am using right now.
I am using an 'installer' firmware that handles HSE FW installation and initial configuration.
Starting from a clean state, it performs the following steps:
- Install HSE FW through IVT method, also enabling HSE FW Feature Flag in UTEST when needed
- Check that installation is successful and read FW Version (success, I can read v0.2.55)
- Read MU Status and based on that, perform FormatKeyCatalog (success, catalog is correctly formatted)
After that, I erase DFLASH and PFLASH completely, and I flash my official AUTOSAR FW, issuing a Reset just before running it.
When I do so, I encounter the following scenario.
- After startup, the HSE receives a request for a MAC verify operation. Anyway this is targetting an empty key slot, so the HSE responds with error code HSE_SRV_RSP_KEY_EMPTY (as I would expect).
- After this operation, I perform the KeyElementSet for the key that was found empty before. Anyway when I do so, I do not receive any response from HSE and I am stuck waiting for it.
If I check the FSR and GSR registers, I can see that:

Also, at address 0x4039C028:

What can be the issue of this behavior?
Would this be solved if I call KeyElementSet before trying to perform the Mac Verify job with that same key?
Also note that I am using the RTD MCAL drivers v6.0.0, and actually I do not perform any kind of waiting during startup to check if the HSE is alive before performing clock initialization through Mcu.
Kind regards,
Aldo