[riot-notifications] [RIOT-OS/RIOT] stm32l0: add riotboot support (#11141)

danpetry notifications at github.com
Thu Mar 14 10:59:34 CET 2019


So if I understand correctly, the `ROM_LEN` variable is providing the whole ROM length (192K) rather than the available ROM length (96k if only one bank available)?

If that's indeed the case, then I think the fix should be that it uses the *available* length. Something like:

```
AVAILABLE_ROM_LEN ?= ROM_LEN
SLOT0_LEN ?= $(shell printf "0x%x" $$((($(AVAILABLE_ROM_LEN:%K=%*1024)-$(RIOTBOOT_LEN)) / $(NUM_SLOTS)))) 
```
And then we could set AVAILABLE_ROM_LEN in the stm32l0 cpu folder to be half the ROM_LEN if the dual bank config file isn't present?
 

-- 
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/11141#issuecomment-472781769
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190314/8ac0ee00/attachment.html>


More information about the notifications mailing list