cl_utils: Increase worksize for increased speed.

H743 reads 2 MB in ~23 vs 27 seconds
This commit is contained in:
Uwe Bonnes 2021-09-06 20:28:54 +02:00 committed by UweBonnes
parent a76a559656
commit ff79108f66
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt)
if ((opt->opt_mode == BMP_MODE_FLASH_READ) ||
(opt->opt_mode == BMP_MODE_FLASH_VERIFY) ||
(opt->opt_mode == BMP_MODE_FLASH_WRITE_VERIFY)) {
#define WORKSIZE 1024
#define WORKSIZE 0x1000
uint8_t *data = alloca(WORKSIZE);
if (!data) {
DEBUG_WARN("Can not malloc memory for flash read/verify "