Skip to content

Commit 8555ba3

Browse files
committed
add start_address to io calls
1 parent 9be9ec9 commit 8555ba3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

  • tockloader-lib/src/command_impl

tockloader-lib/src/command_impl/probers/io.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ impl IOCommands for ProbeRSConnection {
5454
return Err(InternalError::ConnectionNotOpen.into());
5555
}
5656
let flash_address = self.get_settings().flash_address;
57+
let start_address = self.get_settings().start_address;
5758
let system_attributes =
58-
SystemAttributes::read_system_attributes(self, flash_address).await?;
59+
SystemAttributes::read_system_attributes(self, flash_address, start_address).await?;
5960
Ok(system_attributes)
6061
}
6162
}

tockloader-lib/src/command_impl/serial/io.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ impl IOCommands for SerialConnection {
8585
ping_bootloader_and_wait_for_response(stream).await?;
8686

8787
let flash_address = self.get_settings().flash_address;
88+
let start_address = self.get_settings().start_address;
8889
let system_attributes =
89-
SystemAttributes::read_system_attributes(self, flash_address).await?;
90+
SystemAttributes::read_system_attributes(self, flash_address, start_address).await?;
9091
Ok(system_attributes)
9192
}
9293
}

0 commit comments

Comments
 (0)