Bootloader does not detect ChekSum test failure

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

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

I am using a Booltoader and a Bootloadable in my project.

I do a lot of flash writing via the app (Bootloadable) to row N-2. (One row below Metadata)

My question is why after a reset, the bootloader does not detect a checksum issue (even though I definitely changed the flash on the app run)?

I am not working with any checksum exclude section.

Thanks.

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

There could be multiple images in the PSoC device flash. Hence, bootloadable validation calculates checksum from the application image start address till the valid end, instead of the device flash end. Bootloader access start and end address from the metadata region.

It seems that (N-2)nd row is not part of the bootloadable image in your application. Please change the test flash row to be part of bootloadable region and let me know if it helps. You can refer to Bootloader_ValidateBootloadable API for more details on checksum validation.

View solution in original post

0 Likes
1 Reply
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

There could be multiple images in the PSoC device flash. Hence, bootloadable validation calculates checksum from the application image start address till the valid end, instead of the device flash end. Bootloader access start and end address from the metadata region.

It seems that (N-2)nd row is not part of the bootloadable image in your application. Please change the test flash row to be part of bootloadable region and let me know if it helps. You can refer to Bootloader_ValidateBootloadable API for more details on checksum validation.

0 Likes