18.4.1 Calculating for “PF” in the Checksum Formula

The size of the program Flash is 512-KB, which equals 524288 bytes. Since the program Flash is assumed to be in erased state, the value of PF is resolved through the following calculation:
  • PF = 0xFF + 0xFF + … 524288 times
  • PF = 0x7F80000 (32-bit number)