[SC64][SW] Adjust buffer sizes in sc64deployer to tune for maximum transfer speed

This commit is contained in:
Mateusz Faderewski 2024-07-21 12:19:03 +02:00
parent 71cef2cd6c
commit 631f140c48
2 changed files with 2 additions and 2 deletions

View File

@ -486,7 +486,7 @@ impl FtdiDevice {
wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach); wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach);
wrapper.set_interface(InterfaceIndex::A)?; wrapper.set_interface(InterfaceIndex::A)?;
const CHUNK_SIZE: usize = 2 * 1024 * 1024; const CHUNK_SIZE: usize = 1 * 1024 * 1024;
wrapper.read_data_set_chunksize(CHUNK_SIZE)?; wrapper.read_data_set_chunksize(CHUNK_SIZE)?;
wrapper.write_data_set_chunksize(CHUNK_SIZE)?; wrapper.write_data_set_chunksize(CHUNK_SIZE)?;

View File

@ -101,7 +101,7 @@ const ISV_BUFFER_LENGTH: usize = 64 * 1024;
pub const MEMORY_LENGTH: usize = 0x0500_2980; pub const MEMORY_LENGTH: usize = 0x0500_2980;
const MEMORY_CHUNK_LENGTH: usize = 1 * 1024 * 1024; const MEMORY_CHUNK_LENGTH: usize = 8 * 1024 * 1024;
impl SC64 { impl SC64 {
fn command_identifier_get(&mut self) -> Result<[u8; 4], Error> { fn command_identifier_get(&mut self) -> Result<[u8; 4], Error> {