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

Francisco notifications at github.com
Mon Nov 16 09:23:43 CET 2020


Just in case here are the results from running the test manually.

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

```
Reading data from /home/francisco/workspace/RIOT/tests/riotboot/bin/openmote-b/tests_riotboot-slot0-extended.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
CC2538 PG2.0: 512KB Flash, 32KB SRAM, CCFG at 0x0027FFD4
Primary IEEE Address: 00:12:4B:00:14:B5:B5:AF
    Erase before write done                 
Writing 263168 bytes starting at address 0x00200000
Write 40 bytes at 0x002403D8E0
    Write done     
...
...
2020-11-16 09:19:45,744 # main(): This is RIOT! (Version: 2021.01-devel-904-g6a606e-pr_cc2538_bsl_diff_erase)
2020-11-16 09:19:45,745 # Hello riotboot!
2020-11-16 09:19:45,747 # You are running RIOT on a(n) openmote-b board.
2020-11-16 09:19:45,748 # This board features a(n) cc2538 MCU.
2020-11-16 09:19:45,760 # riotboot_test: running from slot 0
2020-11-16 09:19:45,761 # Image magic_number: 0x544f4952
2020-11-16 09:19:45,761 # Image Version: 0x5fb235f7
2020-11-16 09:19:45,762 # Image start address: 0x00201400
2020-11-16 09:19:45,762 # Header chksum: 0x7c8e476b
```

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

```
Reading data from /home/francisco/workspace/RIOT/tests/riotboot/bin/openmote-b/tests_riotboot-slot1.1605514806.riot.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
CC2538 PG2.0: 512KB Flash, 32KB SRAM, CCFG at 0x0027FFD4
Primary IEEE Address: 00:12:4B:00:14:B5:B5:AF
    Erase before write done                 
Writing 15064 bytes starting at address 0x00240000
Write 184 bytes at 0x00243A208
    Write done       
...
...
...
2020-11-16 09:20:46,691 # main(): This is RIOT! (Version: 2021.01-devel-904-g6a606e-pr_cc2538_bsl_diff_erase)
2020-11-16 09:20:46,692 # Hello riotboot!
2020-11-16 09:20:46,692 # You are running RIOT on a(n) openmote-b board.
2020-11-16 09:20:46,693 # This board features a(n) cc2538 MCU.
2020-11-16 09:20:46,707 # riotboot_test: running from slot 1
2020-11-16 09:20:46,709 # Image magic_number: 0x544f4952
2020-11-16 09:20:46,710 # Image Version: 0x5fb23636
2020-11-16 09:20:46,711 # Image start address: 0x00240400
2020-11-16 09:20:46,711 # Header chksum: 0x5d8e37ae
2020-11-16 09:20:46,711 # 
```

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

```
Reading data from /home/francisco/workspace/RIOT/tests/riotboot/bin/openmote-b/tests_riotboot-slot0.1605514849.riot.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
CC2538 PG2.0: 512KB Flash, 32KB SRAM, CCFG at 0x0027FFD4
Primary IEEE Address: 00:12:4B:00:14:B5:B5:AF
    Erase before write done                 
Writing 15064 bytes starting at address 0x00201000
Write 184 bytes at 0x00204A208
    Write done     
...
...
2020-11-16 09:22:01,365 # main(): This is RIOT! (Version: 2021.01-devel-904-g6a606e-pr_cc2538_bsl_diff_erase)
2020-11-16 09:22:01,365 # Hello riotboot!
2020-11-16 09:22:01,366 # You are running RIOT on a(n) openmote-b board.
2020-11-16 09:22:01,366 # This board features a(n) cc2538 MCU.
2020-11-16 09:22:01,367 # riotboot_test: running from slot 0
2020-11-16 09:22:01,367 # Image magic_number: 0x544f4952
2020-11-16 09:22:01,381 # Image Version: 0x5fb23661
2020-11-16 09:22:01,382 # Image start address: 0x00201400
2020-11-16 09:22:01,382 # Header chksum: 0x7e3647d5
2020-11-16 09:22:01,382 # 
```

-- 
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/15396#issuecomment-727818374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201116/7eff0b36/attachment-0001.htm>


More information about the notifications mailing list