} FlashParam;
static FlashParam flashParamRef;
-static const char trbflash_version[] = "$Revision: 2.37 $";
+static const char trbflash_version[] = "$Revision: 2.38 $";
static uint32_t mdcFlashSelect = 1;
return -1;
}
- if ((flashParamRef.manId == 0x00461f) ||
- (flashParamRef.manId == 0x00471f)) {
- /* Unprotect sector */
- if (sendCommand(trb_address, 0x39 << 24 | (BLOCK_SIZE * block), 3)
- == -1) {
- fprintf(stderr,
- "\nError > program: unprotect sector #%d, aborting\n",
- block);
- return -1;
- }
- }
-
/* Erase block */
fprintf(stdout, "E\b");
fflush(stdout);