Hi @Bhushan1312
Yes, I confirmed that reading of HSE_APP_DEBUG_KEY_ATTR_ID will return error code HSE_SRV_RSP_NOT_ALLOWED when ADKP is not programmed yet.
Try to disable data cache to see if it makes a difference. All data objects used for communication with HSE must be forced to non-cacheable memory and it is quite common root cause.
Also notice that HSE can’t see DTCM memory at 0x2000_0000. This address range is visible only for core. HSE can see only DTCM backdoor addresses at 0x2100_0000. My recommendation is to use only normal RAM for communication with HSE, not DTCM.
There’s an option to enable DTCM support in Autosar Crypto driver. Then the driver checks all used addresses and it adds corresponding offset when necessary. If Crypto driver is not used, this is up to user. The best option is - do not use DTCM for communication with HSE.
Regards,
Lukas