[riot-notifications] [RIOT-OS/RIOT] makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase (#15396)

Francisco notifications at github.com
Fri Nov 6 17:33:01 CET 2020

### Contribution description

This PR makes the `cc2538-bsl` script use `--write-erase` option which will only erase the section
of flash where the write operation will be performed. This avoids using mass-erase which allows using `cc2538-bsl` for #15392.

### Testing procedure

- flashing should still work on cc2538 boards using the script

- rebase on #15392 and  #15395 and run `examples/suit_update`

`BOARD=openmote-b make -C examples/suit_update/ flash test -j3`

Image Version: 0x5fa57970
Image start address: 0x00201400
Header chksum: 0x8a4c8ad7

suit_coap: started.
Starting the shell
> ifconfig
Running from slot 0
> ifconfig
Iface  4  HWaddr: AE:8B:6E:51:70:9C
          L2-PDU:1500  MTU:1500  HL:64  RTR
          Source address length: 6
          Link type: wired
          inet6 addr: fe80::ac8b:6eff:fe51:709c  scope: link  VAL
pinging node...
PING fe80::ac8b:6eff:fe51:709c%riot0(fe80::ac8b:6eff:fe51:709c%riot0) 56 data bytes

--- fe80::ac8b:6eff:fe51:709c%riot0 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 61.526/61.526/61.526/0.000 ms
pinging node succeeded.

### Issues/PRs references

Useful for #15392
Upstream PR, can remove patch afterwards: https://github.com/JelmerT/cc2538-bsl/pull/102
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * dist/tools/cc2538-bsl: add Makefile to build dependencies
  * makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase

-- File Changes --

    M dist/tools/cc2538-bsl/Makefile (7)
    A dist/tools/cc2538-bsl/patches/0001-cc2538-bsl-add-W-write-erase-to-write-and-erase.patch (141)
    M makefiles/tools/cc2538-bsl.inc.mk (4)
    M makefiles/tools/targets.inc.mk (2)

-- 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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201106/52e618f8/attachment-0001.htm>

More information about the notifications mailing list