From 0f17543141b7330423ca6b01f6e54b3764ea9df2 Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 19 Jan 2012 16:44:49 +0000 Subject: [PATCH] bugfix, erase failed --- libtrbnet/trbflash.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 043a217..ed5f3e8 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -117,7 +117,7 @@ typedef struct { } 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; @@ -852,18 +852,6 @@ static int programImageBuffer(uint16_t trb_address, 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); -- 2.43.0