Flash erase/write/read test failing

iosixllc
Posts: 60
Joined: Fri Mar 17, 2017 12:13 am

Flash erase/write/read test failing

Postby iosixllc » Thu Oct 26, 2017 9:18 am

I am running the following code, to perform a regression test on the flash memory, and am getting a lot of errors. Note that before, when we were running VSDIO @ 3.3V (D2WD), the flash was working perfectly. Once we set the fuse for 1.8V, these errors started, and I'm sorry to say we are still seeing the errors on our new boards with the correct strapping configuration for 1.8V pre-installed. I'm set to DIO and 40MHz SPI speed. These errors also occur during OTA update; log at bottom.

#define F_SECTORSIZE 0x1000
#define F_MEMSIZE 0xF0000
#define F_SEGMENTSIZE 32

u8 FLASHBUFFER[F_SECTORSIZE];

void rtest_cmdfunc (char * outstr, u16 maxlen) {
esp_partition_t * OtaPartition = 0;
u16 p, q;
OtaPartition = esp_ota_get_next_update_partition(NULL);

// erase and then verify erased
rbt_erase(OtaPartition, 0, F_MEMSIZE);
for (q = 0; q < F_SECTORCOUNT; q++) {
rbt_read(OtaPartition, q * F_SECTORSIZE, FLASHBUFFER, F_SECTORSIZE);
u16 isnotff = 0;
for (p = 0; p < F_SECTORSIZE; p++) {
if (FLASHBUFFER[p] != 0xFF)
isnotff++;
}
if (isnotff) {
debug_printf("ERASE SECTOR ERROR: %u, %u not FF\n", q, isnotff);
}
}

// write pattern shifted
for (q = 0; q < F_SECTORCOUNT; q++) {
for (p = 0; p < F_SECTORSIZE; p++)
FLASHBUFFER[p] = (p + q) & 0xFF;
for (p = 0; p < F_SECTORSIZE/F_SEGMENTSIZE; p++) // 128
rbt_write(OtaPartition, q * F_SECTORSIZE + p * F_SEGMENTSIZE, FLASHBUFFER + p * F_SEGMENTSIZE, F_SEGMENTSIZE);
}

// verify pattern
for (q = 0; q < F_SECTORCOUNT; q++) {
rbt_read(OtaPartition, q * F_SECTORSIZE, FLASHBUFFER, F_SECTORSIZE);
for (p = 0; p < F_SECTORSIZE; p++) {
if (FLASHBUFFER[p] != ((p + q) & 0xFF)) {
debug_printf("VERIFY SECTOR ERROR: %u, byte %u, %02X is not %02X\n", q, p, FLASHBUFFER[p], (p + q) & 0xFF);
}
}
}

debug_printf("RTEST: DONE\n");
}


u8 rbt_read(const esp_partition_t *partition, u32 src_offset, u8 * dst, u32 size) {
if (esp_partition_read(partition, src_offset, dst, size) == 0)
return 1;
return 0;
}

u8 rbt_write(const esp_partition_t *partition, u32 dst_offset, u8 * src, u32 size) {
u16 attempt = 0;
while (1) {
if (attempt)
printf("RBT_WRITE: %06lX %lu, attempt %u\r\n", dst_offset, size, attempt);
esp_partition_write(partition, dst_offset, src, size);
rbt_read(partition, dst_offset, FLASHBUFFER, size);
if (memcmp(FLASHBUFFER, src, size) == 0)
return 1;
attempt++;
}
}

u8 rbt_erase(const esp_partition_t *partition, u32 start_addr, u32 size) {
u16 attempt = 0;
while (1) {
if (attempt)
printf("RBT_ERASE: %06lX %lu, attempt %u\r\n", start_addr, size, attempt);
esp_partition_erase_range(partition, start_addr, size);
if (rbt_check_erase(partition, start_addr, size) == 1)
return 1;
attempt++;
}
}

u8 rbt_check_erase(const esp_partition_t *partition, u32 start_addr, u32 size) {
u32 i;

for (i = 0; i < size; i += SECTORSIZE) {
rbt_read(partition, start_addr + i, FLASHBUFFER, SECTORSIZE);
if (isvalue(FLASHBUFFER, 0xFF, SECTORSIZE) == 0)
return 0;
}
return 1;
}

u8 isvalue(u8 * buffer, u8 value, u32 size) {
u32 i;
for (i = 0; i < size; i++)
if (buffer[i] != value)
return 0;
return 1;
}


Here is the output from a run:

%rtest
RBT_ERASE: 000000 983040, attempt 1

Task watchdog got triggered. The following tasks did not feed the watchdog in time:
- IDLE (CPU 0)
Tasks currently running:
CPU 0: Debug
CPU 1: GPS
RBT_ERASE: 000000 983040, attempt 2

RBT_WRITE: 000020 32, attempt 1

RBT_WRITE: 0000A0 32, attempt 1

RBT_WRITE: 0000C0 32, attempt 1

RBT_WRITE: 000100 32, attempt 1

RBT_WRITE: 000180 32, attempt 1

RBT_WRITE: 0001A0 32, attempt 1

RBT_WRITE: 0001C0 32, attempt 1

RBT_WRITE: 000200 32, attempt 1

RBT_WRITE: 000260 32, attempt 1

RBT_WRITE: 0002C0 32, attempt 1

RBT_WRITE: 0002E0 32, attempt 1

RBT_WRITE: 000340 32, attempt 1

RBT_WRITE: 000360 32, attempt 1

RBT_WRITE: 000380 32, attempt 1

RBT_WRITE: 000420 32, attempt 1

RBT_WRITE: 000460 32, attempt 1

RBT_WRITE: 000480 32, attempt 1

RBT_WRITE: 0004E0 32, attempt 1

RBT_WRITE: 000500 32, attempt 1

RBT_WRITE: 000520 32, attempt 1

RBT_WRITE: 0005A0 32, attempt 1

RBT_WRITE: 0006E0 32, attempt 1

RBT_WRITE: 000700 32, attempt 1

RBT_WRITE: 000720 32, attempt 1

RBT_WRITE: 0008A0 32, attempt 1

RBT_WRITE: 0008C0 32, attempt 1

RBT_WRITE: 000920 32, attempt 1

RBT_WRITE: 0009E0 32, attempt 1

RBT_WRITE: 000A80 32, attempt 1

RBT_WRITE: 000AA0 32, attempt 1

RBT_WRITE: 000AC0 32, attempt 1

RBT_WRITE: 000AE0 32, attempt 1

RBT_WRITE: 000B00 32, attempt 1

RBT_WRITE: 000B60 32, attempt 1

RBT_WRITE: 000C20 32, attempt 1

RBT_WRITE: 000CA0 32, attempt 1

RBT_WRITE: 000D00 32, attempt 1

RBT_WRITE: 000D40 32, attempt 1

RBT_WRITE: 000D60 32, attempt 1

RBT_WRITE: 000DA0 32, attempt 1

RBT_WRITE: 000E40 32, attempt 1

RBT_WRITE: 000FA0 32, attempt 1

RBT_WRITE: 000FC0 32, attempt 1

RBT_WRITE: 001020 32, attempt 1

<snip>

RBT_WRITE: 0EE680 32, attempt 1

RBT_WRITE: 0EE700 32, attempt 1

RBT_WRITE: 0EE720 32, attempt 1

RBT_WRITE: 0EE780 32, attempt 1

RBT_WRITE: 0EE840 32, attempt 1

RBT_WRITE: 0EE8A0 32, attempt 1

RBT_WRITE: 0EE900 32, attempt 1

RBT_WRITE: 0EE960 32, attempt 1

RBT_WRITE: 0EE9A0 32, attempt 1

RBT_WRITE: 0EE9C0 32, attempt 1

RBT_WRITE: 0EE9E0 32, attempt 1

RBT_WRITE: 0EEA80 32, attempt 1

RBT_WRITE: 0EEAA0 32, attempt 1

RBT_WRITE: 0EEB20 32, attempt 1

RBT_WRITE: 0EEBC0 32, attempt 1

RBT_WRITE: 0EEBE0 32, attempt 1

RBT_WRITE: 0EEC00 32, attempt 1

RBT_WRITE: 0EEC60 32, attempt 1

RBT_WRITE: 0EEC80 32, attempt 1

RBT_WRITE: 0EED00 32, attempt 1

RBT_WRITE: 0EEEE0 32, attempt 1

RBT_WRITE: 0EEF00 32, attempt 1

RBT_WRITE: 0EEF20 32, attempt 1

RBT_WRITE: 0EF080 32, attempt 1

RBT_WRITE: 0EF140 32, attempt 1

RBT_WRITE: 0EF160 32, attempt 1

RBT_WRITE: 0EF180 32, attempt 1

RBT_WRITE: 0EF220 32, attempt 1

RBT_WRITE: 0EF280 32, attempt 1

RBT_WRITE: 0EF340 32, attempt 1

RBT_WRITE: 0EF380 32, attempt 1

RBT_WRITE: 0EF3E0 32, attempt 1

RBT_WRITE: 0EF400 32, attempt 1

RBT_WRITE: 0EF440 32, attempt 1

RBT_WRITE: 0EF4A0 32, attempt 1

RBT_WRITE: 0EF4C0 32, attempt 1

RBT_WRITE: 0EF500 32, attempt 1

RBT_WRITE: 0EF580 32, attempt 1

RBT_WRITE: 0EF5E0 32, attempt 1

RBT_WRITE: 0EF640 32, attempt 1

RBT_WRITE: 0EF680 32, attempt 1

RBT_WRITE: 0EF740 32, attempt 1

RBT_WRITE: 0EF760 32, attempt 1

RBT_WRITE: 0EF780 32, attempt 1

RBT_WRITE: 0EF7E0 32, attempt 1

RBT_WRITE: 0EF800 32, attempt 1

RBT_WRITE: 0EF840 32, attempt 1

RBT_WRITE: 0EF900 32, attempt 1

RBT_WRITE: 0EF9A0 32, attempt 1

RBT_WRITE: 0EFA20 32, attempt 1

RBT_WRITE: 0EFA40 32, attempt 1

RBT_WRITE: 0EFA60 32, attempt 1

RBT_WRITE: 0EFA80 32, attempt 1

RBT_WRITE: 0EFAA0 32, attempt 1

RBT_WRITE: 0EFAC0 32, attempt 1

RBT_WRITE: 0EFB80 32, attempt 1

RBT_WRITE: 0EFC00 32, attempt 1

RBT_WRITE: 0EFCE0 32, attempt 1

RBT_WRITE: 0EFD20 32, attempt 1

RBT_WRITE: 0EFD40 32, attempt 1

RBT_WRITE: 0EFD60 32, attempt 1

RBT_WRITE: 0EFDE0 32, attempt 1

RBT_WRITE: 0EFE20 32, attempt 1

RBT_WRITE: 0EFFA0 32, attempt 1

RBT_WRITE: 0EFFC0 32, attempt 1

RBT_WRITE: 0EFFE0 32, attempt 1

VERIFY SECTOR ERROR: 15, byte 0, FF is not 0F
VERIFY SECTOR ERROR: 15, byte 1, FF is not 10
VERIFY SECTOR ERROR: 15, byte 2, FF is not 11
VERIFY SECTOR ERROR: 15, byte 3, FF is not 12
VERIFY SECTOR ERROR: 15, byte 4, FF is not 13
VERIFY SECTOR ERROR: 15, byte 5, FF is not 14
VERIFY SECTOR ERROR: 15, byte 6, FF is not 15
VERIFY SECTOR ERROR: 15, byte 7, FF is not 16
VERIFY SECTOR ERROR: 15, byte 8, FF is not 17
VERIFY SECTOR ERROR: 15, byte 9, FF is not 18
VERIFY SECTOR ERROR: 15, byte 10, FF is not 19
VERIFY SECTOR ERROR: 15, byte 11, FF is not 1A
VERIFY SECTOR ERROR: 15, byte 12, FF is not 1B
VERIFY SECTOR ERROR: 15, byte 13, FF is not 1C
VERIFY SECTOR ERROR: 15, byte 14, FF is not 1D
VERIFY SECTOR ERROR: 15, byte 15, FF is not 1E
VERIFY SECTOR ERROR: 15, byte 16, FF is not 1F
VERIFY SECTOR ERROR: 15, byte 17, FF is not 20
VERIFY SECTOR ERROR: 15, byte 18, FF is not 21
VERIFY SECTOR ERROR: 15, byte 19, FF is not 22
VERIFY SECTOR ERROR: 15, byte 20, FF is not 23
VERIFY SECTOR ERROR: 15, byte 21, FF is not 24
VERIFY SECTOR ERROR: 15, byte 22, FF is not 25
VERIFY SECTOR ERROR: 15, byte 23, FF is not 26
VERIFY SECTOR ERROR: 15, byte 24, FF is not 27
VERIFY SECTOR ERROR: 15, byte 25, FF is not 28
VERIFY SECTOR ERROR: 15, byte 26, FF is not 29
VERIFY SECTOR ERROR: 15, byte 27, FF is not 2A
VERIFY SECTOR ERROR: 15, byte 28, FF is not 2B
VERIFY SECTOR ERROR: 15, byte 29, FF is not 2C
VERIFY SECTOR ERROR: 15, byte 30, FF is not 2D
VERIFY SECTOR ERROR: 15, byte 31, FF is not 2E
VERIFY SECTOR ERROR: 32, byte 0, FF is not 20
VERIFY SECTOR ERROR: 32, byte 1, FF is not 21
VERIFY SECTOR ERROR: 32, byte 2, FF is not 22
VERIFY SECTOR ERROR: 32, byte 3, FF is not 23
VERIFY SECTOR ERROR: 32, byte 4, FF is not 24
VERIFY SECTOR ERROR: 32, byte 5, FF is not 25
VERIFY SECTOR ERROR: 32, byte 6, FF is not 26
VERIFY SECTOR ERROR: 32, byte 7, FF is not 27
VERIFY SECTOR ERROR: 32, byte 8, FF is not 28
VERIFY SECTOR ERROR: 32, byte 9, FF is not 29
VERIFY SECTOR ERROR: 32, byte 10, FF is not 2A
VERIFY SECTOR ERROR: 32, byte 11, FF is not 2B
VERIFY SECTOR ERROR: 32, byte 12, FF is not 2C
VERIFY SECTOR ERROR: 32, byte 13, FF is not 2D
VERIFY SECTOR ERROR: 32, byte 14, FF is not 2E
VERIFY SECTOR ERROR: 32, byte 15, FF is not 2F
VERIFY SECTOR ERROR: 32, byte 16, FF is not 30
VERIFY SECTOR ERROR: 32, byte 17, FF is not 31
VERIFY SECTOR ERROR: 32, byte 18, FF is not 32
VERIFY SECTOR ERROR: 32, byte 19, FF is not 33
VERIFY SECTOR ERROR: 32, byte 20, FF is not 34
VERIFY SECTOR ERROR: 32, byte 21, FF is not 35
VERIFY SECTOR ERROR: 32, byte 22, FF is not 36
VERIFY SECTOR ERROR: 32, byte 23, FF is not 37
VERIFY SECTOR ERROR: 32, byte 24, FF is not 38
VERIFY SECTOR ERROR: 32, byte 25, FF is not 39
VERIFY SECTOR ERROR: 32, byte 26, FF is not 3A
VERIFY SECTOR ERROR: 32, byte 27, FF is not 3B
VERIFY SECTOR ERROR: 32, byte 28, FF is not 3C
VERIFY SECTOR ERROR: 32, byte 29, FF is not 3D
VERIFY SECTOR ERROR: 32, byte 30, FF is not 3E
VERIFY SECTOR ERROR: 32, byte 31, FF is not 3F
VERIFY SECTOR ERROR: 34, byte 0, FF is not 22
VERIFY SECTOR ERROR: 34, byte 1, FF is not 23
VERIFY SECTOR ERROR: 34, byte 2, FF is not 24
VERIFY SECTOR ERROR: 34, byte 3, FF is not 25
VERIFY SECTOR ERROR: 34, byte 4, FF is not 26
VERIFY SECTOR ERROR: 34, byte 5, FF is not 27
VERIFY SECTOR ERROR: 34, byte 6, FF is not 28
VERIFY SECTOR ERROR: 34, byte 7, FF is not 29
VERIFY SECTOR ERROR: 34, byte 8, FF is not 2A
VERIFY SECTOR ERROR: 34, byte 9, FF is not 2B
VERIFY SECTOR ERROR: 34, byte 10, FF is not 2C
VERIFY SECTOR ERROR: 34, byte 11, FF is not 2D
VERIFY SECTOR ERROR: 34, byte 12, FF is not 2E
VERIFY SECTOR ERROR: 34, byte 13, FF is not 2F
VERIFY SECTOR ERROR: 34, byte 14, FF is not 30
VERIFY SECTOR ERROR: 34, byte 15, FF is not 31
VERIFY SECTOR ERROR: 34, byte 16, FF is not 32
VERIFY SECTOR ERROR: 34, byte 17, FF is not 33
VERIFY SECTOR ERROR: 34, byte 18, FF is not 34
VERIFY SECTOR ERROR: 34, byte 19, FF is not 35
VERIFY SECTOR ERROR: 34, byte 20, FF is not 36
VERIFY SECTOR ERROR: 34, byte 21, FF is not 37
VERIFY SECTOR ERROR: 34, byte 22, FF is not 38
VERIFY SECTOR ERROR: 34, byte 23, FF is not 39
VERIFY SECTOR ERROR: 34, byte 24, FF is not 3A
VERIFY SECTOR ERROR: 34, byte 25, FF is not 3B
VERIFY SECTOR ERROR: 34, byte 26, FF is not 3C
VERIFY SECTOR ERROR: 34, byte 27, FF is not 3D
VERIFY SECTOR ERROR: 34, byte 28, FF is not 3E
VERIFY SECTOR ERROR: 34, byte 29, FF is not 3F
VERIFY SECTOR ERROR: 34, byte 30, FF is not 40
VERIFY SECTOR ERROR: 34, byte 31, FF is not 41
VERIFY SECTOR ERROR: 44, byte 0, FF is not 2C
VERIFY SECTOR ERROR: 44, byte 1, FF is not 2D
VERIFY SECTOR ERROR: 44, byte 2, FF is not 2E
VERIFY SECTOR ERROR: 44, byte 3, FF is not 2F
VERIFY SECTOR ERROR: 44, byte 4, FF is not 30
VERIFY SECTOR ERROR: 44, byte 5, FF is not 31
VERIFY SECTOR ERROR: 44, byte 6, FF is not 32
VERIFY SECTOR ERROR: 44, byte 7, FF is not 33
VERIFY SECTOR ERROR: 44, byte 8, FF is not 34
VERIFY SECTOR ERROR: 44, byte 9, FF is not 35
VERIFY SECTOR ERROR: 44, byte 10, FF is not 36
VERIFY SECTOR ERROR: 44, byte 11, FF is not 37
VERIFY SECTOR ERROR: 44, byte 12, FF is not 38
VERIFY SECTOR ERROR: 44, byte 13, FF is not 39
VERIFY SECTOR ERROR: 44, byte 14, FF is not 3A
VERIFY SECTOR ERROR: 44, byte 15, FF is not 3B
VERIFY SECTOR ERROR: 44, byte 16, FF is not 3C
VERIFY SECTOR ERROR: 44, byte 17, FF is not 3D
VERIFY SECTOR ERROR: 44, byte 18, FF is not 3E
VERIFY SECTOR ERROR: 44, byte 19, FF is not 3F
VERIFY SECTOR ERROR: 44, byte 20, FF is not 40
VERIFY SECTOR ERROR: 44, byte 21, FF is not 41
VERIFY SECTOR ERROR: 44, byte 22, FF is not 42
VERIFY SECTOR ERROR: 44, byte 23, FF is not 43
VERIFY SECTOR ERROR: 44, byte 24, FF is not 44
VERIFY SECTOR ERROR: 44, byte 25, FF is not 45
VERIFY SECTOR ERROR: 44, byte 26, FF is not 46
VERIFY SECTOR ERROR: 44, byte 27, FF is not 47
VERIFY SECTOR ERROR: 44, byte 28, FF is not 48
VERIFY SECTOR ERROR: 44, byte 29, FF is not 49
VERIFY SECTOR ERROR: 44, byte 30, FF is not 4A
VERIFY SECTOR ERROR: 44, byte 31, FF is not 4B
VERIFY SECTOR ERROR: 45, byte 0, FF is not 2D
VERIFY SECTOR ERROR: 45, byte 1, FF is not 2E
VERIFY SECTOR ERROR: 45, byte 2, FF is not 2F
VERIFY SECTOR ERROR: 45, byte 3, FF is not 30
VERIFY SECTOR ERROR: 45, byte 4, FF is not 31
VERIFY SECTOR ERROR: 45, byte 5, FF is not 32
VERIFY SECTOR ERROR: 45, byte 6, FF is not 33
VERIFY SECTOR ERROR: 45, byte 7, FF is not 34
VERIFY SECTOR ERROR: 45, byte 8, FF is not 35
VERIFY SECTOR ERROR: 45, byte 9, FF is not 36
VERIFY SECTOR ERROR: 45, byte 10, FF is not 37
VERIFY SECTOR ERROR: 45, byte 11, FF is not 38
VERIFY SECTOR ERROR: 45, byte 12, FF is not 39
VERIFY SECTOR ERROR: 45, byte 13, FF is not 3A
VERIFY SECTOR ERROR: 45, byte 14, FF is not 3B
VERIFY SECTOR ERROR: 45, byte 15, FF is not 3C
VERIFY SECTOR ERROR: 45, byte 16, FF is not 3D
VERIFY SECTOR ERROR: 45, byte 17, FF is not 3E
VERIFY SECTOR ERROR: 45, byte 18, FF is not 3F
VERIFY SECTOR ERROR: 45, byte 19, FF is not 40
VERIFY SECTOR ERROR: 45, byte 20, FF is not 41
VERIFY SECTOR ERROR: 45, byte 21, FF is not 42
VERIFY SECTOR ERROR: 45, byte 22, FF is not 43
VERIFY SECTOR ERROR: 45, byte 23, FF is not 44
VERIFY SECTOR ERROR: 45, byte 24, FF is not 45
VERIFY SECTOR ERROR: 45, byte 25, FF is not 46
VERIFY SECTOR ERROR: 45, byte 26, FF is not 47
VERIFY SECTOR ERROR: 45, byte 27, FF is not 48
VERIFY SECTOR ERROR: 45, byte 28, FF is not 49
VERIFY SECTOR ERROR: 45, byte 29, FF is not 4A
VERIFY SECTOR ERROR: 45, byte 30, FF is not 4B
VERIFY SECTOR ERROR: 45, byte 31, FF is not 4C
<snip>
VERIFY SECTOR ERROR: 216, byte 0, FF is not D8
VERIFY SECTOR ERROR: 216, byte 1, FF is not D9
VERIFY SECTOR ERROR: 216, byte 2, FF is not DA
VERIFY SECTOR ERROR: 216, byte 3, FF is not DB
VERIFY SECTOR ERROR: 216, byte 4, FF is not DC
VERIFY SECTOR ERROR: 216, byte 5, FF is not DD
VERIFY SECTOR ERROR: 216, byte 6, FF is not DE
VERIFY SECTOR ERROR: 216, byte 7, FF is not DF
VERIFY SECTOR ERROR: 216, byte 8, FF is not E0
VERIFY SECTOR ERROR: 216, byte 9, FF is not E1
VERIFY SECTOR ERROR: 216, byte 10, FF is not E2
VERIFY SECTOR ERROR: 216, byte 11, FF is not E3
VERIFY SECTOR ERROR: 216, byte 12, FF is not E4
VERIFY SECTOR ERROR: 216, byte 13, FF is not E5
VERIFY SECTOR ERROR: 216, byte 14, FF is not E6
VERIFY SECTOR ERROR: 216, byte 15, FF is not E7
VERIFY SECTOR ERROR: 216, byte 16, FF is not E8
VERIFY SECTOR ERROR: 216, byte 17, FF is not E9
VERIFY SECTOR ERROR: 216, byte 18, FF is not EA
VERIFY SECTOR ERROR: 216, byte 19, FF is not EB
VERIFY SECTOR ERROR: 216, byte 20, FF is not EC
VERIFY SECTOR ERROR: 216, byte 21, FF is not ED
VERIFY SECTOR ERROR: 216, byte 22, FF is not EE
VERIFY SECTOR ERROR: 216, byte 23, FF is not EF
VERIFY SECTOR ERROR: 216, byte 24, FF is not F0
VERIFY SECTOR ERROR: 216, byte 25, FF is not F1
VERIFY SECTOR ERROR: 216, byte 26, FF is not F2
VERIFY SECTOR ERROR: 216, byte 27, FF is not F3
VERIFY SECTOR ERROR: 216, byte 28, FF is not F4
VERIFY SECTOR ERROR: 216, byte 29, FF is not F5
VERIFY SECTOR ERROR: 216, byte 30, FF is not F6
VERIFY SECTOR ERROR: 216, byte 31, FF is not F7
RTEST: DONE


OTA log:

WWW Accepted connection from: 204A8C0
WWW Received 347 bytes
Sent page and closing socket
WWW Accepted connection from: 204A8C0
WWW Received 1436 bytes
Suspending tasks...
BT controller disable...
Starting OTA...
I (226721) upgrade: OTA Partition: 3FFDB170
I (226724) upgrade: Set start address for flash writes to 0x00010000
I (229562) upgrade: Result from esp_ota_begin: 0 1
So far we have 965 bytes of the content, total 935853 bytes
Received 1436 bytes (2401/935853)
E (229620) upgrade: Failed to write flash at address 0x000102C7, error 0 [256] 4020DB10 = 40AADB92 [1436]
E (229662) upgrade: Failed to write flash at address 0x000102C7, error 0 [1056] 40350D11 = 40F58D11 [1436]
E (229703) upgrade: Failed to write flash at address 0x000102C7, error 0 [1056] 40350D11 = 40B50D11 [1436]
Received 1436 bytes (3837/935853)
E (229788) upgrade: Failed to write flash at address 0x00010863, error 0 [96] 40C71A11 = 40E79A11 [1436]
E (229821) upgrade: Failed to write flash at address 0x00010863, error 0 [800] 40784811 = 40784C11 [1436]
Received 1436 bytes (5273/935853)
E (229921) upgrade: Failed to write flash at address 0x00010DFF, error 0 [672] 08080808 = 088A284D [1436]
Received 1436 bytes (6709/935853)
E (230007) upgrade: Failed to write flash at address 0x0001139B, error 0 [224] 00E46E02 = 00EFFFEF [1436]
E (230032) upgrade: Failed to write flash at address 0x0001139B, error 0 [480] 2F756172 = 2F7561F7 [1436]
E (230058) upgrade: Failed to write flash at address 0x0001139B, error 0 [480] 2F756172 = 2F756173 [1436]
Received 1436 bytes (8145/935853)
E (230169) upgrade: Failed to write flash at address 0x00011937, error 0 [896] 74785F77 = 74787F77 [1436]
E (230209) upgrade: Failed to write flash at address 0x00011937, error 0 [1056] 6573702D = 6573706F [1436]
Received 1436 bytes (9581/935853)
E (230289) upgrade: Failed to write flash at address 0x00011ED3, error 0 [64] 00000000 = 002A268C [1436]
Received 1436 bytes (11017/935853)
E (230388) upgrade: Failed to write flash at address 0x0001246F, error 0 [704] 65787065 = 6578F265 [1436]
E (230430) upgrade: Failed to write flash at address 0x0001246F, error 0 [1088] 726F663A = 726FE63E [1436]
Received 1436 bytes (12453/935853)
E (230520) upgrade: Failed to write flash at address 0x00012A0B, error 0 [320] 25733A20 = 257F3B6A [1436]
E (230569) upgrade: Failed to write flash at address 0x00012A0B, error 0 [1280] 0098920D = 0098D21D [1436]
E (230616) upgrade: Failed to write flash at address 0x00012A0B, error 0 [1280] 0098920D = 0098921D [1436]
<snip>
E (274513) upgrade: Failed to write flash at address 0x00092977, error 0 [192] FDFF0000 = FDFF4064 [1436]
E (274545) upgrade: Failed to write flash at address 0x00092977, error 0 [768] 80C2A004 = 80DAA024 [1436]
E (274578) upgrade: Failed to write flash at address 0x00092977, error 0 [768] 80C2A004 = 80DAA024 [1436]
Received 1436 bytes (538029/935853)
E (274679) upgrade: Failed to write flash at address 0x00092F13, error 0 [768] 808074BC = 80C275BE [1436]
Received 1436 bytes (539465/935853)
E (274776) upgrade: Failed to write flash at address 0x000934AF, error 0 [448] A2A06C81 = A2E1EC85 [1436]
E (274824) upgrade: Failed to write flash at address 0x000934AF, error 0 [1280] 0022510C = 0062519C [1436]
Received 1436 bytes (540901/935853)
E (274915) upgrade: Failed to write flash at address 0x00093A4B, error 0 [320] 1320B220 = 13A1BF25 [1436]
Received 1436 bytes (542337/935853)
E (274994) upgrade: Failed to write flash at address 0x00093FE7, error 0 [32] 00A5AB02 = 00A7EFE3 [1436]
E (275023) upgrade: Failed to write flash at address 0x00093FE7, error 0 [640] 81939782 = 819397A2 [1436]
Received 1436 bytes (543773/935853)
E (275105) upgrade: Failed to write flash at address 0x00094583, error 0 [192] C296B2A1 = C2F6F2B3 [1436]
Received 1436 bytes (545209/935853)
E (275201) upgrade: Failed to write flash at address 0x00094B1F, error 0 [608] 02820300 = 028FAFA5 [1436]
E (275231) upgrade: Failed to write flash at address 0x00094B1F, error 0 [608] 02820300 = 028FA7A5 [1436]
E (275261) upgrade: Failed to write flash at address 0x00094B1F, error 0 [608] 02820300 = 028A2300 [1436]
Received 1436 bytes (546645/935853)
E (275347) upgrade: Failed to write flash at address 0x000950BB, error 0 [128] 001DF000 = 007FFC49 [1436]
E (275363) upgrade: Failed to write flash at address 0x000950BB, error 0 [224] 03005203 = 03005213 [1436]
Received 1436 bytes (548081/935853)
E (275446) upgrade: Failed to write flash at address 0x00095657, error 0 [96] B1B992C2 = B1B993C3 [1436]
Received 1436 bytes (549517/935853)
E (275566) upgrade: Failed to write flash at address 0x00095BF3, error 0 [1408] A9128822 = A957CE26 [1436]
Received 1436 bytes (550953/935853)
E (275657) upgrade: Failed to write flash at address 0x0009618F, error 0 [416] 005D0448 = 00DDEE48 [1436]
E (275692) upgrade: Failed to write flash at address 0x0009618F, error 0 [900] 74FBA222 = 77FBA626 [1436]
Received 1436 bytes (552389/935853)
E (275818) upgrade: Failed to write flash at address 0x0009672B, error 0 [1312] 00BC63AD = 00BD7FBD [1436]
Received 1436 bytes (553825/935853)
E (275907) upgrade: Failed to write flash at address 0x00096CC7, error 0 [320] 2B076929 = 2B07692F [1436]
Received 1436 bytes (555261/935853)
E (275996) upgrade: Failed to write flash at address 0x00097263, error 0 [288] 05B1758C = 05B775AC [1436]
Received 1436 bytes (556697/935853)
E (276085) upgrade: Failed to write flash at address 0x000977FF, error 0 [288] C4086056 = C4CBFB5E [1436]
E (276103) upgrade: Failed to write flash at address 0x000977FF, error 0 [288] C4086056 = C488EB5E [1436]
Received 1436 bytes (558133/935853)
E (276203) upgrade: Failed to write flash at address 0x00097D9B, error 0 [736] 0800A953 = 08DAEBF7 [1436]
E (276235) upgrade: Failed to write flash at address 0x00097D9B, error 0 [736] 0800A953 = 0880EB73 [1436]
Received 1436 bytes (559569/935853)
E (276321) upgrade: Failed to write flash at address 0x00098337, error 0 [128] 0C333241 = 0CB33B41 [1436]
E (276334) upgrade: Failed to write flash at address 0x00098337, error 0 [132] 7AD2A000 = 7AD2E019 [1436]
E (276349) upgrade: Failed to write flash at address 0x00098337, error 0 [132] 7AD2A000 = 7AD2A001 [1436]
E (276363) upgrade: Failed to write flash at address 0x00098337, error 0 [136] 1C33C2A0 = 1CB3D2A0 [1436]
Received 1436 bytes (561005/935853)
E (276465) upgrade: Failed to write flash at address 0x000988D3, error 0 [640] C2C110BD = C2E131BD [1436]
Received 1436 bytes (562441/935853)
E (276561) upgrade: Failed to write flash at address 0x00098E6F, error 0 [480] 0C4A4251 = 0CFADAF1 [1436]
E (276592) upgrade: Failed to write flash at address 0x00098E6F, error 0 [768] 03008088 = 03008598 [1436]
E (276625) upgrade: Failed to write flash at address 0x00098E6F, error 0 [768] 03008088 = 03008198 [1436]
Received 1436 bytes (563877/935853)
E (276706) upgrade: Failed to write flash at address 0x0009940B, error 0 [32] 50746060 = 50756578 [1436]
E (276750) upgrade: Failed to write flash at address 0x0009940B, error 0 [1184] 81377FE0 = 8137FFE7 [1436]
E (276798) upgrade: Failed to write flash at address 0x0009940B, error 0 [1184] 81377FE0 = 81377FE2 [1436]
E (276842) upgrade: Failed to write flash at address 0x0009940B, error 0 [1188] 080082D2 = 080282D2 [1436]
E (276888) upgrade: Failed to write flash at address 0x0009940B, error 0 [1192] 0722186E = 07221C6E [1436]
E (276933) upgrade: Failed to write flash at address 0x0009940B, error 0 [1192] 0722186E = 07221C6E [1436]
E (276978) upgrade: Failed to write flash at address 0x0009940B, error 0 [1192] 0722186E = 07221C6E [1436]
E (277023) upgrade: Failed to write flash at address 0x0009940B, error 0 [1208] D8139202 = D87FFFFF [1436]
E (277068) upgrade: Failed to write flash at address 0x0009940B, error 0 [1208] D8139202 = D87FFFFF [1436]
Flashing error: 0009940B
Flash error and closing socket


RESETTING

iosixllc
Posts: 60
Joined: Fri Mar 17, 2017 12:13 am

Re: Flash erase/write/read test failing

Postby iosixllc » Fri Oct 27, 2017 7:41 pm

Also - is there a way I can disable caching of read/write operations to flash or do the partition read/write functions bypass caching?

WiFive
Posts: 1683
Joined: Tue Dec 01, 2015 7:35 am

Re: Flash erase/write/read test failing

Postby WiFive » Fri Oct 27, 2017 11:00 pm

rbt_write does a verify which passes on a segment but the subsequent verify on a sector fails? And always the first segment of the sector?

iosixllc
Posts: 60
Joined: Fri Mar 17, 2017 12:13 am

Re: Flash erase/write/read test failing

Postby iosixllc » Wed Nov 01, 2017 5:37 pm

Seems so from this log, yes.

Who is online

Users browsing this forum: Blade2021 and 4 guests