Questions tagged [crc]
CRC, or Cyclic Redundancy Check, is a technique commonly used to detect accidental changes to data
55
questions
0
votes
2
answers
64
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 ...
1
vote
2
answers
97
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 ...
0
votes
3
answers
169
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 ...
3
votes
1
answer
105
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 ...
0
votes
1
answer
226
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 ...
3
votes
1
answer
152
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. ...
3
votes
5
answers
3k
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 ...
1
vote
2
answers
370
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 ...
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 ...
4
votes
2
answers
1k
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 ...
0
votes
1
answer
153
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):
...
1
vote
1
answer
514
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 ...
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 ...
0
votes
0
answers
84
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?
...
1
vote
0
answers
175
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 ...
3
votes
2
answers
460
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 ...
0
votes
1
answer
148
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....
0
votes
2
answers
921
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 ...
4
votes
3
answers
2k
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 ...
0
votes
0
answers
136
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 ...
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
...
1
vote
1
answer
367
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.
...
2
votes
1
answer
254
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 ...
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 ...
2
votes
1
answer
472
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 ...
5
votes
3
answers
2k
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 ...
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 ...
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 ...
1
vote
1
answer
543
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 ...
0
votes
1
answer
611
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 ...
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 ...
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 ...
1
vote
2
answers
4k
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.
...
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 - ...
0
votes
3
answers
265
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 ...
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 ...
0
votes
2
answers
838
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, ...
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:
...
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).
...
0
votes
1
answer
228
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?
3
votes
0
answers
499
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 ...
2
votes
1
answer
399
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 ...
1
vote
1
answer
519
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 ...
1
vote
2
answers
477
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 ...
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 ...
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 ...
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.
...
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 ...
4
votes
2
answers
6k
views
CRC for eeprom data check
I wanted to check redundancy in eeprom and crosscheck the data for any errors occurred or not and I ended up reading CRC code. I found it useful but have some doubts that need clarity.
My objective ...
4
votes
2
answers
4k
views
EEPROM data check
I am communicating with an EEPROM chip with micro controller.
I am writing certain data in to specific addresses in EEPROM and needs to check the data occasionally. But I have no idea other than ...