AVR C Runtime Library - Bugs: bug #37901, CRC-CCITT calculation incorrect
You are not allowed to post comments on this tracker with your current authentication level.
bug #37901: CRC-CCITT calculation incorrect
Submitter: | mojo <mojo> | ||
Submitted: | Tue 11 Dec 2012 01:42:22 PM UTC | ||
Category: | Library | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | libc code |
Status: | Invalid | Assigned to: | joerg_wunsch |
Percent Complete: | 0% | Open/Closed: | Closed |
Release: | 1.8.0 | Fixed Release: | None |
Jump to the original submission
Mon 21 Oct 2013 04:03:19 PM UTC, comment #7: |
Eric Weddington <arcanum> |
Tue 11 Dec 2012 05:14:52 PM UTC, comment #6: Well, we cannot impose a 1 KiB lookup table on everyone using this
|
Joerg Wunsch <joerg_wunsch> |
Tue 11 Dec 2012 04:52:58 PM UTC, comment #5: Okay, apologies for the roughness of this patch, but I have a full time job so I'm afraid someone else will have to batter it into shape.
|
mojo <mojo> |
Tue 11 Dec 2012 04:35:31 PM UTC, comment #4: I disagree. The way you are looking at it is bitwise, but programmers these days are probably looking at it bytewise. The USART takes care of bit order, all the programmer gets is their byte in the DATA register.
|
mojo <mojo> |
Tue 11 Dec 2012 03:05:29 PM UTC, comment #3:
|
Joerg Wunsch <joerg_wunsch> |
Tue 11 Dec 2012 02:28:57 PM UTC, comment #2: Okay, but in that case I think that needs to be made clear.
|
mojo <mojo> |
Tue 11 Dec 2012 02:01:50 PM UTC, comment #1: The function you describe is provided by
|
Joerg Wunsch <joerg_wunsch> |
Tue 11 Dec 2012 01:42:22 PM UTC, original submission:
Using _crc_ccitt_update() gives the wrong result. You can verify the result by comparing it with known good implementations, e.g. the XMEGA CRC module, the Boost libraries (http://www.boost.org/doc/libs/1_41_0/libs/crc/index.html), or any number of online calculatored (e.g. http://www.zorc.breitbandkatze.de/crc.html or http://www.lammertbies.nl/comm/info/crc-calculation.html).
|
mojo <mojo> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-10-21 | arcanum | Open/Closed | Open | Closed | |
2012-12-11 | joerg_wunsch | Open/Closed | Closed | Open | |
2012-12-11 | joerg_wunsch | Status | None | Invalid | |
Assigned to | None | joerg_wunsch | |||
Open/Closed | Open | Closed | |||
2012-12-11 | mojo | Carbon-Copy | - | Added mojo |
Powered by Savane 3.13-d3ae.
Corresponding source code
Closing bug, as it is marked as Invalid and no updated patch in 10 months.