TMS320F28P650DH: CRC calculation of large flash area using VCRC

Part Number: TMS320F28P650DH

Tool/software:

Hi

I can calculate one block CRC successfully and as I have understood from the documentation that incase of large memory we need to split it in <= 0xFFFF and the result becomes the seed of next block.

flash area is 0x30000 -2 (0x60000 -4 bytes) words. so I am giving 95 x 4096 bytes in for loop and rest 4092 after for loop. unfortunately with  no success. 

for(u16i = 0; u16i < 95; u16i++)
{
// myVCRC0_CRC.pMsgBuffer = (uint16_t *)u16DataPointer;


memcpy(u16Array, (const void*)u16DataPointer,sizeof(u16Array));/**/

myVCRC0_CRC.run(myVCRC0_Handle);

u16DataPointer+= (4096/2);

myVCRC0_CRC.seedValue = myVCRC0_CRC.crcResult;
}

myVCRC0_CRC.nMsgBytes = 4092;

memcpy(u16Array, (const void*)u16DataPointer, (sizeof(u16Array)));/**/

myVCRC0_CRC.run(myVCRC0_Handle);

thanks and best regards