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

add simple verify to dfu-util download #673

Merged
merged 1 commit into from
Mar 20, 2014

Conversation

martinmm
Copy link
Member

Add a simple verify command that downloads the freshly flashed data and compares it to the one sent to the device.

@gautierhattenberger
Copy link
Member

Flashing with dfu-util is already pretty long, can we have the check optional ?
On apogee boards, up to now, flashing either doesn't start (cable issue, no power,...) or succeed (with v0.7 compiled from source, better than the ubuntu packaged version 0.5).

@martinmm
Copy link
Member Author

The verify only takes a couple of 100ms. The slow part is the flashing itself, not the USB transfers. A verify (as in lpc21iap) can show you that it actually succeeded.

Guess the relative slowness results from the boot ROM DFU not using x32 but x8 and/or defensive latency settings (DM00037051, 5.3.12 Memory characteristics).

@gautierhattenberger
Copy link
Member

true, upload is fast...

@gautierhattenberger gautierhattenberger merged commit d1db473 into paparazzi:master Mar 20, 2014
@martinmm martinmm deleted the dfu_verify branch March 20, 2014 16:17
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.

None yet

2 participants