Skip to main content
Yq_it
Associate
Aug 8, 2019 1:14 AM UTC
Question

CRC16 for STM32F030

I am trying to use the hardware peripheral on the STM32F030 to calculate a 16-bit CRC for a modbus RTU application. But I don't know how to do it.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
Aug 8, 2019 1:26 AM UTC

See [ATT]4016 document at the bottom here

https://community.st.com/s/global-search/modbus%20crc

Was from old SPL, but should be portable

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Yq_it
Yq_itAuthor
Associate
Aug 8, 2019 1:39 AM UTC

I need  STM32F030 config for CRC16. I try config register for CRC ,but I can not getting the right results

Tesla DeLorean
Guru
Aug 8, 2019 1:50 AM UTC

The F030 doesn't support the programmable modes, use the software examples.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..