Hello,
I suggest to handle CRC calculation of frames by XNET HW (similar to other thread in this foram that suggest handling message counter on CAN).
In every project there are frames that needs a CRC over whole frame content, e.g. for CAN:
<Data1> <Data2> <Data3> <Data4> <Data5> <Data6> <MessageCounter> <CRC from Data1 to MessagCounter>
Currently, all is handled by CPU which results in dependence to CPU and OS. Actually, complete frame raw data must be build in PC to calculate CRC (even if symbolic signal names are used).
With multipe CAN busses in parallel use and different repetition rates of CAN frames, timing may become critically.
It would be great if it would be possible to configure CRC-8 calculation for frames. Since the calculation has some parameters that are different from customer to customer, a perfect solution would be a formula node, that could be shifted to XNET board and liked to multiple frames with parameters:
- frame name
- CRC protection start byte
- CRC protection stop byte
- CRC byte position or signal name