From 72deb0fb81be2d7c69717ca803a47f8504d303c0 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Sun, 21 Jul 2024 10:45:39 +0200 Subject: [PATCH] increase ftdi chunk size to speedup transfer --- sw/deployer/src/sc64/ftdi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/deployer/src/sc64/ftdi.rs b/sw/deployer/src/sc64/ftdi.rs index f99c728..38574de 100644 --- a/sw/deployer/src/sc64/ftdi.rs +++ b/sw/deployer/src/sc64/ftdi.rs @@ -486,7 +486,7 @@ impl FtdiDevice { wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach); wrapper.set_interface(InterfaceIndex::A)?; - const CHUNK_SIZE: usize = 16 * 1024; + const CHUNK_SIZE: usize = 2 * 1024 * 1024; wrapper.read_data_set_chunksize(CHUNK_SIZE)?; wrapper.write_data_set_chunksize(CHUNK_SIZE)?;