CRC Support for STM32

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
JSStabl
Posts: 78
Joined: Tue Feb 25, 2020 4:06 pm
Has thanked: 3 times
Been thanked: 2 times

CRC Support for STM32

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: CRC Support for STM32

Post by Giovanni »

Hi,

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

Giovanni
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: CRC Support for STM32

Post 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.
Post Reply