[riot-notifications] [RIOT-OS/RIOT] @fjmolinas tests/riotboot: make automatic script work with cc2538-bsl (#15446)

Francisco notifications at github.com
Mon Nov 16 10:14:03 CET 2020


### Contribution description

cc2538-bsl can't flash if the terminal is attached, refactor the test so the terminal is detached between flashes.

I'm not really happy with the use of global, feels dirt, but not sure how to do it otherwise, suggestions?


### Testing procedure

On a board using `cc2538-bsl` run the riotboot test:

`BOARD=openmote-b make -C tests/riotboot flash test`

```
...
> getslotaddr 0
 getslotaddr 0
Slot 0 address=0x00201400
> dumpaddrs
 dumpaddrs
slot 0: metadata: 0x201000 image: 0x00201400
slot 1: metadata: 0x240000 image: 0x00240400
> TEST PASSED
```

### Issues/PRs references

Depends on #15396

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

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

-- Commit Summary --

  * dist/tools/cc2538-bsl: add Makefile to build dependencies
  * makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase
  * tests/riotboot: make automatic script work with cc2538-bsl

-- File Changes --

    M dist/tools/cc2538-bsl/Makefile (8)
    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 (4)
    M tests/riotboot/tests/01-run.py (35)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15446.patch
https://github.com/RIOT-OS/RIOT/pull/15446.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/15446
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201116/dbcbc791/attachment-0001.htm>


More information about the notifications mailing list