cancel
Showing results for 
Search instead for 
Did you mean: 

Using RSSLib->DataProvisioning() interface without TZ

peter7
Associate

I'm trying to get the Debug Authentication provisioning to work. I managed to write it from within the application, but then I found the errata sheet(es0565-stm32h562xx563xx573xx-device-errata-stmicroelectronics.pdf) which states otherwise:

"Chapter 2.2.35: Debug Authentication provisioning cannot be done from the application when TZEN is disabled"

 

I tried to do the provisioning with RSSLib->DataProvisioning(), as mentioned in the errata sheet, but I end up getting a hardfault.

I'm using the nucleo-h536zi-board, trustzone is disabled.

 

    RSSLIB_DataProvisioningConf_t a;
    a.pSource = sData;
    a.pDestination = (uint32_t *) (0x0FFD0100);
    a.Size = 0x60;
    a.DoEncryption = 0xCACA0AA0U;
    a.Crc = 0;
    uint32_t c = RSSLIB_PFUNC->NSC.DataProvisioning(&a);

Since the CRC is not correct, I expect to get the CRC error instead of a hard fault.

 

Is there something I need to set up before calling DataProvisioning? I tried to find an example, is there one somewhere?

 

Best regards,

Peter

0 REPLIES 0