Skip to main content
Yq_it
Associate
August 8, 2019
Question

CRC16 for STM32F030

  • August 8, 2019
  • 2 replies
  • 1363 views

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.

2 replies

Tesla DeLorean
Guru
August 8, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Yq_it
Yq_itAuthor
Associate
August 8, 2019

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

Tesla DeLorean
Guru
August 8, 2019

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..