zephyr: flash HAL requires flash_write_protection_set() calls

In Zephyr there is a flash HAL function: flash_write_protection_set()
which for many SoCs is a stubbed function with no functionality,
but for others performs the unlock / lock procedures required before
writing to flash.

We need to add this function to our flash_area_write() wrapper
to support the hardware that requires it.

This fixes mcuboot flash writing for the nRF5x SoCs.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
1 file changed
tree: 475f2eebe681e0f2d5031d4c563183c74dbacf47
  1. boot/
  2. imgtool/
  3. scripts/
  4. sim/
  5. .gitignore
  6. build_boot.sh
  7. Makefile
  8. project.yml
  9. README.md
  10. repository.yml
  11. root.pem
  12. sign.sh
README.md

mcuboot

MCU boot loader