DSPRelated.com
Forums

How to Calculate checksum for Flash using my C code ?

Started by sanj...@gmail.com March 17, 2008
Hi ALL,
We are involved in building a product, where in we are using TMS320F2812. And an application of the product requires calculating a check sum of program memory of the DSP Processor (TMS320F2812) after every certain period of time. Here we are using DSP281x_Headers_nonBIOS.

In Code Composer Studio version 3.1 we have a provision to calculate a check sum for on-chip flash. But we need to implement an algorithm to calculate a check sum within our software itself such that it can continuously calculate a check sum of program memory within specified period of time, to check the hardware and software integrity. We want information regarding an algorithm used in Code Composer Studio version 3.1 so that we can implement the same algorithm in our software.

Thanks & Regards,

Sanjaykumar T.
Software Engineer

Aspire Communications Pvt Ltd.,
#64, C-1, Kasaba Hobli,
Hootagalli industrial Area,
Mysore-570 018.
Phone : +91-821-2404900 / 4902
Fax : +91-821-4287774
Web : www.aspirecommunication.com


Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Sanjay,
I would recommend a 32 bit CRC.
Take a look at the "CRC.pdf" file that is distributed as part of
C2oooProg (http://www.codeskin.com/c2oooProg.html).

Cheers,
Beat
s...@gmail.com wrote:
>
> Hi ALL,
> We are involved in building a product, where in we are using
> TMS320F2812. And an application of the product requires calculating a
> check sum of program memory of the DSP Processor (TMS320F2812) after
> every certain period of time. Here we are using DSP281x_Headers_nonBIOS.
>
> In Code Composer Studio version 3.1 we have a provision to calculate a
> check sum for on-chip flash. But we need to implement an algorithm to
> calculate a check sum within our software itself such that it can
> continuously calculate a check sum of program memory within specified
> period of time, to check the hardware and software integrity. We want
> information regarding an algorithm used in Code Composer Studio
> version 3.1 so that we can implement the same algorithm in our software.
> Thanks & Regards,
>
> Sanjaykumar T.
> Software Engineer
>
> Aspire Communications Pvt Ltd.,
> #64, C-1, Kasaba Hobli,
> Hootagalli industrial Area,
> Mysore-570 018.
> Phone : +91-821-2404900 / 4902
> Fax : +91-821-4287774
> Web : www.aspirecommunication.com
>
>