1552 views|13 replies
chenbingjy
Currently offline
|
The OP
Published on 2023-6-2 22:23
Only look at the author
This post is from stm32/stm8
Latest reply | |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
秦天qintian0303
Currently offline
|
2
Published on 2023-6-2 22:45
Only look at the author
This post is from stm32/stm8
Comments
The initial value I wrote is 0xffffffff, but the initial value is not clearly stated in STM32. It is not easy to find it online.
Details
Published on 2023-6-3 09:37
| |
Personal signature
在爱好的道路上不断前进,在生活的迷雾中播撒光引 |
||
|
3
Published on 2023-6-3 09:19
Only look at the author
This post is from stm32/stm8
Comments
I am not satisfied with your answer. For example, if I use a single-chip microcomputer to communicate with a host computer, and the single-chip microcomputer uses hardware CRC, you can't use a special CRC calculator to calculate it on the host computer. You can only find a suitable algorithm yourself. Otherwise, the hardware CRC of the single-chip microcomputer is meaningless.
Details
Published on 2023-6-3 09:39
| ||
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
6
Published on 2023-6-3 10:00
Only look at the author
This post is from stm32/stm8
| ||
|
||
|
7
Published on 2023-6-5 08:48
Only look at the author
This post is from stm32/stm8
Comments
Thank you! [attachimg]702896[/attachimg] MCU program, the polynomial is 8 bits, but the data input format is 32 bits, the default initial value. [attachimg]702900[/attachimg] Some of the factors you mentioned are indeed unclear, and the program does not mention them. I don't know what STM32 does.
Details
Published on 2023-6-5 09:03
| ||
|
||
|
8
Published on 2023-6-5 08:54
Only look at the author
This post is from stm32/stm8
Comments
Thank you! There is no such calculator. This polynomial is custom made.
Details
Published on 2023-6-5 09:08
| ||
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
11
Published on 2023-6-5 09:11
Only look at the author
This post is from stm32/stm8
Comments
Regarding the 7-bit CRC check, I found a table lookup program on the Internet, modified it, and found that two of the four sets of data were correct, the first and fourth, 0x57, 0x26. The second and third were incorrect: the MCU program was 0x6e, 0x4b, and I calculated it to be 0x26, 0x2f. Code:
Details
Published on 2023-6-5 12:44
| ||
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
chenbingjy
Currently offline
|
This post is from stm32/stm8
| |
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
|
||
|
论坛测评队员
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190