Skip to content

Commit 058156c

Browse files
committed
fix: Fix md5 timeout values
This increases the MD5 command timeout factor per megabyte of flash checked in order to avoid timeouts for flashing bigger images, as the calculation time appears to increase non-linearly. A flash size of 4MB was used for testing, and a safety margin of 2 was added.
1 parent 85063f7 commit 058156c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/esp_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static target_chip_t s_target = ESP_UNKNOWN_CHIP;
4646

4747
#if MD5_ENABLED
4848

49-
static const uint32_t MD5_TIMEOUT_PER_MB = 800;
49+
static const uint32_t MD5_TIMEOUT_PER_MB = 8000;
5050
static struct MD5Context s_md5_context;
5151
static uint32_t s_start_address;
5252
static uint32_t s_image_size;

0 commit comments

Comments
 (0)