You are here

FLASH Checksum calculation | Cypress Semiconductor

Support & Community

FLASH Checksum calculation

Last Updated: July 12, 2011

How can I execute a FLASH Checksum operation in user code?


The function SSC_Action( FLASH_CHECKSUM) can be used to perform a device checksum operation. The checksum value is then stored in 0xF8 and 0xF9 locations. The RAM address 0xF8 holds the lower 8 bits of the checksum and 0xF9 holds the upper 8 bits of the checksum.

Find attached a project that calculates the checksum of the flash. Flashblock API cannot be used for calculating the checksum. To use the checksum function in your project:

1. Using the “Project >> Add File” menu, add the files ssc_utilities.asm and ssc_utilities.h files to your project.
2. Include ssc_utilities.h file in main.c
3. Now call the CalculateChecksum function and this function will return the checksum value.
4. See main.c of the attached project of how to use the CalculateChecksum function.

Note: PSoC Designer 3.2 version has bug which does not allow the function work properly.

File TitleLanguageFile SizeLast Updated
Download FLASH Checksum calculationEnglish43.2 KB07/12/11
Download FLASH Checksum calculationEnglish839 bytes07/12/11
Download FLASH Checksum calculationEnglish76 bytes07/12/11
Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type