CRC Support for STM32

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Posts: 57
Joined: Tue Feb 25, 2020 4:06 pm
Been thanked: 1 time

CRC Support for STM32

Postby JSStabl » Fri Jul 17, 2020 9:53 pm


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.


User avatar
Site Admin
Posts: 13012
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 744 times
Been thanked: 620 times

Re: CRC Support for STM32

Postby Giovanni » Sat Jul 18, 2020 10:54 am


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


Posts: 730
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 10 times
Been thanked: 105 times

Re: CRC Support for STM32

Postby steved » Sat Jul 18, 2020 5:05 pm

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.

Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 2 guests