Hello !!! Some strange error occured when I've tried to transfer a block data. First, Ithe processor received (by serial-DMA) 2006 bytes each time and this is repeated for 240 times resulting an array of 480,000 bytes
The processor is the STM32L4R5 and the SMT32CubeIDE versin 1.6.
uint16_t US_Cksum,Trans_Pointer,USA_Data[2006],US_Trans[480000];
uint32_t US_Pointer;
US_Pointer is zeroed at the start of the program
US_Cksum=0;// For Checksum
Trans_Pointer=4;
while(Trans_Pointer<2004){
US_Trans[US_Pointer]=USA_Data[Trans_Pointer];
US_Cksum+=USA_Data[Trans_Pointer];
US_Pointer++;
Trans_Pointer++;
}
The question is: Why the US_Cksum doesn't generate a correct sum?
Thank you
