Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Saving, Loading and Verifying progress bars #170

Merged
merged 5 commits into from
Nov 19, 2024
Merged

Conversation

will-v-pi
Copy link
Contributor

Align all the Saving, Loading and Verifying progress bars, by placing them at the longest possible prefix. Also prevent saving/loading from the RP2040 unstriped SRAM, as that returns an error from the device, and would increase the length of the longest possible prefix.

This changes the output from

$ picotool save -v flash.bin -r 0x10000000 0x10040000
Saving file: [==============================]  100%
Wrote 262144 bytes to flash.bin
Verifying Flash:    [==============================]  100%
  OK
$ picotool load -v flash.bin 
Loading into Flash: [==============================]  100%
Verifying Flash:    [==============================]  100%
  OK

to

$ picotool save -v flash.bin -r 0x10000000 0x10040000
Saving file:          [==============================]  100%
Wrote 262144 bytes to flash.bin
Verifying Flash:      [==============================]  100%
  OK
$ picotool load -v flash.bin 
Loading into Flash:   [==============================]  100%
Verifying Flash:      [==============================]  100%
  OK

@will-v-pi will-v-pi requested a review from kilograham November 8, 2024 13:46
main.cpp Outdated Show resolved Hide resolved
When verifying the bin file was assumed to start at FLASH_START, so verification would fail if the range didn't start there
main.cpp Outdated Show resolved Hide resolved
@will-v-pi will-v-pi merged commit 7350867 into develop Nov 19, 2024
35 checks passed
@will-v-pi will-v-pi deleted the align-bars branch November 19, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants