[riot-notifications] [RIOT-OS/RIOT] makefiles/edbg.inc.mk: use FLASHFILE (#11172)

Gaƫtan Harter notifications at github.com
Wed Mar 13 16:18:43 CET 2019


Testing `riotboot` other commands

```
BOARD=samr21-xpro make -C examples/gnrc_networking flash
make -C tests/riotboot riotboot/flash-bootloader
APP_VER=1 make -C tests/riotboot riotboot/flash-slot0
APP_VER=3 make -C tests/riotboot riotboot/flash-slot1
APP_VER=2 make -C tests/riotboot riotboot/flash-extended-slot0 
```

And the differents steps will do: 

* It should reset the rom somehow
* do nothing because of no images
* boot slot 0 with version 1
* boot slot 1 as newer with version 3
* boot slot0 with version 2 as slot1 was discarded

And the matching `make term` output:

```
Type '/exit' to exit.
2019-03-13 16:17:42,595 - INFO # main(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:17:47,660 - INFO # Hellomain(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:17:47,663 - INFO # RIOT network stack example application
2019-03-13 16:17:47,666 - INFO # All up, running the shell now
> 2019-03-13 16:17:50,099 - INFO #  main(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:17:50,101 - INFO # Hello riotboot!
2019-03-13 16:17:50,105 - INFO # You are running RIOT on a(n) samr21-xpro board.
2019-03-13 16:17:50,108 - INFO # This board features a(n) samd21 MCU.
2019-03-13 16:17:50,111 - INFO # riotboot_test: running from slot 0
2019-03-13 16:17:50,114 - INFO # Image magic_number: 0x544f4952
2019-03-13 16:17:50,117 - INFO # Image Version: 0x00000001
2019-03-13 16:17:50,119 - INFO # Image start address: 0x00001100
2019-03-13 16:17:50,122 - INFO # Header chksum: 0x7f7eaea2
2019-03-13 16:17:50,122 - INFO #
> 2019-03-13 16:17:50,699 - INFO #  main(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:17:51,434 - INFO # Hello rmain(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:17:51,435 - INFO # Hello riotboot!
2019-03-13 16:17:51,439 - INFO # You are running RIOT on a(n) samr21-xpro board.
2019-03-13 16:17:51,442 - INFO # This board features a(n) samd21 MCU.
2019-03-13 16:17:51,446 - INFO # riotboot_test: running from slot 1
2019-03-13 16:17:51,448 - INFO # Image magic_number: 0x544f4952
2019-03-13 16:17:51,451 - INFO # Image Version: 0x00000003
2019-03-13 16:17:51,454 - INFO # Image start address: 0x00020900
2019-03-13 16:17:51,456 - INFO # Header chksum: 0x6f88a6a6
2019-03-13 16:17:51,456 - INFO #
> 2019-03-13 16:17:52,611 - INFO #  main(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:18:00,233 - INFO # Hello riomain(): This is RIOT! (Version: 2019.04-devel-475-g6a50e-pr/make/flashfile/edbg)
2019-03-13 16:18:00,234 - INFO # Hello riotboot!
2019-03-13 16:18:00,248 - INFO # You are running RIOT on a(n) samr21-xpro board.
2019-03-13 16:18:00,249 - INFO # This board features a(n) samd21 MCU.
2019-03-13 16:18:00,249 - INFO # riotboot_test: running from slot 0
2019-03-13 16:18:00,249 - INFO # Image magic_number: 0x544f4952
2019-03-13 16:18:00,250 - INFO # Image Version: 0x00000002
2019-03-13 16:18:00,253 - INFO # Image start address: 0x00001100
2019-03-13 16:18:00,255 - INFO # Header chksum: 0x7f82aea3
2019-03-13 16:18:00,255 - INFO #
``

-- 
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/11172#issuecomment-472467389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190313/832a4e3d/attachment-0001.html>


More information about the notifications mailing list