Help for this page

Select Code to Download


  1. or download this
       @data = read_data($infile);            # @data is global
       $data[0x6FFE] = 0;                     # zero CRC
    ...
       $data[0x6FFE] = $crc >> 8;                 # save
       $data[0x6FFF] = $crc & 0xFF;               # CRC
       write_data($outfile); # or write_data_blocks($outfile);
    
  2. or download this
    sub crc16 ($$$)
    {
    ...
       }
       return $crc;
    }
    
  3. or download this
    void VerifyFlashBlock(UINT8  len, UINT16 address)
    {
    ...
          buffer++;
       }
    }