Skip to content

Commit

Permalink
[SC64][SW] Adjust buffer sizes in sc64deployer to tune for maximum tr…
Browse files Browse the repository at this point in the history
…ansfer speed
  • Loading branch information
Polprzewodnikowy committed Jul 21, 2024
1 parent 71cef2c commit 631f140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sw/deployer/src/sc64/ftdi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl FtdiDevice {
wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach);
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.write_data_set_chunksize(CHUNK_SIZE)?;
Expand Down
2 changes: 1 addition & 1 deletion sw/deployer/src/sc64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const ISV_BUFFER_LENGTH: usize = 64 * 1024;

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 {
fn command_identifier_get(&mut self) -> Result<[u8; 4], Error> {
Expand Down

0 comments on commit 631f140

Please sign in to comment.