Skip to main content

Questions tagged [crc]

CRC, or Cyclic Redundancy Check, is a technique commonly used to detect accidental changes to data

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

What's the CRC Polynomial in EnDAT 2.2 protocol?

I am implementing an EnDAT2.2 readout in an FPGA. Can't find the CRC polynomial anywhere in the document. Is 5-bit CRC something so standard that it doesn't need to be mentioned? https://www....
TQQQ's user avatar
  • 1,357
2 votes
4 answers
123 views

How is CRC5 calculated in detail for a USB token?

How is CRC5 calculated in detail for a USB token? ...
hugo289's user avatar
  • 23
0 votes
2 answers
127 views

CRC check for received data through UART

I am sending/receiving data using UART between STM32G4 board and other board. While I am sending the data I am adding the CRC and transmitting it through UART to other board. While receiving how do I ...
Sireesha's user avatar
1 vote
2 answers
170 views

Determining the best CRC polynomial generator regardless the input data [closed]

I'm given a couple of 16-bit CRC generator polynomial: \begin{align} g(p) &= p^{16} + p^{12} + p^5 + 1 \\ g'(p) &= p^{16} + p^{10} + p^8 + p^7 + p^3 + 1 \end{align} And, without knowing the ...
Ketterle's user avatar
0 votes
3 answers
473 views

STM32G4 CRC peripheral. How to select Polynomial for CRC? [closed]

I am working with STM32G491RE. I need to calculate CRC16 for data to send it through UART. How do I select the CRC polynomial? Can you please suggest if there is any reference to select the poly? Can ...
Sireesha's user avatar
3 votes
1 answer
129 views

How to verify a CRC in receiver terminal? [closed]

I am studying some computer knowledge by myself. I find a puzzle when I study the CRC. Now I know how to calculate a CRC value of a message, but I wonder how to verify it in receiver terminal when the ...
Jeason's user avatar
  • 31
0 votes
1 answer
372 views

STM32G4 CRC peripheral. What is going wrong in my configuration?

I am trying to configure the CRC peripheral of my STM32G431C8T6 to work on 8-bit input values. The peripheral is calculating a checksum however if i compare the checksum it has calculated with the ...
Mauricio Paulusma's user avatar
3 votes
1 answer
187 views

Which error mechanism would serve best for large data?

I have a microcontroller (mcu) communicating with Raspberry Pi (rpi) using SPI communication. The mcu is a slave device and rpi is the master device. I am transmitting ~800 kB of data from mcu to rpi. ...
Gagan Batra's user avatar
3 votes
5 answers
4k views

Ways to send data with CRC validation

The data frames that are always sent using CRC are as follows: a CRC calculated for each byte (DATA) But to make the connection faster, could you send a single CRC for a whole frame of data? the ...
Ricardo Casimiro's user avatar
1 vote
2 answers
453 views

Testing the reliability of RS485

I have implemented an RS485 communication with CRC data validation and some algorithms to manage errors when the data received is lossy. How can I test the packet loss during RS485 communication? Is ...
Ricardo Casimiro's user avatar
0 votes
2 answers
1k views

Maximum message size for polynomial CRC-8 0x07 and hamming distance = 3

I am looking for maximum message size for my CRC-8 0x07 polynomial for Hamming distance = 3. Do you know some website with these types of information? Or possibly, do you know how to calculate it? I ...
andz's user avatar
  • 254
4 votes
2 answers
2k views

CRC calculations by hand do not match online calculator

I have been trying to understand what is the trick behind online calculator which gives me CRC value for any input. The thing is that results I get with doing maths by hand do not match results this ...
lucenzo97's user avatar
  • 2,432
0 votes
1 answer
171 views

Microchip 48LM01 memory secure read operation CRC and STM32 hardware CRC

I'm trying to use STM32 hardware CRC calculation mechanism to get CRC value from this data (3 byte address and 128 bytes of data): ...
Kamil's user avatar
  • 6,024
1 vote
1 answer
669 views

CRC calculation

I have been attempting to understand the CRC calculation. I have found online CRC calulator and I have done an experiment. I have tried to calculate with this calculator the CRC16-CCITT (in the ...
L3sek's user avatar
  • 199
0 votes
1 answer
5k views

How to create a nested for-loop in Verilog?

I try to create a CRC module on Verilog. The CRC calculating use an LFSR and can be fully-sequential (with two cycles), semi-sequential (with one cycle) or parallel. I have already made sequential ...
Arseniy's user avatar
  • 2,247
0 votes
0 answers
121 views

How to calculate resultant of 32 bit CRCs

Im working on automotive controller and I have following question I have list(about 6) of 32 bit CRCs and I want to combine them to get a resultant one can I 'OR' or 'XOR' them to get resultant one? ...
MicroUncontroller's user avatar
1 vote
0 answers
217 views

Does libusb_bulk_transfer add CRC?

0 I'm writing a user interface program for USB device in C++ using Visual Studio 2019. I'm using libusb library. I want to do bulk transfer to the device, and I'm trying to understand the exact ...
user14092875's user avatar
3 votes
2 answers
490 views

CRC calculation different for IC

I try to read out data from the AS5047U sensor (https://ams.com/documents/20143/36005/AS5047U_DS000637_1-00.pdf/8639418f-6c3a-1624-4e6f-18f52c962099) over SPI, but somehow my CRC is always different ...
HansPeterLoft's user avatar
0 votes
1 answer
158 views

CRC Algorithms Basics

I am reading about CRC algorithms. And have a few basic doubts Referred Link I have 3 questions : Suppose, I have a Microcontroller and an EEPROM. I have read that CRC employs different algorithms....
user avatar
0 votes
3 answers
1k views

What is the method to determine the XOR placing in CRC code with random generator

I'm reading a lot of different tutorials about how to implement CRC gates for different generators, But I couldn't understand the method. For example, for the following generator, this example states ...
DsCpp's user avatar
  • 103
4 votes
3 answers
3k views

Append calculated CRC to data and recalculate does not yield zero

I have been working on understanding CRC calculations for implementation in VHDL. Specifically I have implemented the CRC-32C (polynomial = 0x1EDC6F41) a couple of ways. First using an LFSR approach ...
Eanema's user avatar
  • 41
0 votes
0 answers
152 views

CRC in CAN Messages

I would like to know the difference between CRC calculation in CAN physical layer vs CRC calculation in the application layer. How does the CRC calculation in these layers affect the ASIL (Automobile ...
Sam's user avatar
  • 9
1 vote
1 answer
1k views

Calculate CRC-16/Maxim in VHDL

I try to do a CRC-16/Maxim calculation in VHDL. My current implementation looks as follows ...
po.pe's user avatar
  • 2,566
1 vote
1 answer
470 views

Revising CRC value after data adjustment

I have a 181 bytes data stream with 4 bytes CRC32 value at the end. The entire message length is 185 bytes. The data stream is stored in the FPGA onchip memory and waiting to put into wire by TCP. ...
Ken Tsang's user avatar
2 votes
1 answer
289 views

CRC generator polynomial for data flash memory storage

I have been facing a problem how to implement embedded software configuration parameters management system. It means how to implement a software module which will be responsible for storage of for ...
Steve's user avatar
  • 1,113
0 votes
0 answers
114 views

Incorrect ethernet crc code

I am trying to use the ethernet phy on my FPGA. I am at the point where I can receive a frame. The frame I can see using chipscope matches the data of the frame sent from my computer which I can ...
chasep255's user avatar
  • 523
2 votes
1 answer
510 views

Calculating number of errors that is undetected by a CRC using a particular polynomial

My goal is to determine optimal generator polynomial and size of the Frame Check Sequence (CRC field) for protocol that I am developing. Reading the paper, "Cyclic Redundacy Code (CRC) Polynomial ...
balboa's user avatar
  • 203
5 votes
3 answers
3k views

CRC hardware implementation

What is the difference between these two implementations as the feedback is in first implementation the last reg only but the second implementation last reg xored with the input bit, so, what is the ...
Aren dg's user avatar
  • 99
1 vote
1 answer
2k views

Verilog parallel CRC with arbitrary polynomial

for my next project I need to implement a CRC IP core in Verilog HDL. It must use 16bit polynomial and 16bit CRC result register. Data is being fed into it in 8bit chuncks / bytes. I have allready ...
Matej Gomboc's user avatar
4 votes
1 answer
3k views

How is crc5 calculated for a usb token?

I captured the usb packets on a usb1.1 mouse using a generic 24mhz logic analyzer. here is the sigrok capture for the first token. as per the usb docs.. a CRC5 is calculated for the token by taking ...
YsK's user avatar
  • 43
1 vote
1 answer
622 views

How does the rollback work in a FIFO?

From reading the book titled "Advanced Chip Design practical examples by verilog", I faced some questions about when the Ethernet packet is read from the FIFO and how the rollback works for the ...
ruach's user avatar
  • 359
0 votes
1 answer
625 views

C++ - Help Interpreting the instructions of a CRC error-checking programming assignment

This is unconventional, based on what I've seen, but I can't get a hold of my professor's aides to clarify this assignment. I hope this is still ok to post here. I would greatly appreciate some help ...
niblet's user avatar
  • 1
5 votes
1 answer
2k views

CRC implementation for ethernet

With an example for data with a hexadecimal value of 0xda and a polynomial 0x07, I would find the CRC as follows (using the ...
Roy's user avatar
  • 151
0 votes
2 answers
5k views

How to use the data CRC of SD cards in SPI mode?

I am interfacing an SD card through SPI using an AVR microcontroller (more specifically it is the Uzebox console). I can successfully initialize the card with turning CRC check ON with CMD59 (so I ...
Jubatian's user avatar
  • 241
1 vote
2 answers
5k views

SENT CRC calculation

I am using SENT protocol in my project. In my SENT implementation, the data nibbles are 3. So 12 bit data, including a status nibble and CRC nibble. I need to calculate the CRC for 3 data nibbles. ...
GShaik's user avatar
  • 267
7 votes
1 answer
2k views

Help identifying checksum

I need help identifying the checksum algorithm in the following packets please. So, packets format is: sd ?? dd dd dd ?? where s = start nibble d = data (binary coded decimal) ? = unknown - ...
user3780104's user avatar
0 votes
3 answers
283 views

Best value to overwrite old to tell if memory is not used on eeprom

I have an EEPROM I want to store CRC32 hashes on between 0x0000 and 0x008C. In this range I need a way that I can erase one of the hashes and overwrite its bytes to a default number. By doing this I ...
randy newfield's user avatar
2 votes
3 answers
2k views

Understanding IR Protocol Checksum generation

To control my AC with an Arduino, I'm trying to emulate the IR Remote. Not with another IR LED, but directly connected to the IR Receivers Signal wire on the board. Using the Arduino as a Logic ...
Hypfer's user avatar
  • 21
0 votes
2 answers
876 views

How to get up to 24 I/O pins from the PIC4550

Im trying to implement and understand the CRC by making a circuit, by using 1 byte (8 bits), and a highest power of the polynomial of four, these 2 values should be XORed until i get a final output, ...
GoatZero's user avatar
  • 1,547
3 votes
2 answers
5k views

FCS verification of ethernet frame

i am trying to transmit a Ethernet frame from fpga to pc. my udp frame is: ...
sidharth kashyap's user avatar
2 votes
0 answers
1k views

CRC32 on SAM D20 (Cortex M0+)

I've been having a hard time debugging the DSU module on a SAM D20 (datasheet). I mean to utilize it to calculate CRC32 for a program I'm uploading through a custom bootloader (bootloader not mine). ...
Ben's user avatar
  • 121
0 votes
1 answer
239 views

Parallel-In-Serial-Out with Parity?

Can someone recommend a shift register IC with integrated parity or CRC generator? Is there such a thing anyway?
Arne's user avatar
  • 1,845
3 votes
0 answers
510 views

Help reverse engineering a CRC-8 [closed]

I have an arduino based home temperature monitoring system using Ambient Weather F007th wireless Thermo-Hygrometers as sensors. I am trying to work out the CRC and add some code to my project to ...
Andrew McAnerney's user avatar
2 votes
1 answer
416 views

CRC/Parity/Hamming Protect 16-bit parallel bus

I've got a Cortex-M4 based MCU linked to a FPGA via a 16-bit parallel memory bus interface. In essence the FPGA behaves like an external memory mapped to the memory space of the MCU: the MCU presents ...
Arne's user avatar
  • 1,845
1 vote
1 answer
525 views

CRC polynomial and Parity Error detection

My question is about the CRC generator polynomial. If I have a generator of level 5, say: $$X^5+X^4+X^2+1$$ How can I know if it can or cannot detect a parity error? Also how can I know the error ...
user40186's user avatar
1 vote
2 answers
500 views

Finding an input sequence given a generating polynomial and CRC

I am working on a circuit that inputs a 31-bit pseudo-random binary string into a CCITT CRC-16 block which generates a 16-bit CRC output. I know that M(x)/G(x) = Q(x) + R(x) and the transmitted code ...
JJBladester's user avatar
4 votes
3 answers
1k views

Reverse-engineering IR check bits/CRC

I'm trying to build a simple Arduino-based IR remote control for a cheap toy IR-controlled helicopter (same as this one - it's called "Diamond Gyro" or "Diamond Force"). I've decoded the IR protocol ...
Flambino's user avatar
  • 293
2 votes
2 answers
2k views

My CRC8 is dysfunctional and I'm not sure why!

So I'm interfacing an arduino with a Melexis temperature sensor, and it's going okay--aside from the fact that I can't seem to get the CRC check to work. I've gotten read operations to complete ...
Noah's user avatar
  • 121
1 vote
2 answers
6k views

Implementing parallel CRC in verilog

I am trying to implement a parallel CRC in Verilog but having trouble getting it to work. This is a snippet of the code that I'm having trouble with. ...
user7994's user avatar
  • 138
2 votes
1 answer
1k views

What is the purpose of CRC_IDR in STM32 processors?

The STM32's CRC calculation unit has a register named CRC_IDR. This 32 bit register allows the user to store 8bits of data. There seems to be no link between this register and rest of the CRC ...
Hesky Fisher's user avatar