/* Verifies the checksum, which indicates that a valid user program is present and can be started.  */
blt_bool FlashVerifyChecksum(void)
/* Verifies the checksum, which indicates that a valid user program is present and can be started.  */
blt_bool FlashVerifyChecksum(void)
{
  blt_int32u signature_checksum = 0;
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x04));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x08));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x0C));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x10));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x14));
  signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+BOOT_FLASH_VECTOR_TABLE_CS_OFFSET));
  if (signature_checksum == 0)
  {
    return BLT_TRUE;
  }
  return BLT_FALSE;
}