Hi All
I recently dowloaded the rabbit 9.62 but am getting an error from the modbus library even if I just try the old modbus serial_master sample .It keeps giving me the above error and points to this function in ModbusMaster.lib:
unsigned MODBUS_CRC(unsigned char *pcMess, unsigned wLen)
{
auto unsigned char cHi,cLo; // CRC Accumulators (MSB & LSB)
auto unsigned w; // CRC Shift In Index
cHi = cLo = 0xFF; // Init CRC
while(wLen--)
{ // For Each Byte
w = cHi ^ *pcMess++; // Next Table Index
cHi = cLo ^ MODBUS_CRC_MSB[w]; // Next CRC
cLo = MODBUS_CRC_LSB[w];
}
return ((unsigned) cHi << 8) | cLo; // merge the bytes and return
}