[riot-notifications] [RIOT-OS/RIOT] make: verify before flash (#11093)

Kaspar Schleiser 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

none

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11093

-- 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 --

https://github.com/RIOT-OS/RIOT/pull/11093.patch
https://github.com/RIOT-OS/RIOT/pull/11093.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11093
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/69f07a74/attachment.html>


More information about the notifications mailing list