2025-09-29 7:36 AM
Hello!
I am trying to provision a DA certificate on STM32H563 through CANFD Bootloader in system memory.
I am calling special function 0x83 as described in AN2606 and AN5405. As I can understand, this is an RSSLIB_PFUNC->DataProvisioning.
I am filling the structure and place it to the SRAM3. See the picture/hex.
typedef struct {
uint32_t *pSource;
uint32_t *pDestination;
uint32_t Size;
uint32_t DoEncryption;
uint32_t Crc;
} RSSLIB_DataProvisioningConf_t;
The structure is placed in 0x2005C000
The 0x60 bytes of the obk payload is placed in 0x2005C000.
The fuction returns Error code 0xF5F58080 (CRC Error).
I've tried several algorythms, byte-reversal, but could not get it worked.
I tried to find an example of using this function, but without success.
So, I am asking for some code example showing this function.
Maybe I need to prepare data somehow. Or add another data in crc calculations.
Thanks!