cl_utils: Increase worksize for increased speed.
H743 reads 2 MB in ~23 vs 27 seconds
This commit is contained in:
parent
a76a559656
commit
ff79108f66
@ -522,7 +522,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt)
|
|||||||
if ((opt->opt_mode == BMP_MODE_FLASH_READ) ||
|
if ((opt->opt_mode == BMP_MODE_FLASH_READ) ||
|
||||||
(opt->opt_mode == BMP_MODE_FLASH_VERIFY) ||
|
(opt->opt_mode == BMP_MODE_FLASH_VERIFY) ||
|
||||||
(opt->opt_mode == BMP_MODE_FLASH_WRITE_VERIFY)) {
|
(opt->opt_mode == BMP_MODE_FLASH_WRITE_VERIFY)) {
|
||||||
#define WORKSIZE 1024
|
#define WORKSIZE 0x1000
|
||||||
uint8_t *data = alloca(WORKSIZE);
|
uint8_t *data = alloca(WORKSIZE);
|
||||||
if (!data) {
|
if (!data) {
|
||||||
DEBUG_WARN("Can not malloc memory for flash read/verify "
|
DEBUG_WARN("Can not malloc memory for flash read/verify "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user