I would like to calculate a 3bytes CRC value using the crc calculation unit of the Nucleo L053R8. The generator Polynomial is the following: g(X)=x^24 + x^10 + x^9 + x^6 + x^4 + x^3 + x + 1
It seems that using this CRC calculation unit I can only generate a 32bits length CRC and smaller values are just the LSBS of the 32bit result. I also know that the LSB of CRC32 in not equal to a CRC16.
Any idea on what operations I should perform on the input/output data to get the correct CRC24 I want ?