Entire application CRC in PSoC5 bootloader

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

cross mob
michaelym
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

From what I'm able to understand the "Bootloader application validation" option checks an 8bit checksum. This is not enough for my application since I need a proper CRC. The problem is that with an error in the flash there is a 1/256 chance of not detecting the error.

Is there a way to change this to a CRC16?

If there isn't a built-in option is there an example or application note explaining how to do this?

Basically, I would need to insert a CRC into the metadata as a linker step and then replace the "checksum check" in the bootloader with a CRC.

0 Likes
2 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted
0 Likes

Thanks for your reply,

What you are referring to is the validation of communication packets during programing.

I apologize I wrote "Bootloader application validation" instead of "bootloadable application validation"

I am talking about the entire application checksum that is checked on every reset of the device.

The "bootloadable application validation" uses an 8bit checksum and I need something more robust.

 

0 Likes