[riot-notifications] [RIOT-OS/RIOT] riotboot.mk: get variable as hex rather than dec (#11201)

danpetry notifications at github.com
Mon Mar 18 11:54:44 CET 2019


### Contribution description

Previously, summing two hex values using the shell in this location was resulting in a decimal value, meaning the slot 1 image was flashing in the wrong place when using jlink. (Jlink seems to interpret all flashing values as hex values, even when not preceded by "0x".) This provides a fix.

Suggest making the same change in other locations where `shell echo` is used to sum hex variables?

### Testing procedure

- [ ] tests/riotboot with nrf52dk and slot0 only (https://github.com/RIOT-OS/RIOT/pull/11200 is needed for slot1 to work)

- [ ] tests/riotboot with a board that uses openocd (e.g. samr21-xpro) 

### Issues/PRs references

Fixes https://github.com/RIOT-OS/RIOT/pull/11126
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * riotboot.mk: get variable as hex rather than dec

-- File Changes --

    M makefiles/boot/riotboot.mk (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11201.patch
https://github.com/RIOT-OS/RIOT/pull/11201.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/11201
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190318/d5b6b75d/attachment.html>


More information about the notifications mailing list