Page 1 of 1

CRC Support for STM32

Posted: Fri Jul 17, 2020 9:53 pm
by JSStabl
Hi,

does anyone know if there is any support planned for the crc coprocessor found on some of the STMs? There is a community implementaton but it doesn't seem to be currently maintained. A builtin crc check for the SPI or UART driver would be useful too.

Thanks!
Regards
Julian

Re: CRC Support for STM32

Posted: Sat Jul 18, 2020 10:54 am
by Giovanni
Hi,

There are no immediate eplans, you best option is to polish the contributed one, it is not very complex.

Giovanni

Re: CRC Support for STM32

Posted: Sat Jul 18, 2020 5:05 pm
by steved
I considered the CRC peripheral, and concluded that (in my world, at least) it would mostly be useful as a peripheral 100% dedicated to a specific purpose, probably involving CRC Calculation on large blocks of data. Or maybe where there is a need to compute different types of CRC at various times. To make it generic and thread-safe involves some overhead, and can actually increase execution times if used by multiple threads.
For byte-level and small blocks of data, there are table-orientated calculation routines which are reasonably efficient, and have the advantage of being reentrant.