[riot-notifications] [RIOT-OS/RIOT] make: verify before flash (#11093)
notifications at github.com
Mon Mar 4 11:42:29 CET 2019
### Contribution description
Some flashers (jlink) check if the flash contents already matches the to-be-written binary and if yes, skip re-programming. That saves time and flash cycles.
This PR adds make infrastructure to support that with other flashers, too.
Basically it works by, instead of doing ```$flash $flash_args```, it does ```$flash_verify || $flash $flash_args```.
If no ```FLASH_VERIFY``` is provided, "true" is used thus flashing is done as before.
Another commit implements this for edbg.
### Testing procedure
With an edbg supported board, try ```make all; make flash-only; make flash-only``` and observe that the first flashing actually programs the device, the second skips programming.
Also test non-edbg boards (which don't yet supply "FLASH_VERIFY").
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* make: optionally only flash if verify fails
* make/tools/edbg: add verify-before-flash support
-- File Changes --
M Makefile.include (5)
M makefiles/tools/edbg.inc.mk (5)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications