cancel
Showing results for 
Search instead for 
Did you mean: 

Provisioning via CANFD bootloader and RSS.

Konstantin_Z
Associate II

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;



Konstantin_Z_0-1759154993511.png

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!

 

 

0 REPLIES 0