Mehmet Fide

LC60: CRC Control of Program Content

Discussion created by Mehmet Fide on Mar 14, 2008
Latest reply on Mar 17, 2008 by Mehmet Fide
Hi to all,
 
We are living corrupted program memory problem in mass production.
I want to add CRC algorithm to verify program content in run-time.
Two methods are suggested in the CW6.1 Help for that:
   * PRM file controlled checksum computation
   * Automatic linker controlled checksum computation
 
I choosed Automatic Linker Controlled checksum computation for my project and added <start08.h> and <checksum.h> to my project.
 
 
Code:
#include <hidef.h>#include <start08.h>#include <checksum.h>#include "derivative.h"_CHECKSUM_STARTUP_ENTRY......void main(void){  __RESET_WATCHDOG();  while(__CHECKSUM_IS_OK != 1) __RESET_WATCHDOG();  ...  ... }

But it gives error "C1085: checkSum is not a member"
I looked to _startupData and it doesn't really have member such as checkSum.
What am I doing wrong?
 
Thanks,
BP.
 

Outcomes