Cypress PSOC 4 verify checksum of application only in flash at runtime

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

cross mob
Anonymous
Not applicable

We need to verify the checksum of the application image in the Cypress PSOC4 (256K).  Currently our checksum check includes all of flash (including supervisory flash sflash).  How can we verify only only the application image in flash at runtime. We need to do the checksum from the actual application running in flash.

   

 

   

thanks

   

 

   

Rick

0 Likes
3 Replies
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hi Rick,

   

 

   

why do you need to verify? The bootloader already verifies the image on startup.

   

Which PSoC 4 device exactly are you referring to?

   

 

   

Regards,

   

 

   

Ralf

0 Likes
Anonymous
Not applicable

Hi Ralf

   

Does the bootloader check against the same checksum that is stored in the the hex file that is flashed?  

   

Could you point me to the documentation on this for the PSoC 4?

0 Likes
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hi Richard,

   

 

   

sorry for the late reply. There's no email notification when someone replies 😕

   

 

   

The behaviour is described in the bootloaders component datasheet. I don't know exactly if the hex file checksum is used or if there's an additional checksum calculated during download, but there's an verification process inside the bootloader on each startup (which can be optionally disabled).

   

Please check the datasheet and if there are any additional questions, ask here.

   

 

   

Regards,

   

 

   

Ralf

0 Likes