Calculate CRC16CCITT

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello

   

I'm using actually PSOC4 CYBL10573.

   

I have actually calculate crc16 and i have already save it in the last 2 Bytes of Flash. I need to make a check for the CRC in main loop. That's why i used the same code (already used to calculate the crc after compilation)

   

The resulted CRC in main loop isn't the same with the precalculated .

   

when i try to find the problem with debugging, the first 4 Bytes of flash are correctly copied but the 5 Byte will not correctly copied. That's why the CRC is not the same.

   

Do you have any ideas about this case??

0 Likes
1 Reply
Anonymous
Not applicable

You are trying to write 5 bytes to flash from the PSoC4 code running on the chip, but it is only correctly writing the first 4 bytes?

0 Likes