AUTOSAR CRC - daemonPainter/CAPL-Utils GitHub Wiki
AUTOSAR CRC8
CRC of an AUTOSAR profile assumes that byte0 of the message is the CRC8, the low nibble of byte1 the round alive counter with limits [0-F] and is computed as: all bytes of the message starting from the updated (to be transmitted) byte1 including the alive counter, until the end of message, plus one byte which is the DataID. DataID is known a priori and is a function of the alive counter. Look up tables may be used for sake of simplicity.
Reference: Document ID 849: AUTOSAR_PRS_E2EProtocol
As of today, the use should build their own DataID table and pass the entire array of bytes to compute the CRC on to the desired CRC function. Test values are available in the reference document.