static FlashType flashType = FLASH_INVALID;
-static const char trbflash_version[] = "$Revision: 2.03 $";
+static const char trbflash_version[] = "$Revision: 2.04 $";
static uint32_t mdcFlashSelect = 1;
trb_strerror(trb_errno));
return -1;
}
+
+ return 0;
}
/* ------ MAIN ---------------------------------------------------------- */
fprintf(stderr, "Invalid ManId(s), aborting\n");
exit(EXIT_FAILURE);
}
-
+
/* In case of MDC: select FlashRom */
if (flashType == FLASH_MDC) {
if (selectMdcFlashRom(trb_address, mdcFlashSelect) == -1) {
exit(EXIT_FAILURE);
}
}
-
+
if ((status = readPage(trb_address, pageNumber, 256)) == -1) {
fprintf(stderr, "Error reading Page, aborting\n");
exit(EXIT_FAILURE);
}
-
+
for (i = 0; i < status; i++) {
char text[32] = "";
char cc[2] = " \0";