Skip to content

Commit 5b206cf

Browse files
committed
refactor: update comment for better explanation
Signed-off-by: addrian-77 <lunguadrian30@gmail.com>
1 parent 801f364 commit 5b206cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ impl CommandEraseApps for ProbeRSConnection {
1717
let mut loader = session.target().flash_loader();
1818

1919
let address = settings.start_address;
20-
// // (adi): a single 0x0 byte is enough to invalidate the header and erase all programs
20+
// A single 0x0 byte is enough to invalidate the tbf header and make it all programs
21+
// unreadable to tockloader. This does mean app information will still exist on the board,
22+
// but they will be overwritten when the space is needed.
2123
loader.add_data((address as u32).into(), &[0x0])?;
2224

2325
let mut options = DownloadOptions::default();

0 commit comments

Comments
 (0)