[riot-notifications] [RIOT-OS/RIOT] Add Riotboot support for CC2538 (#11665)

Gaƫtan Harter notifications at github.com
Tue Jun 18 17:45:14 CEST 2019


Hmm, the shell command does not allow printing the header of the other slot.
That would help to know the state, but it looks like the other slot is completely erased anyway.

I think it would be good to know how the flasher behaves when you do not have `-e`.
Could you check the content of the whole memory, it looks like you can do it with `cc2538-bsl.py` with the `-r` option and `-l <the_full_rom_length>`.
That could help you debug what is overwritten by comparing the hexdump.

Maybe even try to set the whole memory to 0 (except the cca maybe) and flash only the header the `.hdr` files at the right address.
`tests_riotboot-slot0.hdr` and `tests_riotboot-slot1.hdr`
```
PORT=/dev/null BOARD=cc2538dk make --no-print-directory -C tests/riotboot info-debug-variable-SLOT0_OFFSET info-debug-variable-SLOT1_OFFSET 
0x1000
264192
```
And check the written memory through `-r` or another method.

I checked the flash sector erase size in case a slot may not be aligned.
>From 5.3 https://www.ti.com/lit/ds/symlink/cc2538.pdf and it is 2k (0x800)so should work with the default 0x1000 bootloader size.

It may be that it is not possible to do it through flashing with the bsl.
Or that the version we use has a bug.

-- 
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/11665#issuecomment-503194613
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190618/b9f1b7ed/attachment.html>


More information about the notifications mailing list