Code: Select all
for (int i = 0x10000; i <= 0xFFC00; i += blocksize)
{
addTxt1("Uploading Flash Memory...\r\n"); progressBarPcmFlash.Value = (int)i;
transferDataUDSFord(flashData, i, blocksize); //Service 0x36 transferData our upload service
if (i == 0xFFC00)
{
addTxt1("Finalizing Download to ECU...\r\n"); // ECU has finished receiveing data via 0x36
successfulFlashWrite = true;
}
}
Edit I saw you were looking for the Serial Number, that is located at memory location 0xEFF0 (Note you will that this location is before 0x10000, and thus cannot be written to, which is why as we know, You can't just edit the serial number of a Spanish Oak PCM.) Hope this helps.