Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/bsp/nucleo-l073: Fix flash map scratch area
STM32L0 has 128 byte page, this would allow for 16kB of slot0/1 size to be supported by mcuboot. For this reason flash page is artificially reported to mcuboot to be 2kB. Scratch area was put in flash with size 1kB making in unusable for mcuboot. This could be fixed by: - removing this limit from mcuboot (most reasonable solution) - setting page size to be 1kB instead of 2 - changing flash area layout to have at least 2kB scratch sector Third option is chosen because flash area layout was already left with some holes. Now scratch has 4kB Reboot log is reduced to 2kB since current implementation of reboot_log uses only one sector so 75% was unusable anyway Signed-off-by: Jerzy Kasenberg <jerzy@apache.org>
- Loading branch information