This is the example source code for the Cyclic Redundancy Check (CRC) Module with Memory Scanner
(Microchip microcontroller)
volatile unsigned int crc = 0; unsigned char data_size = 0; void main(void) |
Will use 0x346C and 0x3493 value at 0x800 and 0x801 address in flash memory
https://www.lammertbies.nl/comm/info/crc-calculation.html
To verify the CRC Calculation, I used On-line CRC Calculation and free library and put the value as "34633493" with Hex. And I got the calculated value as 0xF659 with CRC-CCITT (0xFFFF) and also I got the value as 0xF659 in MPLAB X debug mode as below.
'Embedded' 카테고리의 다른 글
MCU Flash memory and EEPROM read/write (0) | 2021.06.23 |
---|---|
Microchip powerup.as powerup.S example code (0) | 2021.01.22 |
ATSAMV71 X plained board schematic (Circuit diagram) (0) | 2019.04.16 |
ATSAMV71Q21 - Example code(External Interrupt and LED Toggle) (0) | 2019.04.16 |
Solution for the build failed with what(): Invalid argument message on MPLAB X IDE (0) | 2019.03.04 |