CRC Support for STM32

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

CRC Support for STM32

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

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: CRC Support for STM32

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

Hi,

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

Giovanni

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 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 9 guests