Part Number: DRV3245Q-Q1
Hi Team,
I wonder if there is a problem with the CRC table function in this 'CRC Implementation with DRV32xxSeries' file? The effect achieved by this function is equivalent to that of while(1).

Should it be the above function?
void generate_crctable(){
byte crctable[256];
for(int I = 0; I < 256; I++){
crc = I;
for(int j = 8; j > 0; j--){
if((crc & 0x80) != 0){
crc <<= 1;
crc ^= 0x2F;
}
else{
crc <<= 1;
}
}
crctable[i] = crc;
}
return crctable;
}
Kind regards,
Katherine









